-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
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
Add documentation for the type
prop in token files
#176
Comments
I believe that the basic values are below, these are then used with value transforms:
You can extend it with custom types/transforms, example of size transform below:
|
Thanks @NoWorries ! |
The mental list I've been keeping is There's a big difference between I don't think this covers all of the formats that support them, but the ones I remember off the top of my head that were important were in CSS Modules. I can have a token that's usable in @values * as componentTokens from 'component-tokens.cssmodules.css';
.my-selector {
composes: componentTokens.typography-style;
} Similarly, for breakpoints, @values phone, tablet, desktop from 'breakpoint-tokens.cssmodules.css';
@media phone, tablet {
/* styles */
} |
Stumbling on this a year later. Are there any docs on what values are available for the type prop? Unsure where to look. |
The readme shows the usage of the
type
prop in the token files but doesn't describe what the prop is used for or what values are available for it.It would be great to add that to the readme.
The text was updated successfully, but these errors were encountered: