Scope
- Tokens: global design tokens from
@vega-ui/tokens-core - Themes: light and dark theme layers from
@vega-ui/theme-core - CSS variables: how global and component variables are composed in real apps
Source Of Truth
packages/tokens/src/*.css: raw token definitionspackages/theme/src/*.css: semantic theme layerspackages/ui/src/**/style.module.css: component-level override points
Mental Model
Use the styling system in this order:
- import global tokens
- apply a theme class such as
.lightor.dark - consume semantic variables in components
- use component-local
--component-*variables only for targeted overrides