@sola-air-ui/tokens
v1.1.0
Published
Design tokens for Sola AIR — spacing, radius, type scale, color, and semantic palette
Maintainers
Readme
@sola-air-ui/tokens
Design tokens for Sola AIR — spacing, radius, type scale, color, and semantic palette values, shared across @sola-air-ui/ui components so everything renders from one consistent system instead of hardcoded values scattered per component.
Install
npm install @sola-air-ui/tokensUsage
As CSS custom properties (drop into any stylesheet or .sola component):
@import '@sola-air-ui/tokens/css';
.my-panel {
padding: var(--sola-space-lg);
border-radius: var(--sola-radius-lg);
color: var(--sola-text-primary);
}As JS values (for computed styles, chart theming, etc.):
import tokens from '@sola-air-ui/tokens';
console.log(tokens.space.lg, tokens.radius.lg, tokens.color.primary);Scoping note for widget/iframe environments
If you're embedding Sola output inside something that auto-scopes CSS to a container (e.g. a CMS widget sandbox), point the token stylesheet's root selector at your actual mount element rather than :root — a scoped :root selector matches nothing, since :root always resolves to <html> regardless of nesting.
