Theme Interface
The completeTheme type definition:
Scale Type
Scales can be defined as arrays or objects:Required vs Optional Fields
All theme properties are optional. Theme UI provides sensible defaults:Color Modes Scale
The colors scale has special support for color modes:Configuration Object
Theconfig object controls Theme UI behavior:
Theme Styles
Thestyles object defines base element styles:
Scale Conventions
Space Scale Convention
Use powers of two or a consistent rhythm:Font Size Scale Convention
Define a typographic scale:Color Scale Convention
Organize colors by purpose:Nested Scales
Nested scales allow grouping related values:__default key is used when accessing the parent:
Component Variants
Component variants are reusable style objects:Breakpoints
Breakpoints define responsive design boundaries:Following the Theme Specification ensures your themes work consistently across different Theme UI applications and can be shared or extended easily.
