This will make sure that we tackle a few additional edge cases:
- When the `name` is the same as a reserved keyword, then it will be
used as a `name` as well. E.g.: 1s ease ease infinite; Will result in
a name of `ease` as well.
- We take care of trimming and multiple spaces.
- We don't generate 8k tests anymore, which means that these specific
tests only take a second instead of 10 seconds.
* implement matchUtilities2
* ensure animation names without keyframes are not prefixed
* remove matchBase
* call addUtilities for each group individually
* WIP: Write plugins using matchUtilities2
* MORE
* Fix arbitrary value support for fontSize
* Fixes, update fixtures
* Rebuild fixtures
* Don't generate `divide` class with no modifier
* Fixes, rebuild fixtures
* Rename matchUtilities2 to matchUtilities
* Delete bad tests
* Remove temp files GROSS
* Clean stuff up
* Support no return in matchUtilities
Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
* WIP
* WIP
* Finish combining JIT and AOT plugins
Still lots of clean up that can be done in some of the more complex ones, but at least it's one file per plugin now.
* Remove unused import
* Fix AOT generation bugs
* Move corePlugins/index.js to corePlugins.js
* Convert JIT files to ESM
* Move tests
* Reorder core plugins to match JIT order
* Update AOT apply tests
* Unify utils
* Combine plugin lists to one single source of truth
* Finish resolving merge conflicts, fix tests
Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
* feat: transform `hsl` to `hsla`
* feat: update plugins using `toRgba`
* Test `gradientColorStops`
* Add test for `ringWidth`
* Add percentage symbol after Saturation and Lightness
* Implement `filter` helper classes with all methods
* Rename filter plugins/utilities, drop filter opacity, add drop shadow
* Remove non-final default filter values
* Working on default filter values, add basic JIT support
* Working on blur values
* New blur values (these are ~okay)
* Match drop-shadow values to box-shadows by eye as best as possible
* Update tests
* Fix kitchen sink test
* Add filter variants configuration
* Move drop-shadow to end of filters list
Co-Authored-By: Peter Neupauer <peter@neupauer.sk>
* Add invert variants configuration
* Add backdrop-filter utilities
* Update tests
* Transition filters by default
* Alphabetize new config keys
* Optimize filter plugins for JIT + add arbitrary value support
Except for drop-shadow, will add that once we can think it through a bit.
Co-authored-by: Nick Schmidt <nick@kreativgebiet.com>
Co-authored-by: Peter Neupauer <peter@neupauer.sk>
* Added support for display : inline-table
* Moved the inline-table class to the suggested spot and updated the tests
Co-authored-by: Erik Verbeek <erik@evidencio.com>
* fix memory leak
* add optional condition to hasAtRule
* use known tree to handle `@apply` when required `@tailwind` at rules exists
Otherwise we will generate the lookup tree.
* only generate the missing `@tailwind` atrules when using `@apply`
* update perf config to reflect 2.0 changes
* update changelog
* ensure lookup tree is correctly cached based on used tailwind atrules
* Add failing test for #2823
* cleanup string literals
* use prettier for toMatchCSS diffs
* make sure that importants are applied correctly
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
* prefix custom properties with tw-
* prefix custom properties with tw- in tests
* prefix gradient values in the defaultConfig
* inline gradient-via-color
* simplify --tw-tailwind-empty to --tw-empty
* replace the long --tw-font-variant-numeric-... to the way shorter --tw-fvn-...
* Rename --tw-box-shadow to --tw-shadow
To match class name.
* Rename font-variant-numeric variables
* Remove 'transform' from transform variables
* Shorten gradient variables
* Fix style
Co-authored-by: Adam Wathan <adam.wathan@gmail.com>