UI Core overview
Resolve Tavo.js theme configuration and tokens in platform-neutral tooling without importing a web or native renderer.
Use UI Core only at a tooling boundary
@tavojs/ui-core validates theme configuration and returns color ramps, semantic modes, static tokens, resolved breakpoints, and accessibility warnings as plain data. It has no DOM, component renderer, Tavo.js runtime, Vite, CSS module, or React Native dependency.
Understand the resolution pipeline
Validate the required config shape and supported values.
Apply the selected preset.
Merge explicit project values over preset defaults.
Resolve viewport and breakpoint values.
Generate light and dark color modes plus mode-independent tokens.
Collect contrast warnings or fail when configured to enforce them.
The result contains plain records, so the consuming platform decides whether to emit CSS variables, native objects, JSON, or design-tool data.