UX-DSL
XS0px

Palette

Semantic color mappings for primary, secondary, and surface roles.
Interactive Demo: Palette
Background
Text
Live Palette Preview
CSS Usage
.my-element{
background:palette(primary-main);
color:palette(primary-contrast);
}

Token-Aware Colors: Use palette() to access semantic colors (primary, success, surface) and their variants (main, light, dark).

Palette Explorer

Primary

Brand actions and key highlights
main
light
dark
contrast
Select Tone
Primary
Secondary
Tertiary
Success
Info
Warning
Error
Dark
Neutral
Light
Surface
Global Palette
Click on any color swatch to update the UX-DSL token.

Primary

Brand actions and key highlights

  • primary-main
  • primary-light
  • primary-dark
  • primary-contrast

Secondary

Complementary elements and secondary CTAs

  • secondary-main
  • secondary-light
  • secondary-dark
  • secondary-contrast

Tertiary

Muted accents and tertiary surfaces

  • tertiary-main
  • tertiary-light
  • tertiary-dark
  • tertiary-contrast

Success

Positive states and confirmations

  • success-main
  • success-light
  • success-dark
  • success-contrast

Info

Informational surfaces and banners

  • info-main
  • info-light
  • info-dark
  • info-contrast

Warning

Cautionary or pending actions

  • warning-main
  • warning-light
  • warning-dark
  • warning-contrast

Error

Destructive flows and error states

  • error-main
  • error-light
  • error-dark
  • error-contrast

Dark

High-contrast backgrounds

  • dark-main
  • dark-light
  • dark-dark
  • dark-contrast

Neutral

Structure, frames, and dividers

  • neutral-main
  • neutral-light
  • neutral-dark
  • neutral-contrast

Light

Raised backgrounds and cards

  • light-main
  • light-light
  • light-dark
  • light-contrast

Surface

Base canvas + sheets

  • surface-main
  • surface-light
  • surface-dark
  • surface-contrast