Adam Wathan
d81edb739d
Add PostCSS 7 support (maybe)
2021-05-07 13:56:11 -04:00
Adam Wathan
71737de6d1
Only warn about JIT engine once
2021-05-07 13:56:11 -04:00
Adam Wathan
bf9e3c6837
Add mode option to use JIT code path
2021-05-07 13:56:11 -04:00
Peter Timoshevsky
2b0e71a4ec
Fix typo in preflight.css
2021-05-07 13:56:11 -04:00
Adam Wathan
a8a81e64da
Pass full opacityValue always
2021-05-07 13:56:11 -04:00
Dylan Vann
c629ebb811
Fix function colors bug ( #2919 )
2021-05-07 13:56:10 -04:00
Nate Moore
f1ee046685
Adds support for tailwind.config.cjs files ( #3181 )
...
* feat: automatically init and resolve tailwind.config.cjs files
* test: add tests for default tailwind.config.cjs resolution
* fix `cjsConfigFile` constant
* Fix JSDoc type of isModule
2021-05-07 13:56:10 -04:00
Robin Malfait
7ad9a548ef
add version and license ( #3255 )
...
* add current version & license
* generate fixtures
* update changelog
Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2021-05-07 13:56:10 -04:00
Adam Wathan
ca21b4e6b4
Set explicit opacity value on placeholder pseudo-element ( #3308 )
...
Fixes #3300 .
2021-05-07 13:56:09 -04:00
Martin Stühmer
251c8d2490
Version number corrected in substituteTailwindAtRules ( #3237 )
2021-05-07 13:56:09 -04:00
Illia Sakovich
7c62ecdcdd
from: undefined -> from: __filename ( #3356 )
2021-05-07 13:56:09 -04:00
Andrew
d552e20096
create new "empty" variant
...
this will generate classes like the following:
```css
.empty\:hidden:empty {
display: none
}
```
2021-01-06 12:19:21 -06:00
Robin Malfait
eac11cf57d
Performance improvements + memory leak fix ( #3032 )
...
* fix memory leak
* add optional condition to hasAtRule
* use known tree to handle `@apply` when required `@tailwind` at rules exists
Otherwise we will generate the lookup tree.
* only generate the missing `@tailwind` atrules when using `@apply`
* update perf config to reflect 2.0 changes
* update changelog
* ensure lookup tree is correctly cached based on used tailwind atrules
2020-12-11 15:03:49 +01:00
Robin Malfait
d1ef88a61b
ring defaults ( #2951 )
...
* add ring defaults
Fixes #2911
* add tests for the ringWidth utility
+ defaults
* update changelog
2020-12-02 15:45:04 -05:00
Robin Malfait
152202916c
Allow for recursively applying user defined classes ( #2832 )
2020-11-26 15:05:06 +01:00
Stefan Fisk
1e0fc09e0a
Fix !important on multiple selectors #2823 ( #2824 )
...
* Add failing test for #2823
* cleanup string literals
* use prettier for toMatchCSS diffs
* make sure that importants are applied correctly
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2020-11-26 14:53:58 +01:00
Adam Wathan
e40079a457
Fix cascading shadow/ring bug, ensure default ring color
2020-11-16 19:47:45 -05:00
Adam Wathan
2245f26e60
Rename plugin in compat mode
2020-11-16 14:13:49 -05:00
Robin Malfait
c238ed15b5
Improve compat mode ( #2775 )
...
* simplify compat mode
* make sure postcss is included
* make sure we cannot go into compatibility mode twice
2020-11-16 14:10:08 -05:00
Robin Malfait
1d8679d37e
Postcss7 compatibility ( #2773 )
...
* add postcss7 compatibility layers
* add compatibility mode scripts
2020-11-16 13:09:59 -05:00
Robin Malfait
b86bdbcd7e
Cleanup custom properties ( #2771 )
...
* prefix custom properties with tw-
* prefix custom properties with tw- in tests
* prefix gradient values in the defaultConfig
* inline gradient-via-color
* simplify --tw-tailwind-empty to --tw-empty
* replace the long --tw-font-variant-numeric-... to the way shorter --tw-fvn-...
* Rename --tw-box-shadow to --tw-shadow
To match class name.
* Rename font-variant-numeric variables
* Remove 'transform' from transform variables
* Shorten gradient variables
* Fix style
Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2020-11-16 11:45:55 -05:00
Adam Wathan
729b400a68
Upgrade to PostCSS 8
2020-11-15 16:13:48 -05:00
Adam Wathan
b95cf5f595
Remove clearfix utility ( #2766 )
2020-11-13 22:25:23 -05:00
Adam Wathan
278c2031fb
Fix bug where color palette could not be empty
2020-11-13 19:51:05 -05:00
Adam Wathan
62a47f95b1
Properly support colors as closures with ring utilities
2020-11-13 19:41:08 -05:00
Adam Wathan
5ec45fa6c0
Remove gap fallbacks
...
Safari >= 12 or gtfo
2020-11-13 09:43:21 -05:00
Adam Wathan
879f0887ed
Add ring-inset, always reset ring variables
2020-11-11 21:58:54 -05:00
Adam Wathan
ac5970d6fb
Add support for default duration and timing function to transition property utilities ( #2755 )
2020-11-11 08:27:09 -05:00
Adam Wathan
c3dd3b6845
Make boxShadow respect ring shadows
...
This is to prevent box-shadows from overriding rings that are added manually by plugins like the custom forms plugin.
2020-11-10 14:24:22 -05:00
Adam Wathan
4eecc2751c
Convert 'none' to transparent shadow
...
To make shadow comma-separated list safe.
2020-11-09 19:10:34 -05:00
Adam Wathan
d4fcd2eb8f
Add new ring utilities for custom focus styles and rounded outlines ( #2747 )
...
* Add ring utilities
* Remove redundant shadows, add 5% and 95% to opacity scale
* Undo changes to build file
* Update boxShadow.test.js
2020-11-09 16:39:49 -05:00
Adam Wathan
b8344ab7fe
Revert "Upgrade to PostCSS 8"
...
This reverts commit 59aa484dfea0607d96bff6ef41b1150c78576c37.
2020-11-05 07:39:11 -05:00
Adam Wathan
9585ae15a3
Don't explicitly set font/line-height on body, inherit from html instead ( #2729 )
2020-11-04 10:19:11 -05:00
Navith
d4bd2d0b05
Make purge still preserve HTML elements for user-defined extractors ( #2704 )
...
* Add failing test for purge preserving element selectors when `defaultExtractor` is overridden
* `preserveHtmlElements` works with user-defined purge extractors
2020-10-31 10:02:40 -04:00
Adam Wathan
59aa484dfe
Upgrade to PostCSS 8
2020-10-30 08:55:33 -04:00
Robin Malfait
df1732cce5
add ability to merge arrays of objects when using extend ( #2700 )
2020-10-29 10:17:10 -04:00
Robin Malfait
584316fbdc
ensure options for plugins are not stale between builds ( #2695 )
2020-10-28 13:46:12 -04:00
Twentylives
232035e4fc
Refactor flattenColorPalette util function ( #2677 )
2020-10-27 10:58:19 -04:00
Adam Wathan
86132595a3
Rename flex-no-wrap to flex-nowrap ( #2676 )
2020-10-27 10:55:19 -04:00
Robin Malfait
09d9262666
add the ability to deep merge extended configs ( #2679 )
2020-10-26 11:15:50 -04:00
Robin Malfait
9e3700c08a
add function presets ( #2680 )
2020-10-26 09:43:31 -04:00
Enzo Innocenzi
58a600816c
feat: allow for deeply nested color objects ( #2148 )
2020-10-25 14:27:57 -04:00
Adam Wathan
fe0e8e92de
Rename whitespace-no-wrap to whitespace-nowrap ( #2664 )
...
* Rename whitespace-no-wrap to whitespace-nowrap
* Update changelog
* Update purge fixture
2020-10-23 15:12:42 -04:00
Adam Wathan
b27608557a
Include default config by default in presets ( #2660 )
2020-10-23 13:23:21 -04:00
Adam Wathan
11af870f30
Support extend in variants config ( #2651 )
...
* WIP
* It's alive
* Pull default variant order from config
2020-10-23 08:58:28 -04:00
Robin Malfait
68dbc5f981
only prefix animation names that are defined ( #2641 )
2020-10-21 17:07:13 -04:00
Adam Wathan
02cba631bc
Use left/right instead of inline-start/end for space/divide utilities ( #2644 )
2020-10-21 17:05:20 -04:00
Adam Wathan
6ad5a199af
Set font on body and on html ( #2643 )
...
modern-normalize sets it on `body` so we need to defeat that.
2020-10-21 16:21:28 -04:00
Adam Wathan
6e20880987
Use [hidden] instead of template in space/divide utilities
2020-10-21 16:01:49 -04:00
Robin Malfait
e1ef99814e
feat: prefix animation names ( #2621 )
...
* add animation value parser
* prefix animation names
2020-10-21 08:04:35 -04:00