Jordan Pittman
64b4e6df7b
Replace rgb and hsl helpers with <alpha-value> placeholder for colors with custom properties ( #8501 )
...
* implement <alpha-value>
* remove `rgb`/`hsl` helpers, use `<alpha-value>` instead
* never pass undefined to `withAlphaValue`
* WIP
* WIP
* WIP
* WIP
* Update changelog
* Cleanup
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2022-06-02 10:21:20 -04:00
Jonathan Reinink
ca1dfd6313
Add border-x-{width}, border-y-{width}, border-x-{color} and border-y-{color} utilities ( #5639 )
...
Co-Authored-By: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
Co-Authored-By: Davy <davy@prepr.io>
2021-09-29 10:32:31 -04:00
Brad Cornes
4919cbfbb8
Update color parsing and formatting ( #5442 )
...
* Replace `culori` with simple color parser
* Use space-separated color syntax
* Update default color values to use space-separated syntax
* Update separator regex
* Fix tests
* add tests for the new `color` util
Also slightly modified the `color` util itself to take `transparent`
into account and also format every value as a string for consistency.
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2021-09-09 16:15:53 +02:00
Robin Malfait
a34bd62bb6
Remove lodash ( #5390 )
...
* remove `lodash` usage
* implement custom cloneDeep to replace lodash's
* drop lodash in processPlugins
* add `toPath` utility
* add `tap` utility
* add `cloneDeep` utility
* drop lodash in evaluateTailwindFunctions
* add `defaults` utility
* drop lodash from `resolveConfig`
* remove `lodash` dependency
2021-09-06 14:15:10 -04:00
Hunter Tunnicliff
be4aa931b6
Fix handling of CSS variable declarations
2021-09-01 17:28:30 +02:00
Hunter Tunnicliff
721e57312b
Fix formatting
2021-09-01 17:28:30 +02:00
Hunter Tunnicliff
ff9b06a95b
Use correct ESM import syntax
2021-09-01 17:28:30 +02:00
Hunter Tunnicliff
c52cd713b0
Replace color with culori
2021-09-01 17:28:25 +02:00
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