We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We extend the DesignToken type from StyleDictionary to specify with more detail the information in them (src/style-dictionary/types.ts):
src/style-dictionary/types.ts
I have a couple of suggestions to make these types simpler:
Change enums of TokenType and ShadowType to string arrays and union types
TokenType
ShadowType
Reuse more of the DesignToken type of StyleDictionary (aliased as SDDesignToken)
description
DesignToken
comment
SDDesignToken
attributes.type
type
These suggestions need to be experimented on. I am not certain all of them work or are better solutions.
SDDesignToken spec:
interface DesignToken { value: any; name?: string; comment?: string; themeable?: boolean; attributes?: { category?: string; type?: string; item?: string; subitem?: string; state?: string; [key: string]: any; }; [key: string]: any; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We extend the DesignToken type from StyleDictionary to specify with more detail the information in them (
src/style-dictionary/types.ts
):I have a couple of suggestions to make these types simpler:
Change enums of
TokenType
andShadowType
to string arrays and union typesReuse more of the DesignToken type of StyleDictionary (aliased as SDDesignToken)
description
on ourDesignToken
be thecomment
value fromSDDesignToken
?attributes.type
value fromSDDesignToken
instead of ourtype
value onDesignToken
?These suggestions need to be experimented on. I am not certain all of them work or are better solutions.
SDDesignToken
spec:The text was updated successfully, but these errors were encountered: