@modular/sdk/css
15 exports in 2 groups.
Types9
- AnimationNametypestring & { [___animName]: true }
- ComplexStyleRuletypeStyleRule | (string | StyleRule)[]
- CSSVarPathtypeThemeKey | StripDollar<ColorToken> | StripDollar<SemanticToken>
- GlobalStyleRuletypeWithTokensDeep<VEGlobalStyleRule> & ElectronWindowRegionStyle
- SemanticTokentype{ [Category in keyof SemanticTokens]: { [Key in keyof SemanticTokens[Category]]: `$${Category & string}.${Key & string}` }[keyof SemanticTokens[Category]] }[keyof SemanticTokens]
- StyleRuletypeOmit<TokenizedStyleRule, 'selectors'> & ElectronWindowRegionStyle & { selectors?: Record<string, TokenizedSelectorRule & ElectronWindowRegionStyle> }
- ThemeTokenPathtype`$${ThemeKey}`
- TokenReftypeColorToken | RadiusToken | ZIndexToken | EasingToken | ShadowToken | EditorToken | SpacingToken | OpacityToken | FontSizeToken | DurationToken | SemanticToken | ThemeTokenPath | FontWeightToken | LineHeightToken | FontFamilyToken | NegativeSpacingToken
- ViewTransitionNametypeAnimationName
Functions6
- createViewTransitionfunction(debugId?: string) => AnimationName
- cssfunction(path: CSSVarPath) => `var(--${string})`
- globalStylefunction<T extends GlobalStyleRule>(selector: string, rule: T) => void
- keyframesfunction<T extends Record<string, StyleRule>>(rule: T, debugId?: string) => AnimationName
- stylefunction<T extends ComplexStyleRule>(rule: T, debugId?: string) => string
- styleVariantsfunction<M extends Record<string | number, ComplexStyleRule>>(styleMap: M, debugId?: string) => Record<keyof M, string> | <D extends Record<string | number, unknown>, K extends string | number | symbol>(data: D, mapData: (value: D[K], key: K) => ComplexStyleRule, debugId?: string) => Record<keyof D, string>