Typography
Typography system with 10-step scale (0-9), font weights, and formatting components. The typography infrastructure (scale system, token structure) is from Radix Themes, but Kookie UI uses custom typography values that differ from Radix Themes.
For complete typography documentation and advanced customization, visit the Radix Themes Typography documentation. Note that Kookie UI's typography values are customized and may not match Radix Themes exactly.
Installation
shellUsage
Use Text and Heading components to render titles and body copy. These components share size and weight props for consistent typography.
tsxType Scale
10-step size scale (0-9) with corresponding font size, line height, and letter spacing values:
cssSize Scale
Size 0
Extra small text for fine print and micro labels.
tsxSize 1
Small text for captions and labels.
tsxSize 2
Body text for secondary content.
tsxSize 3
Standard text for main content.
tsxSize 4
Large text for important content.
tsxSize 5
Heading text for section titles.
tsxSize 6
Large heading for page titles.
tsxSize 7
Display text for hero sections.
tsxSize 8
Hero text for main headlines.
tsxSize 9
Massive text for impact headlines.
tsxFont Weight
Use weight prop to control text emphasis and hierarchy:
tsxAvailable weights: thin, extralight, light, regular, medium, semibold, bold, extrabold.
Formatting Components
Compose formatting components to add emphasis and structure:
tsxtsxFont Family
Kookie UI preserves the Radix typography tokens. Components read from these tokens, and their shape matches the structure described in the Radix Themes documentation.
cssFont Customization
Kookie UI makes font customization simple and flexible. Switch between font families instantly using theme props or customize with your own fonts.
Theme Font Family
tsxCustom Fonts
Kookie UI uses two layers of font variables. Designers can stay at the Kookie layer, while developers who already know Radix can work directly with the Radix tokens. You can override either layer; the most common entry point is the Kookie design tokens.
cssTheme Override Variables
These are the main Kookie design tokens you override to customize fonts globally. They are wired into the Radix typography tokens shown above, so changing them updates the fonts used by components.
Base Font Stacks
These are the actual font stacks used by the theme override variables. Override these only if you want to change Kookie's base fonts.
Credits
The typography infrastructure (10-step scale system and token structure) is from Radix Themes by WorkOS. However, Kookie UI uses custom typography values that have been modified from the original Radix Themes values. The typography system structure and approach credit goes to Radix Themes, while the specific typography values are custom to Kookie UI.