280 Commits

Author SHA1 Message Date
Jonathan Reinink
fb545bc94d
Update CHANGELOG.md 2021-12-15 07:34:36 -05:00
Robin Malfait
977e806ad2
update changelog 2021-12-15 13:04:39 +01:00
Robin Malfait
a2fe0c4501
update changelog 2021-12-15 12:46:31 +01:00
Robin Malfait
8be5f7888d
update changelog 2021-12-15 12:35:38 +01:00
Robin Malfait
083bca3d3f
Insert always on defaults layer in correct spot (#6526)
* insert in correct spot

We were injecting the always on `@tailwind defaults` layer at the beginning of
the file. However, if a `@tailwind base` layer is available, then that
will now be injected _after_ the defaults layer. The base layer does
contain some reset that are now overriding the defaults we set.

So now we will:
- Insert the `@tailwind defaults` layer at the beginning of the file
  _if_ there is no `@tailwind base`
- Insert the `@tailwind defaults` layer after the `@tailwind base` layer
  if it exists.

* update changelog
2021-12-15 12:34:53 +01:00
Robin Malfait
45c69be580
update changelog 2021-12-15 10:22:20 +01:00
Simon J
a7263a8f6f
Add support for negative values in safelist patterns (#6480)
Co-authored-by: Simon Jarrett <simon.jarrett@churchmissionsociety.org>
2021-12-14 15:55:26 -05:00
Jordan Pittman
4041d04b89
Move defaults to their own always-on layer (#6500)
Default's declarations are now processed and merged even when there is no tailwind base directive included in the stylesheet. Without this applying tailwind utilities in css modules would break if they relied on defaults rules.

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2021-12-14 12:21:38 -05:00
Jordan Pittman
47e8556e3b
Add standalone tailwindcss CLI (#6506)
* Move standalone CLI into main repo

* Update release tag

* Update workflow

* Ignore standalone CLI tests

* Fix style

* Update changelog [ci skip]
2021-12-14 18:12:06 +01:00
Jonathan Reinink
0ddbb36c85
Update changelog 2021-12-13 21:30:10 -05:00
Adam Wathan
27c2c72b13
Update CHANGELOG.md 2021-12-13 16:05:24 -05:00
Jordan Pittman
399440eef1
Don't output unparsable values (#6469) 2021-12-13 12:39:17 -05:00
Robin Malfait
4b2482ff35
Warn about invalid globs in content (#6449)
* rewrite invalid globs if we can

* warn instead of rewrite

* update changelog
2021-12-13 16:00:31 +01:00
Robin Malfait
60ee7bbf52
update changelog 2021-12-13 15:43:08 +01:00
Robin Malfait
860c61cd61
temporarily disable optimize universal defaults (#6461)
* temporarily disable optimize universal defaults

* update changelog
2021-12-13 15:39:18 +01:00
Adam Wathan
8a4b2f0627 Update version 2021-12-10 20:28:26 -05:00
Jordan Pittman
429fe07a5f
Fix defaults optimization when vendor prefixes are involved (#6369) 2021-12-10 10:45:33 -05:00
Robin Malfait
08241c3f75
Detect circular dependencies when using @apply (#6365)
* detect circular dependencies when using `@apply`

* update changelog

* ensure we split by the separator
2021-12-10 16:08:45 +01:00
Robin Malfait
b399e8db90
Add default interop to public available functions (#6348)
* add `default` interop to public available functions

* update changelog
2021-12-10 11:25:10 +01:00
Robin Malfait
81f52a24f4
Ensure complex variants with multiple classes work (#6311)
* ensure complex variants with multiple classes work

* update changelog
2021-12-10 10:57:40 +01:00
Robin Malfait
c8b1543401
update changelog 2021-12-09 17:23:56 +01:00
Robin Malfait
4c224225f4
add missing changelog item 2021-12-09 16:43:18 +01:00
Adam Wathan
e6e24b8519
Update CHANGELOG.md 2021-12-08 19:42:25 -05:00
Robin Malfait
36357786bf
Partially revert tuple syntax PR for screens: #6104 (#6289)
* partially revert tuple syntax PR for `screens`: #6104

* update changelog
2021-12-07 18:49:40 +01:00
Robin Malfait
b857d80e94
Ensure that we test every value for the length datatype (#6283)
* ensure that we test every value for the `length` datatype

* update changelog
2021-12-06 20:19:45 +01:00
Adam Wathan
e2d5f214e2 Update changelog 2021-12-06 11:38:38 -05:00
Adam Wathan
31b5540c02 Update changelog 2021-12-06 11:37:35 -05:00
Robin Malfait
ea139f20a2
Improve [0] arbitrary value support (#6259)
* test `text-[0]` instead of `w-[0]`

* update changelog
2021-12-03 19:23:01 +01:00
Robin Malfait
078186a1ef
Add css functions to data types (#6258)
* update changelog

* add tests to verify that `w-[0]` works

* ensure that `min`, `max` and `clamp` also work with arbitrary values

* update changelog
2021-12-03 18:15:03 +01:00
Jonathan Reinink
89c7f7d094 Update changelog 2021-12-01 06:16:36 -05:00
Robin Malfait
a41c4ec704
update changelog 2021-11-29 16:36:32 +01:00
Adam Wathan
b5802a3f72 Update changelog 2021-11-24 12:14:51 -05:00
Adam Wathan
a1bc20385d Update changelog 2021-11-23 15:21:47 -05:00
Adam Wathan
463777f0c8 Update changelog 2021-11-23 15:21:06 -05:00
Adam Wathan
d261531e2a
Add support for arbitrary properties (#6161)
* Basic implementation + some failing tests for edge cases

* Use asClass instead of nameClass

* Solve edge cases around content with colons

* Avoid duplicating work when parsing arbitrary properties

* Update changelog
2021-11-22 12:38:37 -05:00
Robin Malfait
56c1646300
Revert "Add ::file-selector-button reset (#6125)"
This reverts commit f94a117500266a8f5e9cfec3b03db81493b1b047.
2021-11-18 17:29:12 +01:00
Robin Malfait
f94a117500
Add ::file-selector-button reset (#6125)
* add ::file-selector-button reset

Otherwise you have to apply `file:border-solid` which you don't have to
do for other elements with borders.

See: https://play.tailwindcss.com/EvtdftCPt6

* update changelog
2021-11-18 14:25:19 +01:00
Robin Malfait
03f9de9008
Add combinable touch-action support (#6115)
* add combinable `touch-action` support

* update changelog
2021-11-17 16:04:13 +01:00
Robin Malfait
ef325ea35b
Add tuple syntax to guarantee screens order (#6104)
* add normalizeScreens function

This will allow us to normalize the various kinds of inputs to a stable
version that is consistent regardless of the input.

* use normalized screens

* add dedicated test for new tuple syntax

* make test consistent with other tests

While working on the normalizeScreens feature, some tests started
failing (the one with multiple screens), while looking at them I made
them consistent with the rest of the codebase.

* add test to ensure consistent order in screens output

* update changelog

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2021-11-16 18:01:06 +01:00
Robin Malfait
6c4b86d438
Add placeholder variant (#6106)
* add `placeholder` variant

* update changelog
2021-11-16 15:33:30 +01:00
Robin Malfait
a3579bcf2f
Enforce the order of pseudo elements (#6018)
* enforce the order of some variants

* update changelog

* use better algorithm
2021-11-12 16:38:03 +01:00
Adam Wathan
df7e71c262 Update changelog 2021-11-08 11:48:34 -05:00
Adam Wathan
79e3e098d2 Update changelog 2021-11-04 13:28:48 -04:00
Adam Wathan
d41a739186 Update changelog 2021-11-04 10:16:46 -04:00
Adam Wathan
12aa51d61d Update changelog 2021-11-03 10:53:12 -04:00
Robin Malfait
ec1f7b0349
update changelog 2021-10-29 13:43:17 +02:00
Robin Malfait
d6301bd31b
update changelog 2021-10-29 12:19:42 +02:00
Robin Malfait
5058275f3b
Handle color transformations properly with theme(...) for all relevant plugins (#5871)
* call function for colors that are not in colors

* add all color related thingies

* transformThemeValue in a very verbose way

* handle functions by default

* cleanup, make sure we handle functions everywhere

* update changelog

Co-authored-by: Bill Criswell <bill_criswell@comcast.com>
2021-10-25 12:17:14 +02:00
Robin Malfait
ee3f3fd0be
Ensure comments in @layer rules don't crash (#5854)
* ensure comments in @layer rules don't crash

* update changelog
2021-10-22 15:19:21 +02:00
Robin Malfait
0ab39c312a
Allow _ inside url() when using arbitrary values (#5853)
* allow for underscores in url()

* update changelog
2021-10-22 14:43:46 +02:00