Skip to main content

Overview

Use text color utilities for hierarchy, links, and status without leaving the shared palette. Semantic tokens also support .text-{token}-l-5 through .text-{token}-d-5; use the same shade steps shown in the Color Palette.

Examples

Usage Notes

Classes set color. Structural utilities are fixed grays for hierarchy; semantic utilities use the six tokens from Colors (primary, secondary, neutral, success, warning, error). For shades off the base, append -l-5-l-1 or -d-1-d-5 (see the palette). text-gray* is for typography tiers; text-neutral follows the neutral ramp like border-neutral / background-neutral.

Best practices

  • Use primary for links and brand emphasis; use success / error / warning for status.
  • Check contrast on colored backgrounds; see Colors — Accessibility.

Typography

Font size, weight, and layout

Background Colors

Background colors