Commit graph

11 commits

Author SHA1 Message Date
Adam Wathan
f9d54f0382 Refactor preserving rgb/hsl when adding alpha channel 2021-04-30 09:27:56 -04:00
Federico Ciardi
92bb81e647
feat: transform hsl to hsla (#3850)
* feat: transform `hsl` to `hsla`

* feat: update plugins using `toRgba`

* Test `gradientColorStops`

* Add test for `ringWidth`

* Add percentage symbol after Saturation and Lightness
2021-04-30 09:09:58 -04:00
Adam Wathan
d98f2f829d Pass full opacityValue always 2021-03-17 17:47:08 -04:00
Adam Wathan
e3ed12782f Update prettier 2020-10-16 13:30:06 -04:00
Adam Wathan
ff866775a0 Remove fallback colors 2020-10-15 15:21:06 -04:00
Adam Wathan
19333add01 Set color opacity variable when colors are defined as functions (#2515)
* Always set color opacity variable, even if color cannot be parsed

* Only set color opacity when it might be used
2020-10-07 14:08:39 -04:00
Adam Wathan
8d87445b81 Improve API, support auto-transparent to, rename gradientColor plugin 2020-08-17 11:05:06 -04:00
Enzo Innocenzi
dbcac5035a
refactor!: use object instead of positional arg 2020-06-28 20:46:23 +02:00
Haew
109dec1681 Allow colors to be defined as closures 2020-05-01 05:22:52 +02:00
Adam Wathan
f94e2c37f2 Fix import 2020-04-26 11:05:42 -04:00
Adam Wathan
3b565d1f9c Add opacity modifiers for color utilities 2020-04-26 09:49:23 -04:00