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
Adam Wathan
872dcdc515
Update createUtilityPlugin to support generating multiple utilities for a single themeKey
2019-12-25 13:54:10 -05:00
Adam Wathan
2ae6ee6c12
Update fixtures and code style
2019-12-25 13:54:09 -05:00
Adam Wathan
5335df2b2c
Add first pass of transform utilities
2019-12-25 13:54:09 -05:00
Adam Wathan
26337bc39f
Add new plugin and plugin.withOptions functions for creating plugins
2019-12-20 10:53:27 -05:00
Adam Wathan
311fc66410
Merge changes from 1.1.3 and fix conflicts
2019-10-22 13:04:46 -04:00
Adam Wathan
e3576242a4
Ensure all function properties receive config utils
2019-10-22 12:59:42 -04:00
Adam Wathan
5911bd704c
Reverse extend array to guarantee correct precedence
2019-10-13 20:31:32 -04:00
Adam Wathan
94a1d30809
Make handler optional in object plugins
2019-10-12 13:46:51 -04:00
Adam Wathan
53dff626a7
Fix style
2019-10-12 13:41:28 -04:00
Adam Wathan
65d45689ae
Allow plugins to provide their own config object
2019-10-12 13:40:00 -04:00
Adam Wathan
33e5546e9b
Fix style
2019-10-12 13:05:08 -04:00
Adam Wathan
4c25ca5ed6
Apply config modifications to default config, before resolving config
2019-10-12 13:05:08 -04:00
Adam Wathan
e130771c32
Allow plugins to modify the config
2019-10-12 13:04:02 -04:00
Adam Wathan
eb24d5067c
Fix style
2019-10-12 12:53:32 -04:00