Prepared Docs

Prepared Docs

⌘K

    Loading navigation…

User

  1. Foundations
  2. Tokens

Tokens

Namespace primer for the CSS custom properties defined in ui-core.

This page is the quick index for namespaced CSS variables shipped in @prepared911/ui-core/styles/variables.scss. Prefer these over hard-coded px/#rgb values.

Naming pattern

  • Color: --color-{role}-{variant} and --color-intent-{intent}-{slot}.
  • Space: --spacing-* plus --border-radius-*.
  • Type: --font-size-*, --text-*, --font-weight-*, --font-geist*.
  • Depth: --shadow-* and --z-index-* pair with Elevation / ZIndex on components.
  • Motion: --animation-duration-*, --animation-easing-*.
  • Interaction: --brightness-* and transparent surface tokens (--color-transparent-background-*).

Typography scale

Name

Type

Default

Description

--font-size-1 … 9

dimension

scaled rem

Radix-relative ladder; avoid direct use when a --text-* alias exists.

--text-title-page

alias

≈ H1

Maps to TextType.Display.

--text-body-base

alias

≈ body

Default paragraph density in product surfaces.

--text-caption

alias

meta

Secondary metadata and table footers.

Spacing & radii

Name

Type

Default

Description

--spacing-05 … 10

dimension

0.4–8rem

Consumed by Box margin/padding props.

--border-radius-small … full

dimension

rem

Mapped to BorderRadius enum.

Shadow & z-index

Name

Type

Default

Description

--shadow-1 … 5

shadow

stacked opacities

Paired with Elevation on Box.

--z-index-below → tooltip

integer

predefined

Use enums in ZIndex instead of raw numbers in React.

Motion

Name

Type

Default

Description

--animation-duration-fast|quick|normal|slow

time

100–300ms

quick (150ms) is the common popover/menu tier; pair with --animation-easing-*.

--animation-easing-*

easing

keyword / cubic-bezier

Includes --animation-easing-ease, --animation-easing-ease-in-out, --animation-easing-ease-in, --animation-easing-ease-out, --animation-easing-emphasized.

Interaction

Name

Type

Default

Description

--brightness-hover / --brightness-active

number

per theme

Multipliers for filter: brightness() on filled button types; values differ in light vs dark.

--color-transparent-background-hover|active

color

alpha gray

Ghost and secondary-style hover/active surfaces. Swatches on [Colors](./colors#interaction-states).

Component-shared spacing

Name

Type

Default

Description

--affix-padding

dimension

spacing-1

Horizontal inset for input/combobox affix icon regions.

--button-ghost-padding-x|y

dimension

spacing scale

Shared padding for link-style Button and IconButton ghost variants.

Effects

Name

Type

Default

Description

--gradient-critical

gradient

conic

Fill for ButtonType.Critical and critical split-button shells.

--message-glow-self / --message-glow-other

shadow

per theme

Component-scoped glow stacks for chat message emphasis; defined in theme files.

Imports

After importing, every token in this page is available to your app stylesheet.

Previous

Semantics

Next

Animated Number / Usage

On this page

Naming pattern
Imports