Foundations / Colors

Colors & Surfaces

Design tokens that power the Maya UI experience. Never use hardcoded hex values — always consume these variables.

Background Tiers

Use these in order of z-axis depth. Root = deepest, Raised = floating.

--maya-bg-rootBody, canvas, page base
--maya-bg-surfacePanels, toolbars, sidebars
--maya-bg-raisedCards, dropdowns, modals

Striped Texture

Premium noise pattern. Stack on top of any background token.

var(--maya-pattern-stripes), var(--maya-bg-root)

Typography Scale

Three levels of text emphasis.

Primary — Headings, Labels --maya-text-primary
Secondary — Body, descriptions --maya-text-secondary
Muted — Placeholders, section titles --maya-text-muted

Borders

Three border weights for different contexts.

--maya-borderDefault dividers
--maya-border-strongInputs, buttons
--maya-border-hoverFocus, hover
maya-dash-allDashed separators

Depth & Elevation

Layered shadow system to express z-axis position.

--maya-shadow-smInline elements
--maya-shadow-mdCards, panels
--maya-shadow-insetInputs, wells

Semantic Colors

Use sparingly to trigger emotion and communicate state. Each color has 5 variants: solid, hover, muted bg, border, text.

SuccessTrust, growth, done--maya-success
WarningCaution, action needed--maya-warning
DangerError, destructive, urgent--maya-danger
InfoNeutral, informational--maya-info
AccentBrand, interactive, CTA--maya-accent