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
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
impulse
539738d418
fix: show correct key name when enabling darkMode ( #2635 )
2020-10-21 07:12:31 -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
6fa213d5d8
Don't calculate didYouMean suggestions prematurely
2020-10-19 09:40:28 -04:00
Matt Rothenberg
7572b0256c
feat: Show "Did you mean?" message when users @apply errant class ( #2590 )
...
* feat: suggest alternate classes if @apply value not found
* fix: remove only from test
* feat: move logic to applyComplexClasses
* fix: remove whitespace
* remove unused files
* did you mean suggestion
2020-10-19 09:35:22 -04:00
Brad Cornes
5bf4699a35
Add theme helper function errors ( #2615 )
...
* feat: throw when theme does not have requested path (#1799 )
* Add suggestions to theme function errors
Co-authored-by: Jason Quense <monastic.panic@gmail.com>
2020-10-19 08:12:14 -04:00
Adam Wathan
7376d7c8b1
Enable dark mode
2020-10-18 15:43:50 -04:00
Adam Wathan
c1a7e94e65
Rename export
2020-10-18 15:43:50 -04:00
Adam Wathan
a5ba851c88
Replace old apply implementation files
2020-10-18 15:43:50 -04:00
Adam Wathan
782a828c81
Switch to new apply implementation
2020-10-18 15:43:50 -04:00
Adam Wathan
dc7c477326
Remove unused import
2020-10-18 15:43:50 -04:00
Adam Wathan
b008d0c08a
Remove 'conservative' purge mode
2020-10-18 15:43:50 -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
dbc7dc69d2
Rename default variant to DEFAULT
2020-10-16 12:53: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
a4b30a0115
Safeguard against trailing slash in purge matches ( #2364 )
2020-09-10 14:44:48 -04:00
Adam Wathan
45cf3c595e
Fix issue where inserting extra PurgeCSS control comments could break integrated PurgeCSS support ( #2331 )
2020-09-05 23:35:16 -04:00
Adam Wathan
58781b517d
Only warn about conservative purge mode once per process
2020-09-05 17:41:05 -04:00
Robin Malfait
4c4c5a3834
Fix purging in 1.8 ( #2320 )
...
* re-add missing `@layer`'s for responsive rules
* use toMatchCss for better diffing
* do not wrap user `@responsive` rules in an `@layer`
2020-09-04 18:36:50 -04:00
Adam Wathan
09bd7d43f4
Move custom CSS within layers to corresponding Tailwind layer ( #2312 )
...
* Move custom CSS within layers to corresponding Tailwind layer
* Update changelog
2020-09-04 14:21:56 -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
956133a7a4
Don't associate custom CSS with a layer by default
2020-09-02 13:57:44 -04:00
Adam Wathan
aae71c5249
Preserve HTML elements by default when purging unused styles ( #2283 )
2020-09-01 16:20:16 -04:00
Adam Wathan
5701d7847b
Add dark mode variant ( #2279 )
...
* Initial dark mode prototype
* Isolate dark mode logic to config extension
* Update fixtures
* Fix lint warnings
2020-09-01 13:16:00 -04:00
Adam Wathan
2d090feb98
Only log purge notice once per process
2020-08-19 10:56:51 -04:00
Adam Wathan
ef149cfafb
Optimize rebuilds in long-running processes
2020-08-19 10:21:26 -04:00
Adam Wathan
f32ae238ef
Merge branch 'master' of github.com:tailwindlabs/tailwindcss
2020-08-18 09:06:35 -04:00
Adam Wathan
fdf468998f
Fix issue where motion variants incorrectly stack with group-hover variants
2020-08-18 09:03:32 -04:00
Robin Malfait
8ae2a32a0c
hoist selectorParser setup code
...
No need to re-create the selectorParser in every call.
2020-08-18 08:21:33 -04:00
Adam Wathan
cef0b84abf
Reorganize prototype code
2020-08-14 12:23:28 -04:00
Adam Wathan
8646c94dd5
Prepend a shadow lookup table when no @tailwind rules are in the tree
2020-08-13 20:16:56 -04:00
Adam Wathan
c252e33254
Get shadow lookup working-ish with new apply approach
2020-08-13 12:14:26 -04:00
Adam Wathan
36fc03b16d
Add initial support for applying variants and other complex classes
2020-08-12 19:47:21 -04:00
Adam Wathan
a84deb4ac5
Fix bug where theme('fontSize.xl') breaks with default line-height
2020-08-07 14:32:47 -04:00
Adam Wathan
77ccb5c957
Rename motion-reduced to motion-reduce
2020-07-28 10:15:50 -04:00
Adam Wathan
66619011d6
Make motion variants stackable
2020-07-27 15:23:56 -04:00
Adam Wathan
9f39277607
Rename reduced-motion to motion-reduced, add motion-safe
2020-07-27 14:36:10 -04:00
Adam Wathan
5dcb9f9035
Add reduce-motion variant
2020-07-24 15:26:55 -04:00
Adam Wathan
3edd89bd76
Handle explicit @tailwind screens properly
2020-07-15 09:41:47 -04:00
Adam Wathan
5b19a41195
Convert layers to control comments before processing @apply rules
2020-07-15 09:41:19 -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
c184e5b7b3
Don't remove comments that are never added
2020-07-14 20:57:04 -04:00
Adam Wathan
bc6b17250d
Don't convert @tailwind screens to @screens utilities
2020-07-14 20:56:11 -04:00
Adam Wathan
4169bb1ac2
Simplify implementation, remove unnecessary new features
2020-07-14 20:53:18 -04:00
Adam Wathan
fc1d4c4cb1
Intermingle component and utility screens
2020-07-14 16:41:41 -04:00
Adam Wathan
9959b1f691
Add first-class support for "responsive" components and bucket children
2020-07-14 14:32:14 -04:00