Adam Wathan
ff866775a0
Remove fallback colors
2020-10-15 15:21:06 -04:00
Adam Wathan
712fe7aeb8
Remove target feature
2020-10-15 15:21:06 -04:00
Adam Wathan
038afedfac
Merge plugins when resolving config ( #2561 )
2020-10-14 12:45:59 -04:00
Adam Wathan
ac82484dd9
Don't import corePlugins in resolveConfig ( #2548 )
2020-10-13 08:14:57 -04:00
Adam Wathan
003d94bea1
Support closures for colors in all circumstances ( #2536 )
2020-10-09 21:03:23 -04:00
Adam Wathan
b299b6fbe1
Support new presets key + extending core plugins config ( #2474 )
...
* WIP
* Support array for Tailwind config
* Drop array format for `presets` key instead
* Update changelog
2020-10-08 11:21:39 -04:00
Adam Wathan
d01636caff
Add experimental 2xl breakpoint ( #2468 )
2020-10-07 14:12:42 -04:00
Adam Wathan
4d6e1e7e92
Don't escape keyframes ( #2432 )
...
* Don't escape keyframes
* Update changelog
2020-10-07 14:12:41 -04:00
Adam Wathan
19333add01
Set color opacity variable when colors are defined as functions ( #2515 )
...
* Always set color opacity variable, even if color cannot be parsed
* Only set color opacity when it might be used
2020-10-07 14:08:39 -04:00
Adam Wathan
32eac19858
Allow variant plugins to tell Tailwind they should stack ( #2382 )
...
* Fix unwanted stacking behavior on any non-darkModeVariant "dark" variant (#2380 )
* Add failing tests for non-darkModeVariant "dark" variant stacking behavior
* Fix unwanted non-darkModeVariant "dark" variant stacking (by making the failing test pass)
* Add unstable_stack option for variants to tell Tailwind they should stack
* Update eslint to allow unstable_ variables
* Update changelog
Co-authored-by: Navith <28162694+JakeNavith@users.noreply.github.com>
2020-09-14 09:12:36 -04:00
Adam Wathan
6a9c3e7886
Register dark mode plugin outside of resolveConfig code path ( #2368 )
2020-09-11 10:15:39 -04:00
Adam Wathan
e5c193a76c
Make resolveConfig compatible with feature flag configs ( #2347 )
...
* Make resolveConfig compatible with feature flag configs
* Update changelog
2020-09-07 19:56:35 -04:00
Adam Wathan
476950ce40
Support defining variants as functions for easier extending ( #2309 )
...
* Support defining variants as functions for easier extending
* Fix style
* Remove commented code
* Add 'without' helper to variant function API
* Update changelog
2020-09-04 10:59:02 -04:00
Adam Wathan
d44e75fc79
Purge layers by default, deprecate conservative mode ( #2288 )
...
* Purge `layers` by default, deprecate `conservative` mode
* Ensure base styles are wrapped in @layer
* Update processPlugins test
2020-09-02 14:42:27 -04:00
Joe Mooring
5362c65fcb
Log to stderr instead of stdout
...
Fixes #2203
2020-08-20 09:37:22 -04:00
Adam Wathan
28930f4799
Merge branch 'fix/color-object-closures' of git://github.com/innocenzi/tailwindcss into innocenzi-fix/color-object-closures
2020-08-19 11:25:13 -04:00
Adam Wathan
2d090feb98
Only log purge notice once per process
2020-08-19 10:56:51 -04:00
Enzo Innocenzi
0206d060e5
fix(colors): correctly flatten color closures
2020-08-18 22:35:10 +02:00
Robin Malfait
33ee64665d
cache className resolve
2020-08-18 08:21:33 -04:00
Robin Malfait
5260c71c60
only parse the className when needed
2020-08-18 08:21:33 -04:00
Robin Malfait
fab4d7b8f6
cache buildSelectorVariant
2020-08-18 08:21:33 -04:00
Robin Malfait
0631851b7b
introduce a useMemo utility
...
Naming is hard so I took this name from the React hook 😎
Also use this useMemoy utility to make sure that the extractUtilityNames
is cached. There is no need to re-compute the utility names all the
time.
2020-08-18 08:21:33 -04:00
Robin Malfait
aa7ae6af37
re-use classNameParser
...
We were re-creating the classNameParser inside the loop. Since that code
is all pretty pure we can hoist it so that we don't have to recreate
that parser all the time.
2020-08-18 08:21:33 -04:00
Adam Wathan
8d87445b81
Improve API, support auto-transparent to, rename gradientColor plugin
2020-08-17 11:05:06 -04:00
Adam Wathan
7fb5d4a579
Add support for background images and 2/3-color-stop gradients
2020-08-16 15:23:49 -04:00
Adam Wathan
8a066c27a2
Merge branch 'apply-complex-classes'
2020-08-15 15:39:48 -04:00
Adam Wathan
7371ea992b
Merge pull request #1676 from innocenzi/color-closure
...
Allow colors to be defined as closures
2020-08-15 09:09:46 -04:00
Adam Wathan
cef0b84abf
Reorganize prototype code
2020-08-14 12:23:28 -04:00
Adam Wathan
6070ba72dc
Merge branch 'master' into patch-2
2020-08-06 16:08:23 -04:00
Adam Wathan
7dc0261bc6
Only wrap with variants if rules don't already contain any variants
2020-07-15 17:28:33 -04:00
Adam Wathan
b69e46cc1b
Rename buckets to layers, handle copying layer information to responsive variants
2020-07-15 09:25:22 -04:00
Adam Wathan
4169bb1ac2
Simplify implementation, remove unnecessary new features
2020-07-14 20:53:18 -04:00
Adam Wathan
9959b1f691
Add first-class support for "responsive" components and bucket children
2020-07-14 14:32:14 -04:00
Enzo Innocenzi
dbcac5035a
refactor!: use object instead of positional arg
2020-06-28 20:46:23 +02:00
Adam Wathan
ad850ac491
Throw if contains a class
2020-05-08 13:23:26 -04:00
Adam Wathan
f5c0e301a5
Fix bug where browserslist target didn't work outside of tuple syntax
2020-05-01 15:30:39 -04:00
Adam Wathan
652100e2d5
Add corePlugins function to plugin API
2020-05-01 14:41:12 -04:00
Haew
109dec1681
Allow colors to be defined as closures
2020-05-01 05:22:52 +02:00
Adam Wathan
1117e28c5c
Add support for browserslist as target
2020-04-29 16:25:20 -04:00
Adam Wathan
b4acd94390
Generate non-composable transforms in IE11 target mode
2020-04-29 16:25:20 -04:00
Adam Wathan
371a79feca
Support plugin-specific target mode
2020-04-29 16:25:20 -04:00
Adam Wathan
e5288ff8fe
Remove target helper
2020-04-29 16:24:26 -04:00
Adam Wathan
2950ff339b
Initial support for IE11 target
2020-04-29 16:24:26 -04:00
Adam Wathan
f94e2c37f2
Fix import
2020-04-26 11:05:42 -04:00
Adam Wathan
3b565d1f9c
Add opacity modifiers for color utilities
2020-04-26 09:49:23 -04:00
Mathieu TUDISCO
2e7518a885
Make eslint happy
2020-04-17 11:52:43 +02:00
Mathieu TUDISCO
074e7aed60
Give the whole config access to plugins if needed.
2020-04-17 11:44:51 +02:00
Adam Wathan
b3a7f7788a
Test making config function optional, refactor to default parameter
2020-01-04 12:35:12 -05:00
Benoît Rouleau
eb2f3669e3
Fix plugin.withOptions() when no config function is passed
2020-01-03 12:36:33 -05:00
Adam Wathan
038b158e28
Add max-w-screen-{breakpoint} utilities
2019-12-27 08:53:47 -05:00