@cn-ui/core
Version:
The @cn-ui/core is a collection of UI components and utilities for building modern web applications with SolidJS.
42 lines (41 loc) • 1.11 kB
TypeScript
import type { CSSObject } from "unocss";
/**
* [token_name,light,dark][]
*/
export type TokenLike = [string, CSSObject, CSSObject][];
export declare class TokenRules {
token: TokenLike;
colors: {
White: string;
SecondaryWhite: string;
TertiaryWhite: string;
LabelSecondaryWhite: string;
FloatingWhite: string;
Black: string;
TertiaryBlack: string;
SecondaryBlack: string;
LabelSecondaryBlack: string;
SeparatorOpaque: string;
SeparatorOpaqueBlack: string;
};
constructor(token: TokenLike, colors?: {
White: string;
SecondaryWhite: string;
TertiaryWhite: string;
LabelSecondaryWhite: string;
FloatingWhite: string;
Black: string;
TertiaryBlack: string;
SecondaryBlack: string;
LabelSecondaryBlack: string;
SeparatorOpaque: string;
SeparatorOpaqueBlack: string;
});
toUnoCssRules(): (string | {
[k: string]: string;
})[][];
toCssVars(): {
light: string;
dark: string;
};
}