ColorToken
interface ColorToken {
cal?: "col" | "rel" | "mix";
chi?: PlainToken[];
kin: ColorType;
loc?: SourceLocation | null;
typ: ColorTokenType;
val: string;
}
cal?: "col" | "rel" | "mix";
chi?: PlainToken[];
kin: ColorType;
loc?: SourceLocation | null;
typ: ColorTokenType;
val: string;
}
Hierarchy (View Summary)
- BaseToken
- ColorToken
Index
Properties
Properties
Optionalcal
cal?: "col" | "rel" | "mix"
Whether the color is relative, color-mix or color
Optionalchi
Color components
kin
Color kind
Optionalloc
source location
typ
token type: EnumToken.ColorTokenType
val
val: string
Color value or color function name
Color token