Rana token reference

Every custom property in src/rana.css. Color tokens resolve live — switch themes to see them update. When you add or change a token in src/rana.css, update the values on this page to match.

Theme

Demo · Marketing

Color

All tokens use light-dark() and resolve with color-scheme. The sepia and mint named themes override a subset on :root[data-theme].

Surface

Ink

Border

Interactive

State

Type scale

Three voices: serif for reading, sans for structure and labels, mono for code. Two weights only: 400 and 700. h1 and h2 are fluid (clamp()); h3 through h6 are fixed.

Font family tokens

For Arabic content (lang="ar"), both --font-serif and --font-sans resolve to Noto Sans Arabic prepended to the Latin stacks.

Spacing

A nine-step scale from 4 px to 64 px. Every block margin and padding in the framework draws from one of these tokens. The bars are sized by the tokens themselves.

Motion

All transitions and animations are suspended under prefers-reduced-motion: reduce. Hover the boxes below to see the easing curves.

Duration

Easing

Color transitions (links, buttons, form fields, theme cross-fade) use plain ease with no custom curve.

Other

Fixed values

These are not custom properties; they are hard-coded in the element rules in src/rana.css. They are listed here for completeness.