The Default Color names Conflict w/ SASS Interpolation
See original GitHub issueWARNING on line 8, column 9 of /concise/components/_colors.scss:
You probably don’t mean to use the color value white' in interpolation here. It may end up represented as #ffffff, which will likely produce invalid CSS. Always quote color names when using them as strings (for example, "white"). If you really want to use the color value here, use
"" + $bg-color’.
My work-around was simply to add -color to the colors, so “green-color” and therefor also had to change the bg css settings and I think a few others.
Issue Analytics
- State:
- Created 9 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Interpolation - Sass
Interpolation can be used almost anywhere in a Sass stylesheet to embed the result of ... from { background-color: yellow } to {...
Read more >How to I solve this sass interpolation issue - Stack Overflow
Always quote color names when using them as strings or map keys (for example, "white"). If you really want to use the color...
Read more >Sass Techniques from the Trenches | CSS-Tricks
Whatever naming convention you choose, the base idea is that every styled element gets its own class name, prepended with the component name....
Read more >Sass (Syntactically Awesome StyleSheets)
:old forces the use of a colon before the property name. For example: :color #0f3 or :width $main_width . By default, either syntax...
Read more >Sass/SCSS Variables Tutorial - KoderHQ
The color is generated as #fff because there is no other value for the variable, so it defaults to this one. Example: Compiled...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@KamesCG
Does wrapping the color names in quotes fix this issue?
eg:
Solved using this way:
.#{''+$colorName+''}#{$hue}-border-bottom { border-bottom-color: $color !important; }