-
Notifications
You must be signed in to change notification settings - Fork 197
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
chore: adds transparent-tokens.js #3452
base: main
Are you sure you want to change the base?
chore: adds transparent-tokens.js #3452
Conversation
|
🚀 Deployed on https://pr-3452--spectrum-css.netlify.app |
File metricsSummaryTotal size: 4.27 MB* Table reports on changes to a package's main file. Other changes can be found in the collapsed Details section below.
Detailsswatch
* Results are not gzipped or minified. * An ASCII character in UTF-8 is 8 bits or 1 byte. |
f9665ba
to
7820d75
Compare
- reads the tokens/dist/index.css - finds any custom properties that refer to tokens with the word "transparent" in them - creates new custom properties that correspond to the -rgb and -opacity values of the transparent token - replaces the global transparent token value with an rgba function that references the newly created custom properties instead.
7820d75
to
892feda
Compare
Description
How and where has this been tested?
Please tag yourself on the tests you've marked complete to confirm the tests have been run by someone other than the author.
Validation steps
node ./plugins/postcss-rgb-mapping/transparent-tokens.js
Regression testing
Validate:
Screenshots
To-do list