InternalProtectedconstructorInternalStatic Readonly InternaltokenStatic Readonly InternaltokenReadonly InternaltokenProtected Readonly InternalbrightnessProtected Readonly InternalclrProtected Readonly InternalcontrastProtected Readonly InternalextraProtected Readonly InternalsetsInternalThe value of this token.
StaticbuildInternalUsed instead of the constructor so that it can be async.
StaticcustomProtected StaticbuildInternalUsed to initialize multiple themes at once.
InternalConverts this token or group to a json-compatible object. NOT W3C tokens -- this is meant to be more human-readable.
Uses AbstractTokens.schemaJSON.
InternalConverts this token or group to the values used when converting to scss.
ProtectedparseInternalA utility for parsing Zod schemas with appropriate error handling.
Schema to use when parsing the value.
The value to check against the schema.
A context object used for AbstractTokens.Tokens_Error if the parsing fails.
Optional. Message to use if the parsing fails.
Optional. Parameters passed to the Zod schema's safeParse method.
Generates a complete token object for the design system.
Since
0.1.0-alpha