Leave Yamada UI a star

Star
Yamada UIYamada UIv1.7.2

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
localeInitial value of the locale used in Calendar and FormatNumber.navigator.language
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"
baseThe base value for the breakpoint when direction is "down". This is treated as the largest breakpoint."9999px"
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"
themeSetting used in CSS Customize Theme.
responsiveIf true, theme tokens will accept responsive objects.false
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
statusSetting used in Status.
statusesSet the status of Status.undefined
noticeSetting used in Notice.
optionsSet the options for Notice.undefined
variantsSet the variants for Notice.undefined
gapSet the gap between Notice."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
listPropsProps for Notice list element.undefined
itemPropsProps for Notice item element.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 Motion.
configSet the options for Motion.undefined

Edit this page on GitHub

PreviousConfigureNextCustomize Config