UX-DSL
XS0px

Palette

Semantic color mappings for primary, secondary, and surface roles.

Each card relies purely on palette(tone-variant) helpers. Values are computed at runtime from the applied CSS variables.

Interactive Playground

Live Palette Preview
PaletteUsage.uxdsl
.my-element {
  background-color: palette(primary-main);
  color: palette(primary-contrast);
}

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