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
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
e1ef99814e
feat: prefix animation names ( #2621 )
...
* add animation value parser
* prefix animation names
2020-10-21 08:04:35 -04:00
Adam Wathan
b92f033f8b
Disable dark mode by default, rename config option to darkMode ( #2631 )
...
* Disable dark mode by default, rename config option to `darkMode`
* Rebuild fixtures
2020-10-20 21:36:05 -04:00
Adam Wathan
e13f083c4b
Join arrays when using theme consistently
2020-10-19 11:32:22 -04:00
Adam Wathan
3259608813
Add 2xl breakpoint by default
2020-10-18 15:43:50 -04:00
Adam Wathan
322d366440
Extend font size scale
2020-10-18 15:43:50 -04:00
Adam Wathan
dc9d510c8a
Extend spacing scale
...
By probably too much.
2020-10-18 15:43:50 -04:00
Adam Wathan
9a8c170223
Remove uniformColorPalette experiment
2020-10-18 15:43:50 -04:00
Adam Wathan
7376d7c8b1
Enable dark mode
2020-10-18 15:43:50 -04:00
Adam Wathan
1371e7951e
Use standard font weight names by default
2020-10-18 15:43:50 -04:00
Adam Wathan
7d102598f9
Add line-heights to font-size utilities by default
2020-10-18 15:43:50 -04:00
Adam Wathan
9d40ef519c
Remove default values from config that have default values even when not present at all
2020-10-18 15:43:50 -04:00
Adam Wathan
ef3d655e7b
Ensure changes to withOptions plugins trigger rebuilds
2020-10-17 12:52:13 -04:00
Adam Wathan
38b4eeb288
Prettier likes parens a lot now
...
git blame is now broken forever.
2020-10-16 15:39:44 -04:00
Adam Wathan
e3ed12782f
Update prettier
2020-10-16 13:30:06 -04:00
Adam Wathan
11690b4c9b
Update all core plugins to use the same class name generation strategy
2020-10-16 12:53:41 -04:00
Adam Wathan
e897e40189
Replace special handling of 'default' with 'DEFAULT'
2020-10-16 12:53:41 -04:00
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