4547 Commits

Author SHA1 Message Date
Jonathan Reinink
c6097d59fc
Update CHANGELOG.md 2022-03-04 11:22:32 -05:00
Juan Martín Seery
dbb5b1d8f7
Added border-spacing utility (#7102)
* Added `border-spacing` utility

* Update to base CSS variable approach

Co-authored-by: Jonathan Reinink <jonathan@reinink.ca>
2022-03-04 11:20:23 -05:00
depfu[bot]
deee3b1995 Update @swc/jest to version 0.2.20 2022-03-04 09:59:08 +00:00
depfu[bot]
25c93cacde Update postcss to version 8.4.7 2022-03-03 22:29:15 +00:00
Jordan Pittman
ee945bbea2
Add an explicit --poll option to the CLI (#7725)
* Refactor

* Allow user to enable polling

* Update changelog
2022-03-02 11:16:06 -05:00
Vanshaj Poonia
f6793628a8
Update CONTRIBUTING.md (#7723)
Fixed a Typo
2022-03-02 08:14:18 -05:00
Samuel Alev
bc46d0e0bc
Fix extraction from template literal/function with array (#7481)
* fix: allow extraction from template literal with array

* fix: support extraction from array in function

* test: add more tests for function and template

* test: add test for dynamic classes

* test: add dynamic class test in js

* test: add dynamic class test in js single quote

* Cleanup a bit

* Update changelog

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2022-03-01 14:23:06 -05:00
vitorrd
7df3d938ec
Correctly parse and prefix animation names with dots (#7163)
* Add prefix alone to animation names. Fixes #7149.

* Add test for keyframe animations with a dot in the name

* Add test for prefixed version

* Fix CS

* Simplify

* Update changelog

* Fix

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2022-03-01 14:08:43 -05:00
Brad Cornes
10103d8baf Merge branch 'master' of github.com:tailwindlabs/tailwindcss 2022-03-01 18:29:49 +00:00
Brad Cornes
e19acc28d4 Update changelog 2022-03-01 18:29:46 +00:00
Bogdan Chadkin
f31c4ee4cf
Replace cosmiconfig with lilconfig (#6038)
* Replace cosmiconfig with lilconfig

It's already replaced in postcss-load-config

See https://github.com/postcss/postcss-load-config/blob/main/package.json#L26

* Manually restore parse-json in lockfile removed by npm conflict resolver

* Revert `postcss` version change

Co-authored-by: Brad Cornes <hello@bradley.dev>
2022-03-01 18:27:56 +00:00
depfu[bot]
e302ef1a0d Update eslint-config-prettier to version 8.4.0 2022-02-26 10:59:10 +00:00
Adam Wathan
5ea4b4ce2a Update changelog 2022-02-25 20:11:24 -05:00
Adam Wathan
ec962f09dd Use tuple syntax for customizing darkMode class name 2022-02-25 20:03:07 -05:00
Michael De Giovanni
77156de519 custom dark mode class 2022-02-25 19:59:23 -05:00
Adam Wathan
0a709bcd6f Update changelog 2022-02-25 19:44:57 -05:00
Alaa Badran
26bd819949
Add text-start and text-end (#6656)
These are useful for RTL languages
2022-02-25 19:43:58 -05:00
depfu[bot]
bbafc8e324 Update eslint to version 8.9.0 2022-02-25 21:29:56 +00:00
Jordan Pittman
4fed060b7c
Add support for PostCSS Document nodes (#7291)
* Run Tailwind CSS once for each root in a postcss document

* Update changelog
2022-02-25 14:52:20 -05:00
Adam Wathan
cd8f109981
Update CONTRIBUTING.md 2022-02-25 14:14:20 -05:00
Jordan Pittman
bbf3a37810
Add rgb and hsl color helpers for CSS variables (#7665)
* Add rgb/hsl color helpers

* Update changelog

Co-authored-by: Stefan Schweiger <staeff@me.com>
2022-02-25 14:03:40 -05:00
Adam Wathan
f7a9d370c8
Only add ! to selector class matching template candidate (#7664)
* Only add `!` to selector class matching template candidate

Fixes #7226.

Before this PR, if you had a class like:

```css
.one .two {
  background: black
}
```

...and then used `!one` in your template, the generated CSS would be this:

```css
.\!one .\!two {
  background: black !important
}
```

This would cause the styles to not be applied unless you also added `!` to the beginning of other classes in the template that are part of this selector.

This PR makes sure that other classes in the selector aren't mistakenly prefixed with `!`, so that you can add `!` to only one of the classes in your template and get the expected result.

* Update CHANGELOG
2022-02-25 13:17:44 -05:00
Jordan Pittman
bd167635d5
Invalidate context when main css changes (#7626)
* Invalidate context when CSS changes

* Remove invalidation count check

* Add sass integration test

* Update changelog
2022-02-25 13:12:45 -05:00
Adam Wathan
d9bc25da6a Inline test resources 2022-02-25 13:00:57 -05:00
depfu[bot]
d3e754adb4
Update object-hash to version 3.0.0 (#7657)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2022-02-25 12:17:16 -05:00
Adam Wathan
7a24b3f320
Update CHANGELOG.md 2022-02-25 10:18:49 -05:00
Jordan Pittman
910b655388
Use local user css cache for apply (#7524)
* Fix context reuse test

* Don't update files with at-apply when content changes

* Prevent at-apply directives from creating new contexts

* Rework apply to use local postcss root

We were storing user CSS in the context so we could use it with apply. The problem is that this CSS does not get updated on save unless it has a tailwind directive in it resulting in stale apply caches. This could result in either stale generation or errors about missing classes.

* Don’t build local cache unless `@apply` is used

* Update changelog
2022-02-25 08:35:22 -05:00
Brad Cornes
f84ee8be21 Update changelog 2022-02-24 16:41:35 +00:00
Bogdan Chadkin
2dec5649c9
Replace chalk with picocolors (#6039)
* Replace chalk with picocolors

Already used in latest postcss, autoprefixer and browserslist versions.

See https://github.com/alexeyraspopov/picocolors

* Update `dim` function

Co-authored-by: Brad Cornes <bradlc41@gmail.com>
2022-02-24 16:37:31 +00:00
Jordan Pittman
04686b8a05
Split box shadows on top-level commas only (#7479)
* Split box shadows on top-level commas only

* Update changelog
2022-02-23 11:31:55 -05:00
Jordan Pittman
b94d565eb6
Preserve source maps for generated CSS (#7588)
* Preserve source maps for `@apply`

* Overwrite the source for all cloned descendants

* Preserve source maps when expanding defaults

* Verify that source maps are correctly generated

* Update changelog
2022-02-23 11:24:54 -05:00
Jordan Pittman
d72b277ba6
Allow default ring color to be a function (#7587)
* Allow default ring color to be a function

* Update changelog
2022-02-22 16:51:04 -05:00
Jordan Pittman
3b8ca9d4eb
Recursively collapse adjacent rules (#7565)
* Recursively collapse adjacent rules

* Update changelog
2022-02-21 12:58:12 -05:00
Jordan Pittman
af64d7190c
Prevent nesting plugin from breaking other plugins (#7563)
* Prevent nesting plugin from breaking other plugins

This uses a private API but it’s the only solution we have right now. It’s guarded to hopefully be less breaking if the API disappears.

* Update changelog
2022-02-21 10:12:39 -05:00
depfu[bot]
9effea5d28 Update cssnano to version 5.0.17 2022-02-20 14:44:29 +00:00
depfu[bot]
23b1b301a1 Update postcss-load-config to version 3.1.3 2022-02-17 14:58:42 +00:00
Robin Malfait
93e0fdf29f
3.0.23 v3.0.23 2022-02-16 12:20:14 +01:00
Robin Malfait
67b28601b3
update changelog 2022-02-16 12:20:14 +01:00
Robin Malfait
63537aaa89
Implement getClassOrder instead of sortClassList (#7459)
* implement `getSortOrder` instead of `sortClassList`

* rename `getSortOrder` to `getClassOrder`

* update changelog
2022-02-16 11:03:00 +01:00
Jordan Pittman
be5d5c9e66
Fix wildcard duplication issue (#7478)
This would be better as a symbol but the stringy-ness of class candidates is fairly well baked into assumptions across the codebase. Using `new String` with a well placed check seems to solve the problem.
2022-02-15 13:44:19 -05:00
Jordan Pittman
db475be6dd
Support arbitrary values + calc + theme with quotes (#7462)
* Support arbitrary values + calc + theme with quotes

* Update changelog
2022-02-14 15:44:27 -05:00
Jordan Pittman
f116f9f664
Remove opacity variables from :visited pseudo class (#7458)
* Support functions in pseudo variant list

* Remove text/border/bg color from :visited

* Update changelog
2022-02-14 13:24:18 -05:00
depfu[bot]
09d151f3f9 Update esbuild to version 0.14.21 2022-02-14 17:43:53 +00:00
depfu[bot]
0c5af6fed4 Update jest to version 27.5.1 2022-02-12 10:25:12 +00:00
depfu[bot]
c13afd38aa Update jest-diff to version 27.5.1 2022-02-12 10:15:18 +00:00
Jordan Pittman
b26ffa0581 3.0.22 v3.0.22 2022-02-11 10:32:30 -05:00
Jordan Pittman
752f54cc37 update changelog 2022-02-11 10:32:30 -05:00
Jordan Pittman
23661cfef0
Temporarily move postcss to dependencies (#7424)
* Temporarily move postcss to dependencies

This is unfortunate but upgrading postcss-js caused postcss to not be installed at all. This is fine except in this case of NPM <= 6 when running npx tailwindcss init, or yarn v1, or npm 7/8 with legacy peer deps behavior and doing a similar thing. Deduping will still allow the user to install postcss and upgrade it and Tailwind CSS will pick it up. A more permanent solution may involve hijacking require or something similar.

* Update changelog
2022-02-11 10:08:54 -05:00
Jordan Pittman
9f119e503e 3.0.21 v3.0.21 2022-02-10 18:08:59 -05:00
Jordan Pittman
754dcdd6df Update changelog 2022-02-10 18:07:31 -05:00