design-token-library.designtoken.values.color
Home > design-token-library > DesignToken > Values > Color
DesignToken.Values.Color type
A six or 8 digit hexadecimal string.
Signature:
type Color = `#${string}`;
Remarks
Ideally we would be able to enumerate a-zA-Z1-9 * 6 | 8 chars and narrow this type, however TypeScript cannot handle that many type union combinations and will fail to compile. This is the best representation of a 6 or 8 digit hex char that can be accomplished