-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Use actual colors #1542
Use actual colors #1542
Conversation
Thanks for the PR, @glebm. We're going to take some time to review the implementation here and discuss it with the core team. We appreciate you working on this. |
bac9c75
to
daadf75
Compare
Cheers! Reverted the |
* Use actual colors everywhere, remove `unquote` stuff. * Since this project aims to generate invalid CSS for "easy" templating without Sass, we still need to generate literal `rgba($var, 0.5)`. Define `rgba-tpl` function for this purpose.
daadf75
to
1adcbf5
Compare
This gets a big thumbs up from me. |
👍 |
This is a BC break for anyone using the Sass in their own build pipeline. Can't merge before 2.x. |
I'm not sure how much of a BC break this is for folks using SASS, actually, @Garbee. If they're relying on the palette variables directly, perhaps (and I'd argue those should be considered private), but it otherwise seems compatible with our previous variable format. It seems to me that if you're just defining |
I have looked into making it backward-compatible:
|
This has to be postponed to 2.0. Internally we can update all we want. Other developers however may have included MDL and used the Sass in their pipeline, then used the unquote hack in their code to get the colors. That means it is a breaking change. |
|
Ok, I'm confused on that one. If someone already has |
This PR replaces our color variables to use actual colors rather than strings. It also updates the template generation and customizer to use '#name' style placeholders instead of '$name', so that CSSO doesn't complain about the syntax. This PR may later be invalidated if we decide to move away from SASS, but for now it provides a good baseline for current development.
Use actual colors in SASS variables. Rework of #1542.
Following up on the internal discussions. Words are cheap, code is gold.
unquote
stuff.rgba-tpl
function for generating (invalid) CSS templates (literalrgba($var, 0.5)
).