Commit graph

5405 commits

Author SHA1 Message Date
Jordan Pittman
185250438c Remove variant dark mode strategy 2024-01-05 12:17:01 -05:00
Adam Wathan
2433d99716 Finish updating tests 2024-01-05 12:17:01 -05:00
Adam Wathan
aed8a36f26 Updating tests... 2024-01-05 12:17:01 -05:00
Jordan Pittman
14b8e0e050 Don’t let :where, :is:, or :has be attached to pseudo elements 2024-01-05 12:17:01 -05:00
Adam Wathan
24d1923293 Switch to where list, apply changes to dir variants 2024-01-05 12:17:01 -05:00
Adam Wathan
c221bbcaa9 Add simplified failing apply/where test case 2024-01-05 12:17:01 -05:00
Adam Wathan
13ad6ccabf Use class for legacy behavior, selector for new behavior 2024-01-05 12:17:01 -05:00
Jordan Pittman
c055aa4017 wip 2024-01-05 12:17:01 -05:00
Jordan Pittman
543dacf81a Add legacy dark mode option 2024-01-05 12:17:01 -05:00
Jordan Pittman
a94a21257a Tweak warning messages 2024-01-05 12:17:01 -05:00
Jordan Pittman
1544ef576d Add dark mode variant option 2024-01-05 12:17:01 -05:00
Robin Malfait
a5ae318a14
Improve glob handling for folders with (, ), [ or ] in the file path (#12715)
* sync package-lock.json

* modify `normalizePath` to keep `\\[`, `\\]`, `\\(` and `\\)` into account

* manually escape () and [] characters in globs

* update changelog
2024-01-05 17:23:30 +01:00
depfu[bot]
fbb86a2ac3 Update sass to version 1.69.7 2024-01-05 11:23:49 +00:00
Robin Malfait
f0bee02b0a
trigger jit cdn update when releasing a new version 2024-01-05 00:26:57 +01:00
Robin Malfait
4cf382d15b
re-enable play.tailwindcss.com auto updates 2024-01-04 22:53:53 +01:00
Jordan Pittman
47107be783
Don't add spaces to gradients and grid track names when followed by calc() (#12704)
* Don’t break gradient functions when following `calc()`

* Don’t break CSS grid track names

* Update changelog
2024-01-03 13:03:16 -05:00
depfu[bot]
b52a78b56f Update postcss-selector-parser to version 6.0.15 2024-01-01 19:29:08 +00:00
depfu[bot]
970f2ca704 Update eslint to version 8.56.0 2023-12-30 00:15:35 +00:00
depfu[bot]
f16a96aa72 Update sucrase to version 3.35.0 2023-12-29 03:44:04 +00:00
depfu[bot]
db584695c8 Update @swc/core to version 1.3.101 2023-12-25 06:29:29 +00:00
depfu[bot]
144cc5f175 Update rollup to version 4.9.1 2023-12-24 06:42:18 +00:00
depfu[bot]
2fddd06c17 Update vite to version 5.0.10 2023-12-22 19:27:31 +00:00
Jordan Pittman
5582f0bd41 Update changelog 2023-12-21 12:19:39 -05:00
Jordan Pittman
b048a0db80
Don't remove keyframe stops when using important utilities (#12639)
* Don't remove keyframe stops when using important utilities

* Fix test

* fix linting
2023-12-21 12:17:12 -05:00
Jordan Pittman
a091db5df4 Sync changelog with v3.4 2023-12-19 12:48:28 -05:00
Jordan Pittman
d884e9bc84
Fix custom config loading in Standalone CLI (#12616)
* Fix custom config loading in Standalone CLI

* Update changelog
2023-12-18 13:50:21 -05:00
Adam Wathan
af7e610aaa
Improve relative precedence of rtl, ltr, forced-colors and dark variants (#12584)
* Reduce specificity of `rtl`, `ltr`, and `dark` variants

Reduce specificity of `rtl`, `ltr`, and `dark` variants (when using `darkMode: 'class'`) to make them the same as other variants. This also sorts the LTR/RTL and dark variants later in the variant plugin list to ensure that the reduced specificity doesn't cause them to start "losing" to other variants to keep things as backwards compatible as possible.

Resolves a long-standing issue where `darkMode: 'media'` and `darkMode: 'class'` had different specificity, which meant switching your dark mode strategy could break your site.

* Update changelog

---------

Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
2023-12-16 18:53:08 -05:00
depfu[bot]
c5d3aabb48 Update turbo to version 1.11.2 2023-12-14 23:44:42 +00:00
depfu[bot]
83a7f73355 Update @napi-rs/cli to version 2.17.0 2023-12-14 10:00:33 +00:00
Adam Wathan
e6075cbfb9 Update changelog 2023-12-13 10:03:51 -05:00
Luke Warlow
fb85c8fd17
Move forced-colors variant after dark variant (#12582)
Also add test for the order of the forced-colors variant
2023-12-13 10:03:14 -05:00
depfu[bot]
b3242e99ed
Update postcss-cli to version 11.0.0 (#12583)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2023-12-13 09:33:26 -05:00
depfu[bot]
32aca9189b Update browserslist to version 4.22.2 2023-12-10 05:30:02 +00:00
Adam Wathan
cb9c64a6d2
Add * variant for targeting direct children (#12551)
* add `*` as child variant

* add `*` as allowed variant character

* update test to reflect Lightning CSS output

* add `childVariant` test

* Update changelog

---------

Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
Co-authored-by: Gregor Kaczmarczyk <github@aggreggator.de>
2023-12-09 09:11:00 -05:00
depfu[bot]
c5449a03b4 Update eslint-config-prettier to version 9.1.0 2023-12-09 10:15:32 +00:00
depfu[bot]
42bddaea9b Update eslint to version 8.55.0 2023-12-09 00:16:18 +00:00
depfu[bot]
5e115e7a46 Update vite to version 5.0.5 2023-12-06 00:12:12 +00:00
Jordan Pittman
7385373c35
Fix support for container query utilities with arbitrary values (#12534)
* Fix support for container query utilities with arbitrary values

* Update changelog
2023-12-05 12:26:33 -05:00
Jordan Pittman
f667746d79 Sync changelog 2023-12-04 13:32:43 -05:00
Jordan Pittman
d2bb6f1bd0 Fix candidate detection regex 2023-12-04 11:24:03 -05:00
Jordan Pittman
6dfcdd1007
Fix loading of built-in plugins when using an ESM or TypeScript config with the Standalone CLI (#12506) 2023-12-01 11:44:30 -05:00
Jordan Pittman
317fba1d6b
Fix source maps of variant utilities that come from an @layer rule (#12508)
* Refactor

* Keep traversing sibling nodes

* Make sure the root node has a source location for the end

* Add source map test for at-rule variants

* Update changelog
2023-12-01 11:05:34 -05:00
Jordan Pittman
3169d159ca
Fix generation of utilities that use slashes in arbitrary modifiers (#12515)
* Fix support for slashes in arbitrary modifiers

* Update changelog
2023-12-01 10:44:08 -05:00
Jordan Pittman
b2b37e04e4
Don't crash when given applying a variant to a negated version of a simple utility (#12514)
* Don't crash when given applying a variant to a negated version of a simple utility

* Update changelog
2023-12-01 10:22:45 -05:00
depfu[bot]
dac9cf23a2 Update parcel to version 2.10.3 2023-11-30 05:27:38 +00:00
Adam Wathan
767b78cc30 Update changelog 2023-11-27 09:13:56 -05:00
Ngô Quốc Đạt
bce0481f40
Add logical properties support for float and clear (#12480) 2023-11-27 09:12:58 -05:00
Robin Malfait
ec0fe42968
sync package-lock.json 2023-11-27 13:36:22 +01:00
Anton Kastritskii
f75c3988b3
update lilconfig & postcss-load-config (#12455) 2023-11-27 13:36:06 +01:00
depfu[bot]
16d25c9746
Update lilconfig to version 3.0.0 (#12484)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2023-11-27 13:08:59 +01:00