Nick
8ceedb2dd6
fix: fix empty object error ( #4903 )
...
Co-authored-by: zhongcheng <zhongcheng@bytedance.com>
2021-09-06 15:08:22 -04:00
Brad Cornes
4ff383fbbe
Fix malformed keyframes when using class variants ( #5223 )
2021-08-16 12:25:30 -04:00
Robin Malfait
6628eb00ca
Improve matchUtilities API and make it work with the AOT engine ( #4232 )
...
* implement matchUtilities2
* ensure animation names without keyframes are not prefixed
* remove matchBase
* call addUtilities for each group individually
* WIP: Write plugins using matchUtilities2
* MORE
* Fix arbitrary value support for fontSize
* Fixes, update fixtures
* Rebuild fixtures
* Don't generate `divide` class with no modifier
* Fixes, rebuild fixtures
* Rename matchUtilities2 to matchUtilities
* Delete bad tests
* Remove temp files GROSS
* Clean stuff up
* Support no return in matchUtilities
Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2021-05-05 15:23:32 +02:00
Adam Wathan
82942e7083
Very basic AOT matchUtilities support
2021-04-30 11:21:43 -04:00
Adam Wathan
e13f083c4b
Join arrays when using theme consistently
2020-10-19 11:32:22 -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
712fe7aeb8
Remove target feature
2020-10-15 15:21:06 -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
4d6e1e7e92
Don't escape keyframes ( #2432 )
...
* Don't escape keyframes
* Update changelog
2020-10-07 14:12:41 -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
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
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
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
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
Adam Wathan
1117e28c5c
Add support for browserslist as target
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
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
26337bc39f
Add new plugin and plugin.withOptions functions for creating plugins
2019-12-20 10:53:27 -05:00
Adam Wathan
94a1d30809
Make handler optional in object plugins
2019-10-12 13:46:51 -04:00
Adam Wathan
e130771c32
Allow plugins to modify the config
2019-10-12 13:04:02 -04:00
Adam Wathan
763ee71033
Ensure all selectors in a rule receive important scope
2019-08-06 08:14:16 -04:00
Adam Wathan
19c74b106a
Merge branch 'add-prefix-selector-support' of git://github.com/pxwee5/tailwindcss into pxwee5-add-prefix-selector-support
2019-08-06 07:56:34 -04:00
ecrmnn
66e75b89ab
Replaces use of Lodash isArray with built-in Array.isArray
2019-07-13 16:52:07 +02:00
James Wee
382075731d
Added Prefix Selector support via important config
2019-07-11 17:07:24 +12:00
Adam Wathan
0735e3d27e
Remove 'className' from plugin API
...
Certain plugins behave differently and the rules about `default` meaning "no suffix" are not universal (see the cursor plugin). The simplest thing to do right now is keep things as they are, which means only certain plugins respect the default option and only certain other plugins respect the negative prefix convention.
2019-04-26 08:19:23 -04:00
Adam Wathan
c6ae957aff
Support negative values for inset
2019-04-24 16:37:13 -04:00
Michaël De Boey
d4b2b8b755
Make theme config directly accessible in the plugins
2019-04-18 23:29:07 +02:00
Adam Wathan
f0bc35a896
Support configuring a single list of variants to apply to all relevant plugins
2019-04-18 09:42:21 -04:00
Adam Wathan
db7f1e6728
Merge branch 'master' into next
2019-02-22 10:05:31 -05:00
Adam Wathan
10aa36533f
Pass postcss to plugins explicitly
2019-02-22 09:50:36 -05:00
Adam Wathan
76c40e4394
Fix style
2019-02-07 15:13:17 -05:00
Adam Wathan
1d0b4cd31c
Test plugins can add base styles with object syntax
2019-02-07 14:05:00 -05:00
Adam Wathan
1a46f6b47d
Move important to top level option
2019-02-01 12:32:50 -05:00
Adam Wathan
664f923312
Move prefix option to top-level in config
2019-02-01 12:32:16 -05:00
Adam Wathan
ffae87148d
Revert "Allow plugins to register new config variables"
2019-02-01 12:32:04 -05:00
Adam Wathan
5ea8bbe798
Allow plugins to register new config variables
2019-02-01 12:32:04 -05:00
Adam Wathan
146b984617
Accept plugins as separate processPlugins arg
2019-01-14 15:43:12 -05:00
Adam Wathan
64cda2f44b
Refactor duplication to use generateVariantFunction
2018-06-26 13:44:47 -04:00
Adam Wathan
d77bc055ee
Support for basic variant generator plugins
...
Allows you to write a plugin that registers a new variant but only
allows you to modify the selector (like what our built-in generators
do.)
Next steps are to support variants that wrap rules with at-rules
(like @supports for example), variants that can modify properties
(as opposed to just selectors), and to give variant plugin authors
control over how responsive variants interact with their own variants.
2018-06-26 13:44:47 -04:00
Adam Wathan
9eca69ad83
Refactor process plugins to return an object
2018-06-26 13:44:47 -04:00
Adam Wathan
8e8f47c58d
Respect user prefix by default when creating component classes
2018-03-07 09:37:01 -05:00