856 Commits

Author SHA1 Message Date
Robin Malfait
6ed835cb71
Fix invalid arg type (#3978)
* default to `tailwind.css` file when no input is given

* skip undefined files

* update forgotten test fixtures
2021-04-06 00:12:52 +02:00
Adam Wathan
60a06788fe
Add CSS filter support (#3923)
* Implement `filter` helper classes with all methods

* Rename filter plugins/utilities, drop filter opacity, add drop shadow

* Remove non-final default filter values

* Working on default filter values, add basic JIT support

* Working on blur values

* New blur values (these are ~okay)

* Match drop-shadow values to box-shadows by eye as best as possible

* Update tests

* Fix kitchen sink test

* Add filter variants configuration

* Move drop-shadow to end of filters list

Co-Authored-By: Peter Neupauer <peter@neupauer.sk>

* Add invert variants configuration

* Add backdrop-filter utilities

* Update tests

* Transition filters by default

* Alphabetize new config keys

* Optimize filter plugins for JIT + add arbitrary value support

Except for drop-shadow, will add that once we can think it through a bit.

Co-authored-by: Nick Schmidt <nick@kreativgebiet.com>
Co-authored-by: Peter Neupauer <peter@neupauer.sk>
2021-04-04 19:09:34 -04:00
Peter Neupauer
0b5f5e932a
Add list-item display utility (#3929)
Signed-off-by: Peter Neupauer <peter@neupauer.sk>
2021-04-04 06:53:41 -04:00
Adam Wathan
1cb060d34e
Add mix-blend-mode and background-blend-mode utilities (#3920)
* Add mix-blend-mode utilities

* Rename mix-blend-mode utilities to `mix-blend-*`

Co-Authored-By: Peter Neupauer <peter@neupauer.sk>

* Add `background-blend-mode` utilities

Co-Authored-By: Peter Neupauer <peter@neupauer.sk>

Co-authored-by: Peter Neupauer <peter@neupauer.sk>
2021-04-04 06:50:05 -04:00
Erik Verbeek
48d7648938
Added support for display : inline-table (#3563)
* Added support for display : inline-table

* Moved the inline-table class to the suggested spot and updated the tests

Co-authored-by: Erik Verbeek <erik@evidencio.com>
2021-04-03 06:45:52 -04:00
Adam Wathan
9e705dbb99 Remove justify-auto and place-items-auto
These CSS values don't even exist.
2021-04-03 06:41:44 -04:00
Adam Wathan
e1e66e3848
Add isolation utilities (#3914) 2021-04-02 16:32:25 -04:00
Adam Wathan
8c07172726
Add box-decoration-break utilities (#3911) 2021-04-02 16:04:52 -04:00
Robin Malfait
784af4313a check for different -webkit prefix test
The tests started failing because `-webkit-max-content` is not needed
anymore. So instead we are now checking for `-webkit-background-clip`.

If this happens in the future, we could check for ` -webkit-` (notice
the space in front) so that we dont test for hardcoded
`::-webkit-inner-spin-button`.
2021-04-02 15:13:21 -04:00
Adam Wathan
c44d64b8e8 Update fixtures 2021-03-30 11:10:34 -04:00
Adam Wathan
0b32b32bcc Update tests 2021-03-17 17:50:44 -04:00
Adam Wathan
d98f2f829d Pass full opacityValue always 2021-03-17 17:47:08 -04:00
Adam Wathan
952fa15e6e Update fixtures 2021-02-07 16:19:23 -05:00
Nate Moore
e86b586f4b
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-02-07 14:50:21 -05:00
Robin Malfait
46a3300372
add version and license (#3255)
* add current version & license

* generate fixtures

* update changelog

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2021-01-29 15:03:15 -05:00
Kevin Lang
82f1395997
add help cursor (#3199) 2021-01-29 15:01:05 -05:00
Adam Wathan
039186a555
Set explicit opacity value on placeholder pseudo-element (#3308)
Fixes #3300.
2021-01-29 14:41:43 -05: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
6a41c0d73e
add test to verify that apply on multiple selectors work
Fixes: #2906
2020-11-26 16:14:17 +01: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
3ea5e18c24 Add failing test for complex apply scenario
@RobinMalfait Something to look at when you have time 🤔
2020-11-19 12:41:06 -05:00
Adam Wathan
3de0c48bd6 Don't mix unitless values with units in the same scale
Resolves an issue where `ring-offset-0` didn't actually work because `calc(0 * 1)` fails to compute, need a unit.
2020-11-17 08:26:44 -05:00
Adam Wathan
e40079a457 Fix cascading shadow/ring bug, ensure default ring color 2020-11-16 19:47:45 -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
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
e0788efd4f Generate focus, focus-within, and dark variants for ring utilities 2020-11-12 08:45:21 -05:00
Adam Wathan
879f0887ed Add ring-inset, always reset ring variables 2020-11-11 21:58:54 -05:00
Adam Wathan
f6923b1d6b Update default variants
Disable hover/focus for fontWeight, enable focus-within for outline and ringWidth, enable group-hover for boxShadow, enable group-hover and focus-within for textDecoration.
2020-11-11 16:12:41 -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
1a21f0721c Enable focus-within where useful by default 2020-11-07 15:14:09 -05:00
Adam Wathan
369cfae290 Add "shadow-solid" utility 2020-11-06 22:36:18 -05:00
Adam Wathan
dddda8caaf Update fixtures 2020-11-06 22:34:27 -05:00
Adam Wathan
e7d053444a Update fixtures 2020-11-06 09:41:48 -05:00
Robin Malfait
700866ce5e
add indigo, swap gray with coolGray 2020-11-06 14:34:14 +01: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
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
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