55 Commits

Author SHA1 Message Date
Adam Wathan
0b32b32bcc Update tests 2021-03-17 17:50:44 -04:00
Robin Malfait
d1ef88a61b
ring defaults (#2951)
* add ring defaults

Fixes #2911

* add tests for the ringWidth utility

+ defaults

* update changelog
2020-12-02 15:45:04 -05:00
Adam Wathan
e40079a457 Fix cascading shadow/ring bug, ensure default ring color 2020-11-16 19:47:45 -05:00
Robin Malfait
b86bdbcd7e
Cleanup custom properties (#2771)
* prefix custom properties with tw-

* prefix custom properties with tw- in tests

* prefix gradient values in the defaultConfig

* inline gradient-via-color

* simplify --tw-tailwind-empty to --tw-empty

* replace the long --tw-font-variant-numeric-... to the way shorter --tw-fvn-...

* Rename --tw-box-shadow to --tw-shadow

To match class name.

* Rename font-variant-numeric variables

* Remove 'transform' from transform variables

* Shorten gradient variables

* Fix style

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2020-11-16 11:45:55 -05:00
Adam Wathan
62a47f95b1 Properly support colors as closures with ring utilities 2020-11-13 19:41:08 -05:00
Adam Wathan
c3dd3b6845 Make boxShadow respect ring shadows
This is to prevent box-shadows from overriding rings that are added manually by plugins like the custom forms plugin.
2020-11-10 14:24:22 -05:00
Adam Wathan
d4fcd2eb8f
Add new ring utilities for custom focus styles and rounded outlines (#2747)
* Add ring utilities

* Remove redundant shadows, add 5% and 95% to opacity scale

* Undo changes to build file

* Update boxShadow.test.js
2020-11-09 16:39:49 -05:00
Robin Malfait
68dbc5f981
only prefix animation names that are defined (#2641) 2020-10-21 17:07:13 -04:00
Adam Wathan
02cba631bc
Use left/right instead of inline-start/end for space/divide utilities (#2644) 2020-10-21 17:05:20 -04:00
Adam Wathan
cecb07824e
Use [hidden] instead of template in space/divide utilities (#2642)
* Use [hidden] instead of template in space/divide utilities

* Update tests
2020-10-21 16:09:02 -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
21d4b8c787 Apply new prettier defaults 2020-10-17 20:34:11 -04:00
Twentylives
23100317f4
Using CSS Logical Properties in space and divide layout utilities (#1883)
* CSS Logical Properties in Space Between utilities

Switching to logical properties to fix compatibilty issues with non LTR layouts.

* CSS Logical Properties in Divide Width utilities
Switching to logical properties to fix compatibilty issues with non LTR layouts.
2020-10-17 19:34:19 -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
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
712fe7aeb8 Remove target feature 2020-10-15 15:21:06 -04:00
Adam Wathan
003d94bea1
Support closures for colors in all circumstances (#2536) 2020-10-09 21:03:23 -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
a7e19ca131 Pass opacityValue to gradient colors for transparency support, do not pass opacityVariable since unused 2020-08-19 11:38:22 -04:00
Enzo Innocenzi
f6fc9630d5
test(gradientColorStops): ensure opacity variables are generated 2020-08-18 23:26:29 +02:00
Adam Wathan
a7c410656d Add test coverage for default letter-spacing feature 2020-08-06 15:42:52 -04:00
Adam Wathan
371a79feca Support plugin-specific target mode 2020-04-29 16:25:20 -04:00
Adam Wathan
3b565d1f9c Add opacity modifiers for color utilities 2020-04-26 09:49:23 -04:00
Adam Wathan
5f05677edf Fix missing unit in calc bug in space plugin 2020-04-23 07:58:26 -04:00
Adam Wathan
b0c78726ac Fix bug where divide-x/y-0 didn't work due to missing unit in calc 2020-04-21 16:08:39 -04:00
Adam Wathan
5598a791b1 Fix bug in divide-x utilities, checking wrong custom property 2020-04-21 05:20:59 -04:00
Adam Wathan
1d323c9636 Fix bug in space-x utilities, checking wrong custom property 2020-04-20 21:12:30 -04:00
Adam Wathan
b3b06e8d55 Add negative space utility support 2020-04-20 14:54:31 -04:00
Adam Wathan
8df2cd57a0 Merge branch 'stack-divide-utilities' 2020-04-20 14:18:12 -04:00
Adam Wathan
a14ea02ff0 Use border-width for divide, not border 2020-04-20 14:18:04 -04:00
Adam Wathan
1743c23821
Merge pull request #1594 from tailwindcss/stack-divide-utilities
Support reverse order for space and divide utilities
2020-04-20 13:55:00 -04:00
Adam Wathan
a75b6901aa Support reverse order for space and divide utilities 2020-04-20 13:34:00 -04:00
Adam Wathan
8b2473fade
Merge pull request #1584 from tailwindcss/stack-divide-utilities
Add `space` and `divide` utilities
2020-04-17 13:26:23 -04:00
Adam Wathan
0f54a60d05 Switch from :not(:last-child) to :not(template) ~ :not(template) 2020-04-17 09:49:16 -04:00
Adam Wathan
a6f5137a73 Rename stack to space, make invokePlugin output consistent 2020-04-16 12:43:22 -04:00
Adam Wathan
3143f20850 Add divideColor utilities 2020-04-16 11:01:24 -04:00
Adam Wathan
b447cd6ccd Add divideWidth plugin 2020-04-16 10:53:19 -04:00
Adam Wathan
c84c397f0b Add stack-x and stack-y utilities 2020-04-16 10:45:05 -04:00
Adam Wathan
aa4fd1ae99 Add support for providing a default line-height for each font-size 2020-04-16 09:35:50 -04:00
Adam Wathan
7ce6b2c424 Move plugin helpers up one folder 2020-04-16 09:35:41 -04:00
Adam Wathan
921e2ff202 Add helper for testing utility plugins 2020-04-16 09:35:41 -04:00
Adam Wathan
83f88cc2d4 Remove unit test for strokeWidth plugin, covered by integration tests 2020-01-03 08:39:45 -05:00
Codeminer42
ba640fc79a Add stroke-width plugin 2019-08-22 16:55:23 -03:00
AlexVipond
e5c08f6af2 Revert default syntax support for zIndex and letterSpacing, update tests 2019-07-09 22:46:11 -06:00
AlexVipond
a249bc4433 Handle default keyword for negative prefix syntax. Write tests for negative prefix syntax 2019-06-28 10:11:47 -06: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
David Hemphill
12afd6e8a1 fix stroke utility generation 2019-04-02 15:55:19 -05:00
David Hemphill
6190fe52d4 Fix fill color utility generation 2019-04-02 15:23:40 -05:00