hsl(a)/rgb(a) values don't seem to work
See original GitHub issue@value backgroundColor: hsla(220, 13.0%, 18.0%, 1);
.background {
background-color: backgroundColor
}
Seems to result in
background-color: hsla(220);
Is that a bug? Or am I doing something wrong?
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
color IE fallback for rgba() does not work - Stack Overflow
RGBA is not supported in IE. However, as it sees your color: style, it attempts to evaluate it and reverts to the default...
Read more >HSL: a color format for humans - Cloud Four
Here's what an HSL color looks like: hsl(180, 50%, 50%) . Similar to RGBA, there's also an HSLA format which adds an alpha...
Read more >Color Formats in CSS - hex, rgb, hsl, lab - Josh W Comeau
Introduction. CSS has a whole slew of different color formats: hex codes, rgb(), hsl(), lch(), the list goes on! Which one should we...
Read more >OKLCH in CSS: why we moved from RGB and HSL
The main problem with HSL is that it has a cylindrical color space. Every hue has the same amount of saturation ( 0—100%...
Read more >A Guide To Modern CSS Colors With RGB, HSL, HWB, LAB ...
More recently, we have been able to use HSL (hue, saturation, lightness) values, with the hsl() and hsla() color functions.
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
I’m using v1.1.1 via css-loader (with c24881e fix) but have come across a similar issue with commas…
This:
compiles to:
In case it helps, another comma edge-case that also doesn’t compile correctly:
Fixed by https://github.com/css-modules/postcss-modules-values/commit/c24881e338f9857d2ecc91a4d10074b15d37552e (ignore the issue number in the commit message, need more ☕)