ColorToken
interface ColorToken {
"[LOCEND]"?: number;
"[LOCSRCID]"?: number;
"[LOCSTA]"?: number;
"[ROOT]"?: AstStyleSheet | null;
cal?: "col" | "rel" | "mix";
chi?: Token[];
kin: ColorType;
parent?: any;
typ: ColorTokenType;
val: string;
[key: number]: string | undefined;
}
"[LOCEND]"?: number;
"[LOCSRCID]"?: number;
"[LOCSTA]"?: number;
"[ROOT]"?: AstStyleSheet | null;
cal?: "col" | "rel" | "mix";
chi?: Token[];
kin: ColorType;
parent?: any;
typ: ColorTokenType;
val: string;
[key: number]: string | undefined;
}
Hierarchy (View Summary)
- BaseToken
- ColorToken
Indexable
-
[key: number]: string | undefined
Index
Properties
Properties
Optional[ LOCEND]
"[LOCEND]"?: number
source end offset
Optional[ LOCSRCID]
"[LOCSRCID]"?: number
source src
Optional[ LOCSTA]
"[LOCSTA]"?: number
source start offset
Optional[ ROOT]
root node
Optionalcal
cal?: "col" | "rel" | "mix"
Whether the color is relative, color-mix or color
Optionalchi
Color components
kin
Color kind
Optionalparent
parent?: any
parent node
typ
token type
val
val: string
Color value or color function name
Color token