Adam Wathan
90da0b3a7c
Rebuild fixtures
2021-07-21 15:47:24 -04:00
Adam Wathan
a76fb7fb14
Fix issue where base styles not generated for translate transforms in JIT ( #5038 )
2021-07-21 15:42:38 -04:00
Adam Wathan
81f9e940b4
Update version in fixtures
2021-07-21 10:23:20 -04:00
Nestor Vera
cc4aaaaa49
Add new utility for align-self: baseline ( #5000 )
2021-07-17 15:19:14 -04:00
Adam Wathan
f20655c2d3
Fix backdrop opacity variants ( #4892 )
...
We weren't generating backdrop opacity variants properly due to a typo in the default config.
2021-07-04 09:50:14 -04:00
Adam Wathan
a3230307f3
Ensure [hidden] works as expected ( #4873 )
2021-07-02 09:14:03 -04:00
Adam Wathan
4a070ac0be
Try to use lowest impact selector when filling in defaults ( #4866 )
2021-07-01 17:18:46 -04:00
Sergey Tatarintsev
2166b76c53
Improve production build performance for the case of many small non-tailwind stylesheets ( #4644 )
...
* Improve `purge` performance in layers mode
In layers mode, skip `purgecss` completely if source stylesheet does
not have any tailwind layers. For the legacy codebases with a lot of
non-tailwind stylesheets, it dratically improves the performance of
the production build.
* fix: purgecss should respect safelist.variables
2021-07-01 14:25:06 -04:00
Adam Wathan
fe27356680
JIT: Optimize universal selector usage by inlining only the relevant selectors ( #4850 )
...
* WIP
* run prettier
* drop new lines in custom matcher
Drop all newlines, let prettier handle everything for us.
* add cache for the selector parser
* add `@apply` tests for the universal optimizer
* drop comments
* initial replacements
* WIP
* WIP
* MAKE IT WORK
* Rename to resolveDefaultsAtRules
* Update tests + defaults identifiers
* Don't add @defaults in AOT mode
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2021-07-01 06:33:37 -04:00
Adam Wathan
369c7b5f0c
Ensure resorted plugins take into account all plugins they need to sort relative to ( #4852 )
2021-07-01 05:59:47 -04:00
Adam Wathan
a6e79f9e85
Improve extractor for arbitrary values with quotes ( #4817 )
...
Fixes #4801 .
2021-06-26 10:20:49 -04:00
Adam Wathan
59c7e32a3b
Ignore "!*" in templates ( #4816 )
...
Fixes #4746
2021-06-26 10:20:36 -04:00
Tim
fdfecf3b9c
Add step-start and step-and to timings constant ( #4795 )
...
Co-authored-by: Tim Kleyersburg <tk@wacg.de>
2021-06-24 10:49:57 -04:00
Adam Wathan
b3d5b4e000
Rebuild fixtures
2021-06-23 16:22:01 -04:00
Adam Wathan
91a441d458
Update fixtures
2021-06-23 15:25:46 -04:00
Adam Wathan
063eca6dc4
Remove outdated focus style fix ( #4780 )
...
* Remove outdated focus style fix from Preflight
* Update fixtures
2021-06-23 14:14:36 -04:00
Sachin Raja
c0ee52060c
Generate plugin list file ( #4725 )
...
* Generate plugin list file
Removes the importing of all plugins in src/util/resolveConfig to avoid importing CSS.
Import the built plugin list file instead.
* Use `process.cwd()` instead of `__dirname` to resolve path
Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
* Import core plugin list in resolveConfig test
* Generate plugin list prebabelify and on install
* Move generation from install to postinstall
Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
2021-06-23 14:13:03 -04:00
Robin Malfait
0413b84c12
ensure peer variants don't include multiple ~ characters ( #4757 )
...
Fixes : #4726
2021-06-22 20:40:52 -04:00
Adam Wathan
1d72dc2699
Error when dash is used as custom separator ( #4704 )
2021-06-18 16:01:38 -04:00
Robin Malfait
f425661a90
rebuild fixtures
2021-06-18 16:35:19 +02:00
Robin Malfait
f6e36c2847
Fix stacking context issue ( #4700 )
...
* add no-op transform, filter, backdrop-filter utilities
* update tests
2021-06-18 16:31:14 +02:00
Robin Malfait
ea7b3f6189
rebuild fixtures
2021-06-18 15:42:18 +02:00
Adam Wathan
418d223837
Update fixtures
2021-06-17 14:45:44 -04:00
Brad Cornes
243e8814d8
Resolve purge paths relative to the current working directory ( #4655 )
...
* resolve purge paths relative to cwd
* simplify test
2021-06-15 16:37:04 -04:00
Adam Wathan
81816df3a1
Support arbitrary values for object-position
2021-06-14 16:03:14 -04:00
Adam Wathan
546cff81e7
Allow quotes in arbitrary value blocks ( #4625 )
2021-06-11 09:55:35 -04:00
Adam Wathan
cb2598ce33
Add support for transform, filter, backdrop-filter, box-shadow and ring to pseudo-elements ( #4624 )
...
* Add support for transform, filter, backdrop-filter, box-shadow and ring to pseudo-elements
* Rebuild fixtures
2021-06-11 09:11:56 -04:00
Adam Wathan
ff64417ff7
Add blur-none with intent to deprecate blur-0 ( #4614 )
...
We always use `none` for other utilities where the values have string names like `sm`, but for `blur` I chose `blur-0` for some idiotic reason. Can't have that.
2021-06-10 12:13:19 -04:00
Adam Wathan
34d0551e93
Remove need for filter and backdrop-filter toggles ( #4611 )
2021-06-10 11:36:15 -04:00
Adam Wathan
b86aa5c2a9
Remove need for transform toggle ( #4604 )
2021-06-10 09:15:41 -04:00
Robin Malfait
8518fee9ea
implement purge safelist ( #4580 )
...
* fix --help output in tests
* add tests to ensure we can use `purge.safelist`
* implement the `purge.safelist` for strings
* proxy `purge.safelist` to `purge.options.safelist`
This allows us to have a similar API in `AOT` and `JIT` mode.
* only proxy `purge.safelist` to `purge.options.safelist` if
`purge.options.safelist` doesn't exists yet.
2021-06-09 10:00:09 -04:00
Adam Wathan
cb48248552
Remove existing CLI
2021-06-04 11:44:28 -04:00
Adam Wathan
b9dd8b0a6d
Add peer variant ( #4556 )
2021-06-04 10:32:49 -04:00
Adam Wathan
65fde59f6a
Make it possible to enable caretColor and content core plugins in AOT mode ( #4548 )
...
* Fix issue where disabled corePlugins can't be re-enabled
* Disable caretColor and content core plugins by default, enable in JIT
* Don't disable caretColor/content in default config stub, hard-code for AOT instead
But with ability to still opt-in through your own config. Somewhat messy, but goal is to keep the messes in the AOT path and keep the JIT path pure.
* Fix style
* Revert unnecessary changes
* Fix style
2021-06-03 15:27:22 +02:00
Robin Malfait
d6b11b3807
Group variant stacking ( #4551 )
...
* make group variant stacking work
* simplify stacking group variants
2021-06-03 15:25:46 +02:00
Adam Wathan
7264a5b71b
Generate group parent classes correctly with custom separator ( #4508 )
2021-05-30 15:02:55 -04:00
Adam Wathan
15642fbcc8
Compare adjacent rules ignoring whitespace
2021-05-30 14:55:30 -04:00
Adam Wathan
77dfac2bfa
JIT: Add caret-color utilities ( #4499 )
...
Co-Authored-By: Jesse Katsumata <niconico.clarinet@gmail.com>
Co-authored-by: Jesse Katsumata <niconico.clarinet@gmail.com>
2021-05-28 13:55:42 -04:00
Adam Wathan
d1e9632064
JIT: Add exhaustive pseudo-class and pseudo-element variant support ( #4482 )
...
* Add first-line, first-letter, and marker variants
* Add selection variant
Co-Authored-By: Eric Rodrigues Pires <eric@eric.dev.br>
* Add remaining pseudo-class variants
* Add target pseudo-class
Co-Authored-By: Peter Neupauer <peter@neupauer.sk>
* add test for parallel variants
* implement parallel variants
Co-authored-by: Eric Rodrigues Pires <eric@eric.dev.br>
Co-authored-by: Peter Neupauer <peter@neupauer.sk>
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2021-05-27 17:09:29 +02:00
Brad Cornes
6bf6738683
Add transform and extract APIs ( #4469 )
...
* add `transform` and `extract` APIs
* make svelte transform part of the transformer stuff
2021-05-26 09:43:05 -04:00
Adam Wathan
1849e35f14
Refactor internals to decouple watch strategies and extract IO
...
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2021-05-26 09:43:05 -04:00
Adam Wathan
c8a5f816f4
JIT: Add support for before/after pseudo-elements ( #4461 )
2021-05-26 08:57:02 -04:00
Adam Wathan
a2c44907ba
Rebuild fixtures
2021-05-24 11:50:06 -04:00
Adam Wathan
5fa665835f
Fix formatting issues
2021-05-20 13:43:17 -04:00
Adam Wathan
d8bd507b9b
JIT: Add per-side border colors ( #4404 )
2021-05-20 13:35:39 -04:00
Adam Wathan
23da6b6172
JIT: Replace @tailwind screens with @tailwind variants ( #4356 )
...
* Update CHANGELOG
* JIT: Replace `@tailwind screens` with `@tailwind variants`
2021-05-14 13:58:52 -04:00
Adam Wathan
87df93de0a
Support opacity modifiers for colors in JIT ( #4348 )
...
* Support opacity modifiers for colors in JIT
* Add test for function colors
* Support opacity modifiers for plugins with arbitrary "any" type
2021-05-14 13:07:56 -04:00
Adam Wathan
30dc2990c3
Error when @layer used without matching @tailwind directive ( #4335 )
...
Also refactor to only detect `@tailwind` directives once per build to improve performance.
2021-05-12 16:58:03 -04:00
Adam Wathan
6d51f9a08a
Add read-only variant to JIT
2021-05-11 15:36:18 -04:00
Mateusz
f89bf5f4a6
Add :read-only variant ( #4102 )
...
* Add :read-only variant
* Added read-only variant to defaultConfig.stub
Co-authored-by: FunnyScarf <5177092+dyzajash@users.noreply.github.com>
2021-05-11 15:29:23 -04:00