4388 Commits

Author SHA1 Message Date
depfu[bot]
66412062b8 Update @swc/cli to version 0.1.55 2021-12-22 04:29:00 +00:00
Jonathan Reinink
c0cd979e0f
Update CHANGELOG.md 2021-12-21 10:49:11 -05:00
Jonathan Reinink
808e69b360
Reduce specificity of abbr rule in preflight (#6671) 2021-12-21 10:47:24 -05:00
Robin Malfait
e8e64f0ff4
use better name 2021-12-17 22:28:58 +01:00
Jonathan Reinink
b8f010a9ef
Update logo in readme 2021-12-17 15:25:53 -05:00
Jonathan Reinink
575fb4cf3e Add logos for readme 2021-12-17 14:58:52 -05:00
Robin Malfait
0c10621414
3.0.7 v3.0.7 2021-12-17 18:42:22 +01:00
Robin Malfait
325a8e85c7
update changelog 2021-12-17 18:42:12 +01:00
Robin Malfait
86e73b2063
Ensure @apply of a rule inside an AtRule works (#6594)
* ensure apply of rule inside atrule works

If that atrule happens to contain another rule that is technically
unrelated.

Co-authored-by: Jordan Pittman <jordan@cryptica.me>

* update changelog

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2021-12-17 18:40:20 +01:00
Robin Malfait
9e03a6800b
Improve jsx interpolation candidate matching (#6593)
* ensure that strangely used jsx with interpolation gets detected

Co-authored-by: Luke Warlow <projects@warlow.dev>
Co-authored-by: Jordan Pittman <jordan@cryptica.me>

* update changelog

Co-authored-by: Luke Warlow <projects@warlow.dev>
Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2021-12-17 17:32:50 +01:00
Jordan Pittman
27c67fef43
Properly extract classes with arbitrary values in arrays and classes followed by escaped quotes (#6590)
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2021-12-17 10:15:36 -05:00
Robin Malfait
2fdbe108cb
Only generate variants for non-user layers (#6589)
* only generate variants for non-user layers

If you have the following css:

```css
@tailwind utilities;
.foo {
  color: red;
}
```

And you HTML looks like this:
```html
<div class="hover:foo"></div>
```

Then the output should _not_ generate a `.hover\:foo {}` class.

* ensure that you can apply user csss (without variants)

* update changelog
2021-12-17 14:49:07 +01:00
Robin Malfait
7089a80ea1
Improve circular dependency detection when using @apply (#6588)
* improve circular dependency detection when using `@apply`

I also changed the message to the same message we used in V2.

* update changelog
2021-12-17 13:39:32 +01:00
Jordan Pittman
6cf3e3e55f
Don't mutate custom color palette when overriding per-plugin colors (#6546) 2021-12-16 16:19:54 -05:00
Robin Malfait
4a5ba3779e
3.0.6 v3.0.6 2021-12-16 20:07:40 +01:00
Robin Malfait
a7a5a4f0b2
update changelog 2021-12-16 20:07:30 +01:00
depfu[bot]
dbfc16c1c7 Update postcss-selector-parser to version 6.0.7 2021-12-16 12:43:57 +00:00
Jonathan Reinink
ec911c73f0 Improve order of color properties in transition and transition-colors utilities 2021-12-15 14:09:27 -05:00
Jonathan Reinink
1c7a793c94 Update order of color properties in transition and transition-colors utilities 2021-12-15 13:49:13 -05:00
Felix Klein
9934174867
Add 'text-decoration-color' to default 'transition' and 'transition-colors' utilities (#6405)
* Add 'text-decoration-color' to default 'transition' and 'transition-colors' utilities

* Add 'text-decoration-color' to default 'transition' and 'transition-colors' utilities

* Delete tailwind-output-flagged.css

* Delete tailwind-output-important.css

* Delete tailwind-output-no-color-opacity.css

* Delete tailwind-output.css

Co-authored-by: Jonathan Reinink <jonathan@reinink.ca>
2021-12-15 13:44:51 -05:00
Robin Malfait
0783a4275e
remove unused fixture files 2021-12-15 18:13:09 +01:00
Robin Malfait
deb68d5816
Ensure all plugins are executed for a given candidate (#6540)
* remove early return so that all plugins are handled

We had an early return so that once a plugin was matched, that we could
stop running the code through the other plugins. However, in this case
we have an issue that user defined css is technically also a plugin.

This means that:
  - `bg-green-light`
Would check for:
  - `bg-green-light` (no hit, continue)
  - `bg-green` (Hit! Don't execute next plugins)
  - `bg` (This is the one that would have generated `bg-green-light`)

We tested this change and it doesn't seem to have an impact functionally
and also not really performance wise.

* update changelog
2021-12-15 18:07:26 +01:00
Jordan Pittman
08a07f6e02
Support square bracket notation in paths (#6519) 2021-12-15 11:09:29 -05:00
Jonathan Reinink
fb545bc94d
Update CHANGELOG.md 2021-12-15 07:34:36 -05:00
Robin Malfait
3c93379565
3.0.5 v3.0.5 2021-12-15 13:04:48 +01:00
Robin Malfait
977e806ad2
update changelog 2021-12-15 13:04:39 +01:00
Robin Malfait
9777562da3
revert reset of li 2021-12-15 13:03:00 +01:00
Robin Malfait
a2fe0c4501
update changelog 2021-12-15 12:46:31 +01:00
Robin Malfait
ee557704b5
3.0.4 v3.0.4 2021-12-15 12:35:44 +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
6bfde07b78
3.0.3 v3.0.3 2021-12-15 10:27:42 +01:00
Robin Malfait
f921642d95
force fetching of git tags 2021-12-15 10:27:42 +01:00
Robin Malfait
45c69be580
update changelog 2021-12-15 10:22:20 +01:00
Jonathan Reinink
00f60e6101 Add "li" to list-style reset 2021-12-14 20:40:20 -05:00
Jonathan Reinink
1fa993f995 Remove extra spaces in preflight 2021-12-14 20:30:08 -05: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
5079b9c32f Properly attach cli binaries to release 2021-12-14 12:33:06 -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
Oliver Williams
95dd82b749
use text-decoration-line instead of text-decoration (#6378)
* use text-decoration-line instead of text-decoration

* fix tests

Co-authored-by: Oliver Williams <oliver@Olivers-MacBook-Pro.local>
2021-12-13 16:09:14 -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
d07553bc65
3.0.2 v3.0.2 2021-12-13 15:43:17 +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
depfu[bot]
42683dfc09 Update eslint to version 8.4.1 2021-12-11 23:59:58 +00:00
Adam Wathan
8a4b2f0627 Update version v3.0.1 2021-12-10 20:28:26 -05:00