import { globalCss, HopeThemeConfig } from "@hope-ui/solid" import { hoverColor } from "~/utils" const theme: HopeThemeConfig = { initialColorMode: "system", lightTheme: { colors: { // background: "$neutral2", background: "#f7f8fa", }, }, components: { Button: { baseStyle: { root: { rounded: "$lg", _active: { transform: "scale(.95)", transition: "0.2s", }, _focus: { boxShadow: "unset", }, }, }, defaultProps: { root: { colorScheme: "info", variant: "subtle", }, }, }, IconButton: { defaultProps: { colorScheme: "info", variant: "subtle", }, }, Input: { baseStyle: { input: { rounded: "$lg", _focus: { boxShadow: "unset", borderColor: "$info8", }, }, }, defaultProps: { input: { variant: "filled", }, }, }, Textarea: { baseStyle: { rounded: "$lg", _focus: { boxShadow: "unset", borderColor: "$info8", }, resize: "vertical", wordBreak: "break-all", }, defaultProps: { variant: "filled", }, }, Select: { baseStyle: { trigger: { rounded: "$lg", _focus: { boxShadow: "unset", borderColor: "$info8", }, }, content: { border: "none", rounded: "$lg", }, optionIndicator: { color: "$info10", }, }, defaultProps: { root: { variant: "filled", }, }, }, Checkbox: { defaultProps: { root: { colorScheme: "info", variant: "filled", }, }, }, Switch: { defaultProps: { root: { colorScheme: "info", }, }, }, Menu: { baseStyle: { content: { rounded: "$md", minW: "unset", border: "unset", // py: "0", }, item: { rounded: "$md", py: "$1", // mx: "0", }, }, }, Notification: { baseStyle: { root: { rounded: "$lg", border: "unset", }, }, }, Alert: { baseStyle: { root: { rounded: "$lg", }, }, }, Anchor: { baseStyle: { rounded: "$lg", px: "$1_5", py: "$1", _hover: { bgColor: hoverColor(), textDecoration: "none", }, _focus: { boxShadow: "unset", }, _active: { transform: "scale(.95)", transition: "0.1s" }, }, }, Modal: { baseStyle: { content: { rounded: "$lg", }, }, }, }, } export const globalStyles = globalCss({ "*": { margin: 0, padding: 0, }, html: { fontFamily: `-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol" !important`, }, "#root": { display: "flex", flexDirection: "column", alignItems: "center", }, ".hope-breadcrumb__list": { flexWrap: "wrap", rowGap: "0 !important", }, ".lightgallery-container": { "& .lg-backdrop": { zIndex: "$popover", }, "& .lg-outer": { zIndex: "calc($popover + 10)", }, }, ".viselect-selection-area": { background: "rgba(46, 115, 252, 0.11)", border: "2px solid rgba(98, 155, 255, 0.81)", borderRadius: "0.1em", }, ".viselect-container": { userSelect: "none", "& .viselect-item": { "-webkit-user-drag": "none", "& img": { "-webkit-user-drag": "none", }, }, }, }) export { theme }