Usage Guidelines

Usage guidelines for semantic tokens, layer system and best practices for consistent design system implementation.

TokenUsageExamplesAvoid
--background-page
var(--neutral-100)

Application body foundation

Always use as the foundation layer

bodymain containersapp background
Never use for card backgroundsAvoid for modal overlays
--layer-01
var(--neutral-white)

Siempre sobre --background-page

Primary surface for content

cardspanelscontent areas
Don't use directly on background-pageAvoid stacking multiple layer-01
--layer-02
var(--neutral-100)

Siempre sobre --layer-01

Secondary surface elevation

nested cardssidebars on cardsgrouped content
Never place on background-pageDon't skip layer hierarchy
--layer-03
var(--neutral-200)

Siempre sobre --layer-02

Tertiary surface for complex layouts

tooltips on cardsnested panelscomplex form sections
Avoid deep nestingDon't use for primary content
--text-standard
var(--neutral-black)

Texto principal

Primary text content

headingsbody textprimary labels
Avoid on dark backgroundsDon't use for disabled states
--text-subdued
var(--neutral-600)

Texto secundario

Supporting text content

descriptionsmetadatasecondary labels
Never for critical informationAvoid as only text color
--text-inverse
var(--white)

Texto sobre fondos oscuros

Text on dark backgrounds

dark buttonsdark headersinverse cards
Don't use on light backgroundsAvoid low contrast combinations

Semantic Token Benefits

Theme Flexibility

Semantic tokens adapt automatically to theme changes

Consistent Usage

Clear purpose prevents incorrect application

Maintenance

Centralized updates propagate across the system