Default Config
The default config is set with values such as initialColorMode
used in Color Mode.
Here are the actual set values.
const config: ThemeConfig = {initialColorMode: "light",disableTransitionOnChange: false,var: { prefix: "ui" },breakpoint: { direction: "down", identifier: "@media screen" },}
Property | Description | Default | |
---|---|---|---|
initialThemeScheme | Initial value of the theme used in Switching Themes. | "base" | |
initialColorMode | Initial value of the Color Mode. Accepts light , dark , system . | "light" | |
disableTransitionOnChange | Setting to avoid unnecessary movements such as transitions during color mode switching. | false | |
breakpoint | Setting of breakpoints used in Responsive Styles. | ||
direction | Set the direction of breakpoints used in responsive styles. In the case of "up" , it becomes mobile-first with @media(min-width) , and in the case of "down" , it becomes PC-first responsive style with @media(max-width) . | "down" | |
base | The base value for the breakpoint when direction is "down". This is treated as the largest breakpoint . | "9999px" | |
identifier | Set the query of breakpoints used in responsive styles. | "@media screen" | |
theme | Setting used in CSS Customize Theme. | ||
responsive | If true , theme tokens will accept responsive objects. | false | |
var | Setting used in CSS custom properties . | ||
prefix | Set the prefix used in CSS custom properties . | "ui" | |
date | Setting used in Calendar and DatePicker. | ||
locale | Set the locale used in Calendar and DatePicker . | "en" | |
loading | Setting used in Loading. | ||
screen | Set the options for screen loading. | undefined | |
page | Set the options for page loading. | undefined | |
background | Set the options for background loading. | undefined | |
custom | Set the options for custom loading. | undefined | |
alert | Setting used in Alert. | ||
statuses | Set the status of Alert. | undefined | |
notice | Setting used in Notification. | ||
options | Set the options for notification. | undefined | |
variants | Set the variants for notification. | undefined | |
gap | Set the gap between notifications. | "md" | |
appendToParentPortal | Set whether to add the portal to the node of the parent portal when the portal is in the parent portal. | true | |
containerRef | Set the ref of the component where the portal is attached. | undefined | |
listProps | Props for notice list element. | undefined | |
itemProps | Props for notice item element. | undefined | |
snacks | Setting used in Snacks. | ||
options | Set the options for snacks. | undefined | |
variants | Set the variants for snacks. | undefined | |
gap | Set the gap between snacks. | "md" | |
gutter | Set the vertical spacing of snacks. | [0, 0] | |
negateMargin | Set whether to apply a negative margin to gutter . | true | |
motion | Setting used in framer-motion. | ||
config | Set the options for framer-motion . | undefined |
Edit this page on GitHub