Leave Yamada UI a star

Star
Yamada UIYamada UIv1.4.7

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" },
}
Copied!
PropertyDescriptionDefault
initialThemeSchemeInitial value of the theme used in Switching Themes."base"
initialColorModeInitial value of the Color Mode. Accepts light, dark, system."light"
disableTransitionOnChangeSetting to avoid unnecessary movements such as transitions during color mode switching.false
breakpointSetting of breakpoints used in Responsive Styles.
directionSet 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"
identifierSet the query of breakpoints used in responsive styles."@media screen"
varSetting used in CSS custom properties.
prefixSet the prefix used in CSS custom properties."ui"
dateSetting used in Calendar and DatePicker.
localeSet the locale used in Calendar and DatePicker."en"
loadingSetting used in Loading.
screenSet the options for screen loading.undefined
pageSet the options for page loading.undefined
backgroundSet the options for background loading.undefined
customSet the options for custom loading.undefined
alertSetting used in Alert.
statusesSet the status of Alert.undefined
noticeSetting used in Notification.
optionsSet the options for notification.undefined
variantsSet the variants for notification.undefined
gapSet the gap between notifications."md"
appendToParentPortalSet whether to add the portal to the node of the parent portal when the portal is in the parent portal.true
containerRefSet the ref of the component where the portal is attached.undefined
snacksSetting used in Snacks.
optionsSet the options for snacks.undefined
variantsSet the variants for snacks.undefined
gapSet the gap between snacks."md"
gutterSet the vertical spacing of snacks.[0, 0]
negateMarginSet whether to apply a negative margin to gutter.true
motionSetting used in framer-motion.
configSet the options for framer-motion.undefined

Edit this page on GitHub

PreviousConfigureNextCustomize Config