CSS Variables
Vueland UI uses layered CSS custom properties:
--c-ref-*- reference tokens with base palette values.--c-sys-*- global system theming tokens used by components and application styles.--c-{component}-*- component tokens. They are documented on component pages.
This page documents global reference and system tokens. The old --global-* variables are no longer used.
Theme Overrides
System tokens can be overridden through themes in createVuelandUI. CamelCase keys map to CSS variables: primary -> --c-sys-color-primary, shapeMd -> --c-sys-shape-md, motionDurationFast -> --c-sys-motion-duration-fast.
ts
createVuelandUI({
theme: 'light',
themes: {
light: {
primary: '#4f6ef7',
onPrimary: '#ffffff',
surface: '#ffffff',
onSurface: '#1f2937',
shapeMd: '10px',
motionDurationFast: '100ms',
},
},
})Keys that already start with -- are passed through as-is. Use that only for targeted integrations; short system keys are preferred for themes.
Reference Tokens
Reference tokens are defined on :root and provide the raw palette for system roles. They do not have short ThemeDefinition keys; override them only through direct CSS custom property names when needed.
Variable
Default
Purpose
--c-ref-color-white#ffffffWhite
--c-ref-color-black#000000Black
--c-ref-color-neutral-0#ffffffNeutral scale
--c-ref-color-neutral-50#fafafaNeutral scale
--c-ref-color-neutral-100#f5f5f5Neutral scale
--c-ref-color-neutral-200#eeeeeeNeutral scale
--c-ref-color-neutral-300#e0e0e0Neutral scale
--c-ref-color-neutral-400#bdbdbdNeutral scale
--c-ref-color-neutral-500#9e9e9eNeutral scale
--c-ref-color-neutral-600#757575Neutral scale
--c-ref-color-neutral-700#616161Neutral scale
--c-ref-color-neutral-800#424242Neutral scale
--c-ref-color-neutral-900#212121Neutral scale
--c-ref-color-neutral-950#000000Neutral scale
--c-ref-color-blue-40#1976d2Blue accent scale
--c-ref-color-blue-50#1e88e5Blue accent scale
--c-ref-color-blue-80#90caf9Blue accent scale
--c-ref-color-blue-90#bbdefbBlue accent scale
--c-ref-color-blue-95#e3f2fdBlue accent scale
--c-ref-color-green-40#4caf50Green success scale
--c-ref-color-green-80#81c784Green success scale
--c-ref-color-green-95#e8f5e9Green success scale
--c-ref-color-red-40#e53935Red error scale
--c-ref-color-red-80#e57373Red error scale
--c-ref-color-red-95#ffebeeRed error scale
--c-ref-color-orange-40#ff9800Orange warning scale
--c-ref-color-orange-80#ffb74dOrange warning scale
--c-ref-color-orange-95#fff3e0Orange warning scale
--c-ref-color-cyan-40#039be5Cyan info scale
--c-ref-color-cyan-80#4fc3f7Cyan info scale
--c-ref-color-cyan-95#e1f5feCyan info scale
--c-ref-color-lime-40#7cb342Lime tertiary scale
--c-ref-color-lime-80#aed581Lime tertiary scale
--c-ref-color-lime-95#f1f8e9Lime tertiary scale
System Color Tokens
Variable
Theme key
Light default
Dark default
Purpose
--c-sys-color-schemeschemelightdarkCSS
color-scheme value--c-sys-color-primaryprimaryvar(--c-ref-color-blue-40)var(--c-ref-color-blue-80)Main accent
--c-sys-color-primary-rgbprimaryRgb25, 118, 210144, 202, 249Primary RGB channels for rgba state layers
--c-sys-color-on-primaryonPrimaryvar(--c-ref-color-white)var(--c-ref-color-neutral-950)Text/icons on primary
--c-sys-color-primary-containerprimaryContainervar(--c-ref-color-blue-95)#1565c0Primary container
--c-sys-color-on-primary-containeronPrimaryContainer#0d47a1var(--c-ref-color-blue-95)Text/icons on primary container
--c-sys-color-secondarysecondary#1565c0#64b5f6Secondary accent
--c-sys-color-on-secondaryonSecondaryvar(--c-ref-color-white)var(--c-ref-color-neutral-950)Text/icons on secondary
--c-sys-color-secondary-containersecondaryContainervar(--c-ref-color-blue-90)#0d47a1Secondary container
--c-sys-color-on-secondary-containeronSecondaryContainer#0d47a1var(--c-ref-color-blue-90)Text/icons on secondary container
--c-sys-color-tertiarytertiaryvar(--c-ref-color-lime-40)var(--c-ref-color-lime-80)Tertiary accent
--c-sys-color-on-tertiaryonTertiaryvar(--c-ref-color-black)var(--c-ref-color-neutral-950)Text/icons on tertiary
--c-sys-color-tertiary-containertertiaryContainervar(--c-ref-color-lime-95)#33691eTertiary container
--c-sys-color-on-tertiary-containeronTertiaryContainer#33691evar(--c-ref-color-lime-95)Text/icons on tertiary container
--c-sys-color-successsuccessvar(--c-ref-color-green-40)var(--c-ref-color-green-80)Success state
--c-sys-color-on-successonSuccessvar(--c-ref-color-white)var(--c-ref-color-neutral-950)Text/icons on success
--c-sys-color-success-containersuccessContainervar(--c-ref-color-green-95)#1b5e20Success container
--c-sys-color-on-success-containeronSuccessContainer#1b5e20var(--c-ref-color-green-95)Text/icons on success container
--c-sys-color-errorerrorvar(--c-ref-color-red-40)var(--c-ref-color-red-80)Error and danger states
--c-sys-color-on-erroronErrorvar(--c-ref-color-white)var(--c-ref-color-neutral-950)Text/icons on error
--c-sys-color-error-containererrorContainervar(--c-ref-color-red-95)#b71c1cError container
--c-sys-color-on-error-containeronErrorContainer#b71c1cvar(--c-ref-color-red-95)Text/icons on error container
--c-sys-color-warningwarningvar(--c-ref-color-orange-40)var(--c-ref-color-orange-80)Warning state
--c-sys-color-on-warningonWarningvar(--c-ref-color-black)var(--c-ref-color-neutral-950)Text/icons on warning
--c-sys-color-warning-containerwarningContainervar(--c-ref-color-orange-95)#e65100Warning container
--c-sys-color-on-warning-containeronWarningContainer#e65100var(--c-ref-color-orange-95)Text/icons on warning container
--c-sys-color-infoinfovar(--c-ref-color-cyan-40)var(--c-ref-color-cyan-80)Info state
--c-sys-color-on-infoonInfovar(--c-ref-color-white)var(--c-ref-color-neutral-950)Text/icons on info
--c-sys-color-info-containerinfoContainervar(--c-ref-color-cyan-95)#01579bInfo container
--c-sys-color-on-info-containeronInfoContainer#01579bvar(--c-ref-color-cyan-95)Text/icons on info container
--c-sys-color-backgroundbackgroundvar(--c-ref-color-neutral-100)#121212Application background
--c-sys-color-on-backgroundonBackgroundvar(--c-ref-color-neutral-900)var(--c-ref-color-neutral-300)Text on application background
--c-sys-color-surfacesurfacevar(--c-ref-color-neutral-0)#1e1e1eBase component surface
--c-sys-color-surface-dimsurfaceDimvar(--c-ref-color-neutral-100)#121212Dim surface
--c-sys-color-surface-brightsurfaceBrightvar(--c-ref-color-white)#2f2f2fBright surface
--c-sys-color-surface-container-lowestsurfaceContainerLowestvar(--c-ref-color-white)#161616Lowest surface container
--c-sys-color-surface-container-lowsurfaceContainerLowvar(--c-ref-color-neutral-50)#202020Low surface container
--c-sys-color-surface-containersurfaceContainervar(--c-ref-color-neutral-100)#242424Surface container
--c-sys-color-surface-container-highsurfaceContainerHighvar(--c-ref-color-neutral-200)#2a2a2aHigh surface container
--c-sys-color-surface-container-highestsurfaceContainerHighestvar(--c-ref-color-neutral-300)#333333Highest surface container
--c-sys-color-surface-variantsurfaceVariantvar(--c-ref-color-neutral-200)#2f2f2fSurface variant
--c-sys-color-on-surfaceonSurfacevar(--c-ref-color-neutral-900)var(--c-ref-color-neutral-300)Text on surface
--c-sys-color-on-surface-variantonSurfaceVariantvar(--c-ref-color-neutral-700)var(--c-ref-color-neutral-400)Secondary text on surface
--c-sys-color-inverse-surfaceinverseSurfacevar(--c-ref-color-neutral-900)var(--c-ref-color-neutral-300)Inverse surface
--c-sys-color-inverse-on-surfaceinverseOnSurfacevar(--c-ref-color-neutral-100)var(--c-ref-color-neutral-900)Text on inverse surface
--c-sys-color-outlineoutlinevar(--c-ref-color-neutral-600)var(--c-ref-color-neutral-500)Main outline
--c-sys-color-outline-variantoutlineVariantvar(--c-ref-color-neutral-300)var(--c-ref-color-neutral-800)Secondary outline
--c-sys-color-placeholderplaceholdervar(--c-ref-color-neutral-500)var(--c-ref-color-neutral-600)Field placeholder
--c-sys-color-disableddisabledvar(--c-ref-color-neutral-500)var(--c-ref-color-neutral-700)Disabled text/icons
--c-sys-color-disabled-containerdisabledContainervar(--c-ref-color-neutral-200)var(--c-sys-color-surface-container-high)Disabled container
--c-sys-color-readonlyreadonlyvar(--c-sys-color-primary)var(--c-sys-color-primary)Readonly accent
--c-sys-color-readonly-containerreadonlyContainervar(--c-ref-color-neutral-100)var(--c-sys-color-surface-container-high)Readonly container
--c-sys-color-focus-ringfocusRingvar(--c-sys-color-primary)var(--c-sys-color-primary)Focus ring color
--c-sys-color-scrimscrimrgba(0, 0, 0, 0.5)rgba(0, 0, 0, 0.7)Overlay scrim
--c-sys-color-shadowshadowrgba(0, 0, 0, 0.15)rgba(0, 0, 0, 0.4)Base shadow color
System State Tokens
Variable
Theme key
Default
Dark
Purpose
--c-sys-state-hover-opacitystateHoverOpacity0.08-
Hover state layer opacity
--c-sys-state-focus-opacitystateFocusOpacity0.16-
Focus state layer opacity
--c-sys-state-pressed-opacitystatePressedOpacity0.12-
Pressed state layer opacity
--c-sys-state-dragged-opacitystateDraggedOpacity0.16-
Dragged state layer opacity
--c-sys-state-disabled-opacitystateDisabledOpacity0.50.4Disabled element opacity
--c-sys-state-disabled-container-opacitystateDisabledContainerOpacity0.120.16Disabled container opacity
--c-sys-state-hover-colorstateHoverColorrgba(var(--c-sys-color-primary-rgb), var(--c-sys-state-hover-opacity))-
Hover state layer color
--c-sys-state-focus-colorstateFocusColorrgba(var(--c-sys-color-primary-rgb), var(--c-sys-state-focus-opacity))-
Focus state layer color
--c-sys-state-pressed-colorstatePressedColorrgba(var(--c-sys-color-primary-rgb), var(--c-sys-state-pressed-opacity))-
Pressed state layer color
--c-sys-state-selected-colorstateSelectedColorrgba(var(--c-sys-color-primary-rgb), var(--c-sys-state-pressed-opacity))-
Selected state layer color
System Typography Tokens
Variable
Theme key
Default
Purpose
--c-sys-typography-font-family-basetypographyFontFamilyBaseinheritBase font family
--c-sys-typography-font-family-monotypographyFontFamilyMonoui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospaceMonospace font family
--c-sys-typography-body-sizetypographyBodySize1remBody text size
--c-sys-typography-body-line-heighttypographyBodyLineHeight1.5Body line height
--c-sys-typography-label-sizetypographyLabelSize0.875remLabel text size
--c-sys-typography-label-line-heighttypographyLabelLineHeight1.25remLabel line height
--c-sys-typography-label-weighttypographyLabelWeight500Label font weight
--c-sys-typography-title-sizetypographyTitleSize1.125remTitle text size
--c-sys-typography-title-line-heighttypographyTitleLineHeight1.5remTitle line height
--c-sys-typography-title-weighttypographyTitleWeight600Title font weight
System Spacing And Control Tokens
Variable
Theme key
Default
Purpose
--c-sys-space-0space00Spacing step 0
--c-sys-space-1space14pxSpacing step 1
--c-sys-space-2space28pxSpacing step 2
--c-sys-space-3space312pxSpacing step 3
--c-sys-space-4space416pxSpacing step 4
--c-sys-space-5space520pxSpacing step 5
--c-sys-space-6space624pxSpacing step 6
--c-sys-space-8space832pxSpacing step 8
--c-sys-space-10space1040pxSpacing step 10
--c-sys-density-scaledensityScale0pxControl density offset
--c-sys-control-height-smcontrolHeightSm32pxSmall control height
--c-sys-control-height-mdcontrolHeightMd42pxMedium control height
--c-sys-control-height-lgcontrolHeightLg48pxLarge control height
--c-sys-control-padding-inlinecontrolPaddingInlinevar(--c-sys-space-3)Control horizontal padding
--c-sys-control-icon-sizecontrolIconSize24pxControl icon size
System Shape And Border Tokens
Variable
Theme key
Default
Purpose
--c-sys-shape-noneshapeNone0No radius
--c-sys-shape-xsshapeXs2pxExtra small radius
--c-sys-shape-smshapeSm4pxSmall radius
--c-sys-shape-mdshapeMd8pxMedium radius
--c-sys-shape-lgshapeLg12pxLarge radius
--c-sys-shape-xlshapeXl16pxExtra large radius
--c-sys-shape-pillshapePill9999pxPill radius
--c-sys-border-width-thinborderWidthThin1pxThin border
--c-sys-border-width-mediumborderWidthMedium1.5pxMedium border
--c-sys-border-width-thickborderWidthThick2pxThick border
System Elevation And Motion Tokens
Variable
Theme key
Default
Purpose
--c-sys-elevation-0elevation0noneNo shadow
--c-sys-elevation-1elevation1Material shadow level 1
Low shadow
--c-sys-elevation-2elevation2Material shadow level 2
Floating element shadow
--c-sys-elevation-3elevation3Material shadow level 3
Medium shadow
--c-sys-elevation-4elevation4Material shadow level 4
High shadow
--c-sys-elevation-5elevation5Material shadow level 5
Extra high shadow
--c-sys-motion-duration-instantmotionDurationInstant0msInstant transition
--c-sys-motion-duration-fastmotionDurationFast120msFast transition
--c-sys-motion-duration-mediummotionDurationMedium200msMedium transition
--c-sys-motion-duration-slowmotionDurationSlow320msSlow transition
--c-sys-motion-easing-linearmotionEasingLinearlinearLinear easing
--c-sys-motion-easing-standardmotionEasingStandardcubic-bezier(0.25, 0.8, 0.5, 1)Standard easing
--c-sys-motion-easing-emphasizedmotionEasingEmphasizedcubic-bezier(0.2, 0, 0, 1)Emphasized easing
