tailwindcss 3.3.7 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -2
- package/lib/corePluginList.js +4 -1
- package/lib/corePlugins.js +71 -4
- package/lib/css/preflight.css +5 -2
- package/lib/lib/setupContextUtils.js +6 -3
- package/package.json +1 -1
- package/src/corePluginList.js +1 -1
- package/src/corePlugins.js +52 -3
- package/src/css/preflight.css +5 -2
- package/src/lib/setupContextUtils.js +5 -2
- package/stubs/config.full.js +85 -14
- package/types/generated/corePluginList.d.ts +1 -1
- package/types/generated/default-theme.d.ts +33 -7
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
-
|
|
10
|
+
## [3.4.0] - 2023-12-19
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add `svh`, `lvh`, and `dvh` values to default `height`/`min-height`/`max-height` theme ([#11317](https://github.com/tailwindlabs/tailwindcss/pull/11317))
|
|
15
|
+
- Add `has-*` variants for `:has(...)` pseudo-class ([#11318](https://github.com/tailwindlabs/tailwindcss/pull/11318))
|
|
16
|
+
- Add `text-wrap` utilities including `text-balance` and `text-pretty` ([#11320](https://github.com/tailwindlabs/tailwindcss/pull/11320), [#12031](https://github.com/tailwindlabs/tailwindcss/pull/12031))
|
|
17
|
+
- Extend default `opacity` scale to include all steps of 5 ([#11832](https://github.com/tailwindlabs/tailwindcss/pull/11832))
|
|
18
|
+
- Update Preflight `html` styles to include shadow DOM `:host` pseudo-class ([#11200](https://github.com/tailwindlabs/tailwindcss/pull/11200))
|
|
19
|
+
- Increase default values for `grid-rows-*` utilities from 1–6 to 1–12 ([#12180](https://github.com/tailwindlabs/tailwindcss/pull/12180))
|
|
20
|
+
- Add `size-*` utilities ([#12287](https://github.com/tailwindlabs/tailwindcss/pull/12287))
|
|
21
|
+
- Add utilities for CSS subgrid ([#12298](https://github.com/tailwindlabs/tailwindcss/pull/12298))
|
|
22
|
+
- Add spacing scale to `min-w-*`, `min-h-*`, and `max-w-*` utilities ([#12300](https://github.com/tailwindlabs/tailwindcss/pull/12300))
|
|
23
|
+
- Add `forced-color-adjust` utilities ([#11931](https://github.com/tailwindlabs/tailwindcss/pull/11931))
|
|
24
|
+
- Add `forced-colors` variant ([#11694](https://github.com/tailwindlabs/tailwindcss/pull/11694), [#12582](https://github.com/tailwindlabs/tailwindcss/pull/12582))
|
|
25
|
+
- Add `appearance-auto` utility ([#12404](https://github.com/tailwindlabs/tailwindcss/pull/12404))
|
|
26
|
+
- Add logical property values for `float` and `clear` utilities ([#12480](https://github.com/tailwindlabs/tailwindcss/pull/12480))
|
|
27
|
+
- Add `*` variant for targeting direct children ([#12551](https://github.com/tailwindlabs/tailwindcss/pull/12551))
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
|
|
31
|
+
- Simplify the `sans` font-family stack ([#11748](https://github.com/tailwindlabs/tailwindcss/pull/11748))
|
|
32
|
+
- Disable the tap highlight overlay on iOS ([#12299](https://github.com/tailwindlabs/tailwindcss/pull/12299))
|
|
33
|
+
- Improve relative precedence of `rtl`, `ltr`, `forced-colors`, and `dark` variants ([#12584](https://github.com/tailwindlabs/tailwindcss/pull/12584))
|
|
11
34
|
|
|
12
35
|
## [3.3.7] - 2023-12-18
|
|
13
36
|
|
|
@@ -2310,7 +2333,8 @@ No release notes
|
|
|
2310
2333
|
|
|
2311
2334
|
- Everything!
|
|
2312
2335
|
|
|
2313
|
-
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.
|
|
2336
|
+
[unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.4.0...HEAD
|
|
2337
|
+
[3.4.0]: https://github.com/tailwindlabs/tailwindcss/compare/v3.3.7...v3.4.0
|
|
2314
2338
|
[3.3.7]: https://github.com/tailwindlabs/tailwindcss/compare/v3.3.6...v3.3.7
|
|
2315
2339
|
[3.3.6]: https://github.com/tailwindlabs/tailwindcss/compare/v3.3.5...v3.3.6
|
|
2316
2340
|
[3.3.5]: https://github.com/tailwindlabs/tailwindcss/compare/v3.3.4...v3.3.5
|
package/lib/corePluginList.js
CHANGED
|
@@ -32,6 +32,7 @@ const _default = [
|
|
|
32
32
|
"lineClamp",
|
|
33
33
|
"display",
|
|
34
34
|
"aspectRatio",
|
|
35
|
+
"size",
|
|
35
36
|
"height",
|
|
36
37
|
"maxHeight",
|
|
37
38
|
"minHeight",
|
|
@@ -98,6 +99,7 @@ const _default = [
|
|
|
98
99
|
"textOverflow",
|
|
99
100
|
"hyphens",
|
|
100
101
|
"whitespace",
|
|
102
|
+
"textWrap",
|
|
101
103
|
"wordBreak",
|
|
102
104
|
"borderRadius",
|
|
103
105
|
"borderWidth",
|
|
@@ -183,5 +185,6 @@ const _default = [
|
|
|
183
185
|
"transitionDuration",
|
|
184
186
|
"transitionTimingFunction",
|
|
185
187
|
"willChange",
|
|
186
|
-
"content"
|
|
188
|
+
"content",
|
|
189
|
+
"forcedColorAdjust"
|
|
187
190
|
];
|
package/lib/corePlugins.js
CHANGED
|
@@ -81,6 +81,9 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
81
81
|
return newObj;
|
|
82
82
|
}
|
|
83
83
|
let variantPlugins = {
|
|
84
|
+
childVariant: ({ addVariant })=>{
|
|
85
|
+
addVariant("*", "& > *");
|
|
86
|
+
},
|
|
84
87
|
pseudoElementVariants: ({ addVariant })=>{
|
|
85
88
|
addVariant("first-letter", "&::first-letter");
|
|
86
89
|
addVariant("first-line", "&::first-line");
|
|
@@ -264,8 +267,8 @@ let variantPlugins = {
|
|
|
264
267
|
}
|
|
265
268
|
},
|
|
266
269
|
directionVariants: ({ addVariant })=>{
|
|
267
|
-
addVariant("ltr", ':is([dir="ltr"] &)');
|
|
268
|
-
addVariant("rtl", ':is([dir="rtl"] &)');
|
|
270
|
+
addVariant("ltr", ':is(:where([dir="ltr"]) &)');
|
|
271
|
+
addVariant("rtl", ':is(:where([dir="rtl"]) &)');
|
|
269
272
|
},
|
|
270
273
|
reducedMotionVariants: ({ addVariant })=>{
|
|
271
274
|
addVariant("motion-safe", "@media (prefers-reduced-motion: no-preference)");
|
|
@@ -282,7 +285,7 @@ let variantPlugins = {
|
|
|
282
285
|
]);
|
|
283
286
|
}
|
|
284
287
|
if (mode === "class") {
|
|
285
|
-
addVariant("dark", `:is(${className} &)`);
|
|
288
|
+
addVariant("dark", `:is(:where(${className}) &)`);
|
|
286
289
|
} else if (mode === "media") {
|
|
287
290
|
addVariant("dark", "@media (prefers-color-scheme: dark)");
|
|
288
291
|
}
|
|
@@ -419,6 +422,17 @@ let variantPlugins = {
|
|
|
419
422
|
values: (_theme = theme("supports")) !== null && _theme !== void 0 ? _theme : {}
|
|
420
423
|
});
|
|
421
424
|
},
|
|
425
|
+
hasVariants: ({ matchVariant })=>{
|
|
426
|
+
matchVariant("has", (value)=>`&:has(${(0, _dataTypes.normalize)(value)})`, {
|
|
427
|
+
values: {}
|
|
428
|
+
});
|
|
429
|
+
matchVariant("group-has", (value, { modifier })=>modifier ? `:merge(.group\\/${modifier}):has(${(0, _dataTypes.normalize)(value)}) &` : `:merge(.group):has(${(0, _dataTypes.normalize)(value)}) &`, {
|
|
430
|
+
values: {}
|
|
431
|
+
});
|
|
432
|
+
matchVariant("peer-has", (value, { modifier })=>modifier ? `:merge(.peer\\/${modifier}):has(${(0, _dataTypes.normalize)(value)}) ~ &` : `:merge(.peer):has(${(0, _dataTypes.normalize)(value)}) ~ &`, {
|
|
433
|
+
values: {}
|
|
434
|
+
});
|
|
435
|
+
},
|
|
422
436
|
ariaVariants: ({ matchVariant , theme })=>{
|
|
423
437
|
var _theme;
|
|
424
438
|
matchVariant("aria", (value)=>`&[aria-${(0, _dataTypes.normalize)(value)}]`, {
|
|
@@ -454,6 +468,9 @@ let variantPlugins = {
|
|
|
454
468
|
prefersContrastVariants: ({ addVariant })=>{
|
|
455
469
|
addVariant("contrast-more", "@media (prefers-contrast: more)");
|
|
456
470
|
addVariant("contrast-less", "@media (prefers-contrast: less)");
|
|
471
|
+
},
|
|
472
|
+
forcedColorsVariants: ({ addVariant })=>{
|
|
473
|
+
addVariant("forced-colors", "@media (forced-colors: active)");
|
|
457
474
|
}
|
|
458
475
|
};
|
|
459
476
|
let cssTransformValue = [
|
|
@@ -774,6 +791,12 @@ let corePlugins = {
|
|
|
774
791
|
]),
|
|
775
792
|
float: ({ addUtilities })=>{
|
|
776
793
|
addUtilities({
|
|
794
|
+
".float-start": {
|
|
795
|
+
float: "inline-start"
|
|
796
|
+
},
|
|
797
|
+
".float-end": {
|
|
798
|
+
float: "inline-end"
|
|
799
|
+
},
|
|
777
800
|
".float-right": {
|
|
778
801
|
float: "right"
|
|
779
802
|
},
|
|
@@ -787,6 +810,12 @@ let corePlugins = {
|
|
|
787
810
|
},
|
|
788
811
|
clear: ({ addUtilities })=>{
|
|
789
812
|
addUtilities({
|
|
813
|
+
".clear-start": {
|
|
814
|
+
clear: "inline-start"
|
|
815
|
+
},
|
|
816
|
+
".clear-end": {
|
|
817
|
+
clear: "inline-end"
|
|
818
|
+
},
|
|
790
819
|
".clear-left": {
|
|
791
820
|
clear: "left"
|
|
792
821
|
},
|
|
@@ -970,6 +999,15 @@ let corePlugins = {
|
|
|
970
999
|
]
|
|
971
1000
|
]
|
|
972
1001
|
]),
|
|
1002
|
+
size: (0, _createUtilityPlugin.default)("size", [
|
|
1003
|
+
[
|
|
1004
|
+
"size",
|
|
1005
|
+
[
|
|
1006
|
+
"width",
|
|
1007
|
+
"height"
|
|
1008
|
+
]
|
|
1009
|
+
]
|
|
1010
|
+
]),
|
|
973
1011
|
height: (0, _createUtilityPlugin.default)("height", [
|
|
974
1012
|
[
|
|
975
1013
|
"h",
|
|
@@ -1613,6 +1651,9 @@ let corePlugins = {
|
|
|
1613
1651
|
addUtilities({
|
|
1614
1652
|
".appearance-none": {
|
|
1615
1653
|
appearance: "none"
|
|
1654
|
+
},
|
|
1655
|
+
".appearance-auto": {
|
|
1656
|
+
appearance: "auto"
|
|
1616
1657
|
}
|
|
1617
1658
|
});
|
|
1618
1659
|
},
|
|
@@ -2297,6 +2338,22 @@ let corePlugins = {
|
|
|
2297
2338
|
}
|
|
2298
2339
|
});
|
|
2299
2340
|
},
|
|
2341
|
+
textWrap: ({ addUtilities })=>{
|
|
2342
|
+
addUtilities({
|
|
2343
|
+
".text-wrap": {
|
|
2344
|
+
"text-wrap": "wrap"
|
|
2345
|
+
},
|
|
2346
|
+
".text-nowrap": {
|
|
2347
|
+
"text-wrap": "nowrap"
|
|
2348
|
+
},
|
|
2349
|
+
".text-balance": {
|
|
2350
|
+
"text-wrap": "balance"
|
|
2351
|
+
},
|
|
2352
|
+
".text-pretty": {
|
|
2353
|
+
"text-wrap": "pretty"
|
|
2354
|
+
}
|
|
2355
|
+
});
|
|
2356
|
+
},
|
|
2300
2357
|
wordBreak: ({ addUtilities })=>{
|
|
2301
2358
|
addUtilities({
|
|
2302
2359
|
".break-normal": {
|
|
@@ -4173,5 +4230,15 @@ let corePlugins = {
|
|
|
4173
4230
|
]
|
|
4174
4231
|
]
|
|
4175
4232
|
]
|
|
4176
|
-
])
|
|
4233
|
+
]),
|
|
4234
|
+
forcedColorAdjust: ({ addUtilities })=>{
|
|
4235
|
+
addUtilities({
|
|
4236
|
+
".forced-color-adjust-auto": {
|
|
4237
|
+
"forced-color-adjust": "auto"
|
|
4238
|
+
},
|
|
4239
|
+
".forced-color-adjust-none": {
|
|
4240
|
+
"forced-color-adjust": "none"
|
|
4241
|
+
}
|
|
4242
|
+
});
|
|
4243
|
+
}
|
|
4177
4244
|
};
|
package/lib/css/preflight.css
CHANGED
|
@@ -24,16 +24,19 @@
|
|
|
24
24
|
4. Use the user's configured `sans` font-family by default.
|
|
25
25
|
5. Use the user's configured `sans` font-feature-settings by default.
|
|
26
26
|
6. Use the user's configured `sans` font-variation-settings by default.
|
|
27
|
+
7. Disable tap highlights on iOS
|
|
27
28
|
*/
|
|
28
29
|
|
|
29
|
-
html
|
|
30
|
+
html,
|
|
31
|
+
:host {
|
|
30
32
|
line-height: 1.5; /* 1 */
|
|
31
33
|
-webkit-text-size-adjust: 100%; /* 2 */
|
|
32
34
|
-moz-tab-size: 4; /* 3 */
|
|
33
35
|
tab-size: 4; /* 3 */
|
|
34
|
-
font-family: theme('fontFamily.sans', ui-sans-serif, system-ui,
|
|
36
|
+
font-family: theme('fontFamily.sans', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"); /* 4 */
|
|
35
37
|
font-feature-settings: theme('fontFamily.sans[1].fontFeatureSettings', normal); /* 5 */
|
|
36
38
|
font-variation-settings: theme('fontFamily.sans[1].fontVariationSettings', normal); /* 6 */
|
|
39
|
+
-webkit-tap-highlight-color: transparent; /* 7 */
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
/*
|
|
@@ -751,20 +751,23 @@ function resolvePlugins(context, root) {
|
|
|
751
751
|
// TODO: This is a workaround for backwards compatibility, since custom variants
|
|
752
752
|
// were historically sorted before screen/stackable variants.
|
|
753
753
|
let beforeVariants = [
|
|
754
|
+
_corePlugins.variantPlugins["childVariant"],
|
|
754
755
|
_corePlugins.variantPlugins["pseudoElementVariants"],
|
|
755
756
|
_corePlugins.variantPlugins["pseudoClassVariants"],
|
|
757
|
+
_corePlugins.variantPlugins["hasVariants"],
|
|
756
758
|
_corePlugins.variantPlugins["ariaVariants"],
|
|
757
759
|
_corePlugins.variantPlugins["dataVariants"]
|
|
758
760
|
];
|
|
759
761
|
let afterVariants = [
|
|
760
762
|
_corePlugins.variantPlugins["supportsVariants"],
|
|
761
|
-
_corePlugins.variantPlugins["directionVariants"],
|
|
762
763
|
_corePlugins.variantPlugins["reducedMotionVariants"],
|
|
763
764
|
_corePlugins.variantPlugins["prefersContrastVariants"],
|
|
764
|
-
_corePlugins.variantPlugins["darkVariants"],
|
|
765
765
|
_corePlugins.variantPlugins["printVariant"],
|
|
766
766
|
_corePlugins.variantPlugins["screenVariants"],
|
|
767
|
-
_corePlugins.variantPlugins["orientationVariants"]
|
|
767
|
+
_corePlugins.variantPlugins["orientationVariants"],
|
|
768
|
+
_corePlugins.variantPlugins["directionVariants"],
|
|
769
|
+
_corePlugins.variantPlugins["darkVariants"],
|
|
770
|
+
_corePlugins.variantPlugins["forcedColorsVariants"]
|
|
768
771
|
];
|
|
769
772
|
return [
|
|
770
773
|
...corePluginList,
|
package/package.json
CHANGED
package/src/corePluginList.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default ["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content"]
|
|
1
|
+
export default ["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","size","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","textWrap","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","content","forcedColorAdjust"]
|
package/src/corePlugins.js
CHANGED
|
@@ -25,6 +25,9 @@ import { normalize } from './util/dataTypes'
|
|
|
25
25
|
import { INTERNAL_FEATURES } from './lib/setupContextUtils'
|
|
26
26
|
|
|
27
27
|
export let variantPlugins = {
|
|
28
|
+
childVariant: ({ addVariant }) => {
|
|
29
|
+
addVariant('*', '& > *')
|
|
30
|
+
},
|
|
28
31
|
pseudoElementVariants: ({ addVariant }) => {
|
|
29
32
|
addVariant('first-letter', '&::first-letter')
|
|
30
33
|
addVariant('first-line', '&::first-line')
|
|
@@ -204,8 +207,8 @@ export let variantPlugins = {
|
|
|
204
207
|
},
|
|
205
208
|
|
|
206
209
|
directionVariants: ({ addVariant }) => {
|
|
207
|
-
addVariant('ltr', ':is([dir="ltr"] &)')
|
|
208
|
-
addVariant('rtl', ':is([dir="rtl"] &)')
|
|
210
|
+
addVariant('ltr', ':is(:where([dir="ltr"]) &)')
|
|
211
|
+
addVariant('rtl', ':is(:where([dir="rtl"]) &)')
|
|
209
212
|
},
|
|
210
213
|
|
|
211
214
|
reducedMotionVariants: ({ addVariant }) => {
|
|
@@ -226,7 +229,7 @@ export let variantPlugins = {
|
|
|
226
229
|
}
|
|
227
230
|
|
|
228
231
|
if (mode === 'class') {
|
|
229
|
-
addVariant('dark', `:is(${className} &)`)
|
|
232
|
+
addVariant('dark', `:is(:where(${className}) &)`)
|
|
230
233
|
} else if (mode === 'media') {
|
|
231
234
|
addVariant('dark', '@media (prefers-color-scheme: dark)')
|
|
232
235
|
}
|
|
@@ -392,6 +395,26 @@ export let variantPlugins = {
|
|
|
392
395
|
)
|
|
393
396
|
},
|
|
394
397
|
|
|
398
|
+
hasVariants: ({ matchVariant }) => {
|
|
399
|
+
matchVariant('has', (value) => `&:has(${normalize(value)})`, { values: {} })
|
|
400
|
+
matchVariant(
|
|
401
|
+
'group-has',
|
|
402
|
+
(value, { modifier }) =>
|
|
403
|
+
modifier
|
|
404
|
+
? `:merge(.group\\/${modifier}):has(${normalize(value)}) &`
|
|
405
|
+
: `:merge(.group):has(${normalize(value)}) &`,
|
|
406
|
+
{ values: {} }
|
|
407
|
+
)
|
|
408
|
+
matchVariant(
|
|
409
|
+
'peer-has',
|
|
410
|
+
(value, { modifier }) =>
|
|
411
|
+
modifier
|
|
412
|
+
? `:merge(.peer\\/${modifier}):has(${normalize(value)}) ~ &`
|
|
413
|
+
: `:merge(.peer):has(${normalize(value)}) ~ &`,
|
|
414
|
+
{ values: {} }
|
|
415
|
+
)
|
|
416
|
+
},
|
|
417
|
+
|
|
395
418
|
ariaVariants: ({ matchVariant, theme }) => {
|
|
396
419
|
matchVariant('aria', (value) => `&[aria-${normalize(value)}]`, { values: theme('aria') ?? {} })
|
|
397
420
|
matchVariant(
|
|
@@ -441,6 +464,10 @@ export let variantPlugins = {
|
|
|
441
464
|
addVariant('contrast-more', '@media (prefers-contrast: more)')
|
|
442
465
|
addVariant('contrast-less', '@media (prefers-contrast: less)')
|
|
443
466
|
},
|
|
467
|
+
|
|
468
|
+
forcedColorsVariants: ({ addVariant }) => {
|
|
469
|
+
addVariant('forced-colors', '@media (forced-colors: active)')
|
|
470
|
+
},
|
|
444
471
|
}
|
|
445
472
|
|
|
446
473
|
let cssTransformValue = [
|
|
@@ -666,6 +693,8 @@ export let corePlugins = {
|
|
|
666
693
|
|
|
667
694
|
float: ({ addUtilities }) => {
|
|
668
695
|
addUtilities({
|
|
696
|
+
'.float-start': { float: 'inline-start' },
|
|
697
|
+
'.float-end': { float: 'inline-end' },
|
|
669
698
|
'.float-right': { float: 'right' },
|
|
670
699
|
'.float-left': { float: 'left' },
|
|
671
700
|
'.float-none': { float: 'none' },
|
|
@@ -674,6 +703,8 @@ export let corePlugins = {
|
|
|
674
703
|
|
|
675
704
|
clear: ({ addUtilities }) => {
|
|
676
705
|
addUtilities({
|
|
706
|
+
'.clear-start': { clear: 'inline-start' },
|
|
707
|
+
'.clear-end': { clear: 'inline-end' },
|
|
677
708
|
'.clear-left': { clear: 'left' },
|
|
678
709
|
'.clear-right': { clear: 'right' },
|
|
679
710
|
'.clear-both': { clear: 'both' },
|
|
@@ -759,6 +790,8 @@ export let corePlugins = {
|
|
|
759
790
|
|
|
760
791
|
aspectRatio: createUtilityPlugin('aspectRatio', [['aspect', ['aspect-ratio']]]),
|
|
761
792
|
|
|
793
|
+
size: createUtilityPlugin('size', [['size', ['width', 'height']]]),
|
|
794
|
+
|
|
762
795
|
height: createUtilityPlugin('height', [['h', ['height']]]),
|
|
763
796
|
maxHeight: createUtilityPlugin('maxHeight', [['max-h', ['maxHeight']]]),
|
|
764
797
|
minHeight: createUtilityPlugin('minHeight', [['min-h', ['minHeight']]]),
|
|
@@ -1109,6 +1142,7 @@ export let corePlugins = {
|
|
|
1109
1142
|
appearance: ({ addUtilities }) => {
|
|
1110
1143
|
addUtilities({
|
|
1111
1144
|
'.appearance-none': { appearance: 'none' },
|
|
1145
|
+
'.appearance-auto': { appearance: 'auto' },
|
|
1112
1146
|
})
|
|
1113
1147
|
},
|
|
1114
1148
|
|
|
@@ -1509,6 +1543,15 @@ export let corePlugins = {
|
|
|
1509
1543
|
})
|
|
1510
1544
|
},
|
|
1511
1545
|
|
|
1546
|
+
textWrap: ({ addUtilities }) => {
|
|
1547
|
+
addUtilities({
|
|
1548
|
+
'.text-wrap': { 'text-wrap': 'wrap' },
|
|
1549
|
+
'.text-nowrap': { 'text-wrap': 'nowrap' },
|
|
1550
|
+
'.text-balance': { 'text-wrap': 'balance' },
|
|
1551
|
+
'.text-pretty': { 'text-wrap': 'pretty' },
|
|
1552
|
+
})
|
|
1553
|
+
},
|
|
1554
|
+
|
|
1512
1555
|
wordBreak: ({ addUtilities }) => {
|
|
1513
1556
|
addUtilities({
|
|
1514
1557
|
'.break-normal': { 'overflow-wrap': 'normal', 'word-break': 'normal' },
|
|
@@ -2852,4 +2895,10 @@ export let corePlugins = {
|
|
|
2852
2895
|
content: createUtilityPlugin('content', [
|
|
2853
2896
|
['content', ['--tw-content', ['content', 'var(--tw-content)']]],
|
|
2854
2897
|
]),
|
|
2898
|
+
forcedColorAdjust: ({ addUtilities }) => {
|
|
2899
|
+
addUtilities({
|
|
2900
|
+
'.forced-color-adjust-auto': { 'forced-color-adjust': 'auto' },
|
|
2901
|
+
'.forced-color-adjust-none': { 'forced-color-adjust': 'none' },
|
|
2902
|
+
})
|
|
2903
|
+
},
|
|
2855
2904
|
}
|
package/src/css/preflight.css
CHANGED
|
@@ -24,16 +24,19 @@
|
|
|
24
24
|
4. Use the user's configured `sans` font-family by default.
|
|
25
25
|
5. Use the user's configured `sans` font-feature-settings by default.
|
|
26
26
|
6. Use the user's configured `sans` font-variation-settings by default.
|
|
27
|
+
7. Disable tap highlights on iOS
|
|
27
28
|
*/
|
|
28
29
|
|
|
29
|
-
html
|
|
30
|
+
html,
|
|
31
|
+
:host {
|
|
30
32
|
line-height: 1.5; /* 1 */
|
|
31
33
|
-webkit-text-size-adjust: 100%; /* 2 */
|
|
32
34
|
-moz-tab-size: 4; /* 3 */
|
|
33
35
|
tab-size: 4; /* 3 */
|
|
34
|
-
font-family: theme('fontFamily.sans', ui-sans-serif, system-ui,
|
|
36
|
+
font-family: theme('fontFamily.sans', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"); /* 4 */
|
|
35
37
|
font-feature-settings: theme('fontFamily.sans[1].fontFeatureSettings', normal); /* 5 */
|
|
36
38
|
font-variation-settings: theme('fontFamily.sans[1].fontVariationSettings', normal); /* 6 */
|
|
39
|
+
-webkit-tap-highlight-color: transparent; /* 7 */
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
/*
|
|
@@ -756,20 +756,23 @@ function resolvePlugins(context, root) {
|
|
|
756
756
|
// TODO: This is a workaround for backwards compatibility, since custom variants
|
|
757
757
|
// were historically sorted before screen/stackable variants.
|
|
758
758
|
let beforeVariants = [
|
|
759
|
+
variantPlugins['childVariant'],
|
|
759
760
|
variantPlugins['pseudoElementVariants'],
|
|
760
761
|
variantPlugins['pseudoClassVariants'],
|
|
762
|
+
variantPlugins['hasVariants'],
|
|
761
763
|
variantPlugins['ariaVariants'],
|
|
762
764
|
variantPlugins['dataVariants'],
|
|
763
765
|
]
|
|
764
766
|
let afterVariants = [
|
|
765
767
|
variantPlugins['supportsVariants'],
|
|
766
|
-
variantPlugins['directionVariants'],
|
|
767
768
|
variantPlugins['reducedMotionVariants'],
|
|
768
769
|
variantPlugins['prefersContrastVariants'],
|
|
769
|
-
variantPlugins['darkVariants'],
|
|
770
770
|
variantPlugins['printVariant'],
|
|
771
771
|
variantPlugins['screenVariants'],
|
|
772
772
|
variantPlugins['orientationVariants'],
|
|
773
|
+
variantPlugins['directionVariants'],
|
|
774
|
+
variantPlugins['darkVariants'],
|
|
775
|
+
variantPlugins['forcedColorsVariants'],
|
|
773
776
|
]
|
|
774
777
|
|
|
775
778
|
return [...corePluginList, ...beforeVariants, ...userPlugins, ...afterVariants, ...layerPlugins]
|
package/stubs/config.full.js
CHANGED
|
@@ -303,13 +303,6 @@ module.exports = {
|
|
|
303
303
|
sans: [
|
|
304
304
|
'ui-sans-serif',
|
|
305
305
|
'system-ui',
|
|
306
|
-
'-apple-system',
|
|
307
|
-
'BlinkMacSystemFont',
|
|
308
|
-
'"Segoe UI"',
|
|
309
|
-
'Roboto',
|
|
310
|
-
'"Helvetica Neue"',
|
|
311
|
-
'Arial',
|
|
312
|
-
'"Noto Sans"',
|
|
313
306
|
'sans-serif',
|
|
314
307
|
'"Apple Color Emoji"',
|
|
315
308
|
'"Segoe UI Emoji"',
|
|
@@ -451,6 +444,12 @@ module.exports = {
|
|
|
451
444
|
'span-4': 'span 4 / span 4',
|
|
452
445
|
'span-5': 'span 5 / span 5',
|
|
453
446
|
'span-6': 'span 6 / span 6',
|
|
447
|
+
'span-7': 'span 7 / span 7',
|
|
448
|
+
'span-8': 'span 8 / span 8',
|
|
449
|
+
'span-9': 'span 9 / span 9',
|
|
450
|
+
'span-10': 'span 10 / span 10',
|
|
451
|
+
'span-11': 'span 11 / span 11',
|
|
452
|
+
'span-12': 'span 12 / span 12',
|
|
454
453
|
'span-full': '1 / -1',
|
|
455
454
|
},
|
|
456
455
|
gridRowEnd: {
|
|
@@ -462,6 +461,12 @@ module.exports = {
|
|
|
462
461
|
5: '5',
|
|
463
462
|
6: '6',
|
|
464
463
|
7: '7',
|
|
464
|
+
8: '8',
|
|
465
|
+
9: '9',
|
|
466
|
+
10: '10',
|
|
467
|
+
11: '11',
|
|
468
|
+
12: '12',
|
|
469
|
+
13: '13',
|
|
465
470
|
},
|
|
466
471
|
gridRowStart: {
|
|
467
472
|
auto: 'auto',
|
|
@@ -472,9 +477,16 @@ module.exports = {
|
|
|
472
477
|
5: '5',
|
|
473
478
|
6: '6',
|
|
474
479
|
7: '7',
|
|
480
|
+
8: '8',
|
|
481
|
+
9: '9',
|
|
482
|
+
10: '10',
|
|
483
|
+
11: '11',
|
|
484
|
+
12: '12',
|
|
485
|
+
13: '13',
|
|
475
486
|
},
|
|
476
487
|
gridTemplateColumns: {
|
|
477
488
|
none: 'none',
|
|
489
|
+
subgrid: 'subgrid',
|
|
478
490
|
1: 'repeat(1, minmax(0, 1fr))',
|
|
479
491
|
2: 'repeat(2, minmax(0, 1fr))',
|
|
480
492
|
3: 'repeat(3, minmax(0, 1fr))',
|
|
@@ -490,12 +502,19 @@ module.exports = {
|
|
|
490
502
|
},
|
|
491
503
|
gridTemplateRows: {
|
|
492
504
|
none: 'none',
|
|
505
|
+
subgrid: 'subgrid',
|
|
493
506
|
1: 'repeat(1, minmax(0, 1fr))',
|
|
494
507
|
2: 'repeat(2, minmax(0, 1fr))',
|
|
495
508
|
3: 'repeat(3, minmax(0, 1fr))',
|
|
496
509
|
4: 'repeat(4, minmax(0, 1fr))',
|
|
497
510
|
5: 'repeat(5, minmax(0, 1fr))',
|
|
498
511
|
6: 'repeat(6, minmax(0, 1fr))',
|
|
512
|
+
7: 'repeat(7, minmax(0, 1fr))',
|
|
513
|
+
8: 'repeat(8, minmax(0, 1fr))',
|
|
514
|
+
9: 'repeat(9, minmax(0, 1fr))',
|
|
515
|
+
10: 'repeat(10, minmax(0, 1fr))',
|
|
516
|
+
11: 'repeat(11, minmax(0, 1fr))',
|
|
517
|
+
12: 'repeat(12, minmax(0, 1fr))',
|
|
499
518
|
},
|
|
500
519
|
height: ({ theme }) => ({
|
|
501
520
|
auto: 'auto',
|
|
@@ -517,6 +536,9 @@ module.exports = {
|
|
|
517
536
|
'5/6': '83.333333%',
|
|
518
537
|
full: '100%',
|
|
519
538
|
screen: '100vh',
|
|
539
|
+
svh: '100svh',
|
|
540
|
+
lvh: '100lvh',
|
|
541
|
+
dvh: '100dvh',
|
|
520
542
|
min: 'min-content',
|
|
521
543
|
max: 'max-content',
|
|
522
544
|
fit: 'fit-content',
|
|
@@ -621,13 +643,16 @@ module.exports = {
|
|
|
621
643
|
none: 'none',
|
|
622
644
|
full: '100%',
|
|
623
645
|
screen: '100vh',
|
|
646
|
+
svh: '100svh',
|
|
647
|
+
lvh: '100lvh',
|
|
648
|
+
dvh: '100dvh',
|
|
624
649
|
min: 'min-content',
|
|
625
650
|
max: 'max-content',
|
|
626
651
|
fit: 'fit-content',
|
|
627
652
|
}),
|
|
628
653
|
maxWidth: ({ theme, breakpoints }) => ({
|
|
654
|
+
...theme('spacing'),
|
|
629
655
|
none: 'none',
|
|
630
|
-
0: '0rem',
|
|
631
656
|
xs: '20rem',
|
|
632
657
|
sm: '24rem',
|
|
633
658
|
md: '28rem',
|
|
@@ -646,21 +671,24 @@ module.exports = {
|
|
|
646
671
|
prose: '65ch',
|
|
647
672
|
...breakpoints(theme('screens')),
|
|
648
673
|
}),
|
|
649
|
-
minHeight: {
|
|
650
|
-
|
|
674
|
+
minHeight: ({ theme }) => ({
|
|
675
|
+
...theme('spacing'),
|
|
651
676
|
full: '100%',
|
|
652
677
|
screen: '100vh',
|
|
678
|
+
svh: '100svh',
|
|
679
|
+
lvh: '100lvh',
|
|
680
|
+
dvh: '100dvh',
|
|
653
681
|
min: 'min-content',
|
|
654
682
|
max: 'max-content',
|
|
655
683
|
fit: 'fit-content',
|
|
656
|
-
},
|
|
657
|
-
minWidth: {
|
|
658
|
-
|
|
684
|
+
}),
|
|
685
|
+
minWidth: ({ theme }) => ({
|
|
686
|
+
...theme('spacing'),
|
|
659
687
|
full: '100%',
|
|
660
688
|
min: 'min-content',
|
|
661
689
|
max: 'max-content',
|
|
662
690
|
fit: 'fit-content',
|
|
663
|
-
},
|
|
691
|
+
}),
|
|
664
692
|
objectPosition: {
|
|
665
693
|
bottom: 'bottom',
|
|
666
694
|
center: 'center',
|
|
@@ -676,15 +704,21 @@ module.exports = {
|
|
|
676
704
|
0: '0',
|
|
677
705
|
5: '0.05',
|
|
678
706
|
10: '0.1',
|
|
707
|
+
15: '0.15',
|
|
679
708
|
20: '0.2',
|
|
680
709
|
25: '0.25',
|
|
681
710
|
30: '0.3',
|
|
711
|
+
35: '0.35',
|
|
682
712
|
40: '0.4',
|
|
713
|
+
45: '0.45',
|
|
683
714
|
50: '0.5',
|
|
715
|
+
55: '0.55',
|
|
684
716
|
60: '0.6',
|
|
717
|
+
65: '0.65',
|
|
685
718
|
70: '0.7',
|
|
686
719
|
75: '0.75',
|
|
687
720
|
80: '0.8',
|
|
721
|
+
85: '0.85',
|
|
688
722
|
90: '0.9',
|
|
689
723
|
95: '0.95',
|
|
690
724
|
100: '1',
|
|
@@ -936,6 +970,40 @@ module.exports = {
|
|
|
936
970
|
'3/4': '75%',
|
|
937
971
|
full: '100%',
|
|
938
972
|
}),
|
|
973
|
+
size: ({ theme }) => ({
|
|
974
|
+
auto: 'auto',
|
|
975
|
+
...theme('spacing'),
|
|
976
|
+
'1/2': '50%',
|
|
977
|
+
'1/3': '33.333333%',
|
|
978
|
+
'2/3': '66.666667%',
|
|
979
|
+
'1/4': '25%',
|
|
980
|
+
'2/4': '50%',
|
|
981
|
+
'3/4': '75%',
|
|
982
|
+
'1/5': '20%',
|
|
983
|
+
'2/5': '40%',
|
|
984
|
+
'3/5': '60%',
|
|
985
|
+
'4/5': '80%',
|
|
986
|
+
'1/6': '16.666667%',
|
|
987
|
+
'2/6': '33.333333%',
|
|
988
|
+
'3/6': '50%',
|
|
989
|
+
'4/6': '66.666667%',
|
|
990
|
+
'5/6': '83.333333%',
|
|
991
|
+
'1/12': '8.333333%',
|
|
992
|
+
'2/12': '16.666667%',
|
|
993
|
+
'3/12': '25%',
|
|
994
|
+
'4/12': '33.333333%',
|
|
995
|
+
'5/12': '41.666667%',
|
|
996
|
+
'6/12': '50%',
|
|
997
|
+
'7/12': '58.333333%',
|
|
998
|
+
'8/12': '66.666667%',
|
|
999
|
+
'9/12': '75%',
|
|
1000
|
+
'10/12': '83.333333%',
|
|
1001
|
+
'11/12': '91.666667%',
|
|
1002
|
+
full: '100%',
|
|
1003
|
+
min: 'min-content',
|
|
1004
|
+
max: 'max-content',
|
|
1005
|
+
fit: 'fit-content',
|
|
1006
|
+
}),
|
|
939
1007
|
width: ({ theme }) => ({
|
|
940
1008
|
auto: 'auto',
|
|
941
1009
|
...theme('spacing'),
|
|
@@ -967,6 +1035,9 @@ module.exports = {
|
|
|
967
1035
|
'11/12': '91.666667%',
|
|
968
1036
|
full: '100%',
|
|
969
1037
|
screen: '100vw',
|
|
1038
|
+
svw: '100svw',
|
|
1039
|
+
lvw: '100lvw',
|
|
1040
|
+
dvw: '100dvw',
|
|
970
1041
|
min: 'min-content',
|
|
971
1042
|
max: 'max-content',
|
|
972
1043
|
fit: 'fit-content',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type CorePluginList = 'preflight' | 'container' | 'accessibility' | 'pointerEvents' | 'visibility' | 'position' | 'inset' | 'isolation' | 'zIndex' | 'order' | 'gridColumn' | 'gridColumnStart' | 'gridColumnEnd' | 'gridRow' | 'gridRowStart' | 'gridRowEnd' | 'float' | 'clear' | 'margin' | 'boxSizing' | 'lineClamp' | 'display' | 'aspectRatio' | 'height' | 'maxHeight' | 'minHeight' | 'width' | 'minWidth' | 'maxWidth' | 'flex' | 'flexShrink' | 'flexGrow' | 'flexBasis' | 'tableLayout' | 'captionSide' | 'borderCollapse' | 'borderSpacing' | 'transformOrigin' | 'translate' | 'rotate' | 'skew' | 'scale' | 'transform' | 'animation' | 'cursor' | 'touchAction' | 'userSelect' | 'resize' | 'scrollSnapType' | 'scrollSnapAlign' | 'scrollSnapStop' | 'scrollMargin' | 'scrollPadding' | 'listStylePosition' | 'listStyleType' | 'listStyleImage' | 'appearance' | 'columns' | 'breakBefore' | 'breakInside' | 'breakAfter' | 'gridAutoColumns' | 'gridAutoFlow' | 'gridAutoRows' | 'gridTemplateColumns' | 'gridTemplateRows' | 'flexDirection' | 'flexWrap' | 'placeContent' | 'placeItems' | 'alignContent' | 'alignItems' | 'justifyContent' | 'justifyItems' | 'gap' | 'space' | 'divideWidth' | 'divideStyle' | 'divideColor' | 'divideOpacity' | 'placeSelf' | 'alignSelf' | 'justifySelf' | 'overflow' | 'overscrollBehavior' | 'scrollBehavior' | 'textOverflow' | 'hyphens' | 'whitespace' | 'wordBreak' | 'borderRadius' | 'borderWidth' | 'borderStyle' | 'borderColor' | 'borderOpacity' | 'backgroundColor' | 'backgroundOpacity' | 'backgroundImage' | 'gradientColorStops' | 'boxDecorationBreak' | 'backgroundSize' | 'backgroundAttachment' | 'backgroundClip' | 'backgroundPosition' | 'backgroundRepeat' | 'backgroundOrigin' | 'fill' | 'stroke' | 'strokeWidth' | 'objectFit' | 'objectPosition' | 'padding' | 'textAlign' | 'textIndent' | 'verticalAlign' | 'fontFamily' | 'fontSize' | 'fontWeight' | 'textTransform' | 'fontStyle' | 'fontVariantNumeric' | 'lineHeight' | 'letterSpacing' | 'textColor' | 'textOpacity' | 'textDecoration' | 'textDecorationColor' | 'textDecorationStyle' | 'textDecorationThickness' | 'textUnderlineOffset' | 'fontSmoothing' | 'placeholderColor' | 'placeholderOpacity' | 'caretColor' | 'accentColor' | 'opacity' | 'backgroundBlendMode' | 'mixBlendMode' | 'boxShadow' | 'boxShadowColor' | 'outlineStyle' | 'outlineWidth' | 'outlineOffset' | 'outlineColor' | 'ringWidth' | 'ringColor' | 'ringOpacity' | 'ringOffsetWidth' | 'ringOffsetColor' | 'blur' | 'brightness' | 'contrast' | 'dropShadow' | 'grayscale' | 'hueRotate' | 'invert' | 'saturate' | 'sepia' | 'filter' | 'backdropBlur' | 'backdropBrightness' | 'backdropContrast' | 'backdropGrayscale' | 'backdropHueRotate' | 'backdropInvert' | 'backdropOpacity' | 'backdropSaturate' | 'backdropSepia' | 'backdropFilter' | 'transitionProperty' | 'transitionDelay' | 'transitionDuration' | 'transitionTimingFunction' | 'willChange' | 'content'
|
|
1
|
+
export type CorePluginList = 'preflight' | 'container' | 'accessibility' | 'pointerEvents' | 'visibility' | 'position' | 'inset' | 'isolation' | 'zIndex' | 'order' | 'gridColumn' | 'gridColumnStart' | 'gridColumnEnd' | 'gridRow' | 'gridRowStart' | 'gridRowEnd' | 'float' | 'clear' | 'margin' | 'boxSizing' | 'lineClamp' | 'display' | 'aspectRatio' | 'size' | 'height' | 'maxHeight' | 'minHeight' | 'width' | 'minWidth' | 'maxWidth' | 'flex' | 'flexShrink' | 'flexGrow' | 'flexBasis' | 'tableLayout' | 'captionSide' | 'borderCollapse' | 'borderSpacing' | 'transformOrigin' | 'translate' | 'rotate' | 'skew' | 'scale' | 'transform' | 'animation' | 'cursor' | 'touchAction' | 'userSelect' | 'resize' | 'scrollSnapType' | 'scrollSnapAlign' | 'scrollSnapStop' | 'scrollMargin' | 'scrollPadding' | 'listStylePosition' | 'listStyleType' | 'listStyleImage' | 'appearance' | 'columns' | 'breakBefore' | 'breakInside' | 'breakAfter' | 'gridAutoColumns' | 'gridAutoFlow' | 'gridAutoRows' | 'gridTemplateColumns' | 'gridTemplateRows' | 'flexDirection' | 'flexWrap' | 'placeContent' | 'placeItems' | 'alignContent' | 'alignItems' | 'justifyContent' | 'justifyItems' | 'gap' | 'space' | 'divideWidth' | 'divideStyle' | 'divideColor' | 'divideOpacity' | 'placeSelf' | 'alignSelf' | 'justifySelf' | 'overflow' | 'overscrollBehavior' | 'scrollBehavior' | 'textOverflow' | 'hyphens' | 'whitespace' | 'textWrap' | 'wordBreak' | 'borderRadius' | 'borderWidth' | 'borderStyle' | 'borderColor' | 'borderOpacity' | 'backgroundColor' | 'backgroundOpacity' | 'backgroundImage' | 'gradientColorStops' | 'boxDecorationBreak' | 'backgroundSize' | 'backgroundAttachment' | 'backgroundClip' | 'backgroundPosition' | 'backgroundRepeat' | 'backgroundOrigin' | 'fill' | 'stroke' | 'strokeWidth' | 'objectFit' | 'objectPosition' | 'padding' | 'textAlign' | 'textIndent' | 'verticalAlign' | 'fontFamily' | 'fontSize' | 'fontWeight' | 'textTransform' | 'fontStyle' | 'fontVariantNumeric' | 'lineHeight' | 'letterSpacing' | 'textColor' | 'textOpacity' | 'textDecoration' | 'textDecorationColor' | 'textDecorationStyle' | 'textDecorationThickness' | 'textUnderlineOffset' | 'fontSmoothing' | 'placeholderColor' | 'placeholderOpacity' | 'caretColor' | 'accentColor' | 'opacity' | 'backgroundBlendMode' | 'mixBlendMode' | 'boxShadow' | 'boxShadowColor' | 'outlineStyle' | 'outlineWidth' | 'outlineOffset' | 'outlineColor' | 'ringWidth' | 'ringColor' | 'ringOpacity' | 'ringOffsetWidth' | 'ringOffsetColor' | 'blur' | 'brightness' | 'contrast' | 'dropShadow' | 'grayscale' | 'hueRotate' | 'invert' | 'saturate' | 'sepia' | 'filter' | 'backdropBlur' | 'backdropBrightness' | 'backdropContrast' | 'backdropGrayscale' | 'backdropHueRotate' | 'backdropInvert' | 'backdropOpacity' | 'backdropSaturate' | 'backdropSepia' | 'backdropFilter' | 'transitionProperty' | 'transitionDelay' | 'transitionDuration' | 'transitionTimingFunction' | 'willChange' | 'content' | 'forcedColorAdjust'
|
|
@@ -206,16 +206,38 @@ export type DefaultTheme = {
|
|
|
206
206
|
string
|
|
207
207
|
>
|
|
208
208
|
gridRow: Record<
|
|
209
|
-
|
|
209
|
+
| 'auto'
|
|
210
|
+
| 'span-1'
|
|
211
|
+
| 'span-2'
|
|
212
|
+
| 'span-3'
|
|
213
|
+
| 'span-4'
|
|
214
|
+
| 'span-5'
|
|
215
|
+
| 'span-6'
|
|
216
|
+
| 'span-7'
|
|
217
|
+
| 'span-8'
|
|
218
|
+
| 'span-9'
|
|
219
|
+
| 'span-10'
|
|
220
|
+
| 'span-11'
|
|
221
|
+
| 'span-12'
|
|
222
|
+
| 'span-full',
|
|
223
|
+
string
|
|
224
|
+
>
|
|
225
|
+
gridRowEnd: Record<
|
|
226
|
+
'1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | 'auto',
|
|
227
|
+
string
|
|
228
|
+
>
|
|
229
|
+
gridRowStart: Record<
|
|
230
|
+
'1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | 'auto',
|
|
210
231
|
string
|
|
211
232
|
>
|
|
212
|
-
gridRowEnd: Record<'1' | '2' | '3' | '4' | '5' | '6' | '7' | 'auto', string>
|
|
213
|
-
gridRowStart: Record<'1' | '2' | '3' | '4' | '5' | '6' | '7' | 'auto', string>
|
|
214
233
|
gridTemplateColumns: Record<
|
|
215
|
-
'1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | 'none',
|
|
234
|
+
'1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | 'none' | 'subgrid',
|
|
235
|
+
string
|
|
236
|
+
>
|
|
237
|
+
gridTemplateRows: Record<
|
|
238
|
+
'1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | 'none' | 'subgrid',
|
|
216
239
|
string
|
|
217
240
|
>
|
|
218
|
-
gridTemplateRows: Record<'1' | '2' | '3' | '4' | '5' | '6' | 'none', string>
|
|
219
241
|
hueRotate: Record<'0' | '15' | '30' | '60' | '90' | '180', string>
|
|
220
242
|
invert: Record<'0' | 'DEFAULT', string>
|
|
221
243
|
keyframes: Record<'spin' | 'ping' | 'pulse' | 'bounce', Record<string, CSSDeclarationList>>
|
|
@@ -240,8 +262,6 @@ export type DefaultTheme = {
|
|
|
240
262
|
listStyleType: Record<'none' | 'disc' | 'decimal', string>
|
|
241
263
|
listStyleImage: Record<'none', string>
|
|
242
264
|
lineClamp: Record<'1' | '2' | '3' | '4' | '5' | '6', string>
|
|
243
|
-
minHeight: Record<'0' | 'full' | 'screen' | 'min' | 'max' | 'fit', string>
|
|
244
|
-
minWidth: Record<'0' | 'full' | 'min' | 'max' | 'fit', string>
|
|
245
265
|
objectPosition: Record<
|
|
246
266
|
| 'bottom'
|
|
247
267
|
| 'center'
|
|
@@ -258,15 +278,21 @@ export type DefaultTheme = {
|
|
|
258
278
|
| '0'
|
|
259
279
|
| '5'
|
|
260
280
|
| '10'
|
|
281
|
+
| '15'
|
|
261
282
|
| '20'
|
|
262
283
|
| '25'
|
|
263
284
|
| '30'
|
|
285
|
+
| '35'
|
|
264
286
|
| '40'
|
|
287
|
+
| '45'
|
|
265
288
|
| '50'
|
|
289
|
+
| '55'
|
|
266
290
|
| '60'
|
|
291
|
+
| '65'
|
|
267
292
|
| '70'
|
|
268
293
|
| '75'
|
|
269
294
|
| '80'
|
|
295
|
+
| '85'
|
|
270
296
|
| '90'
|
|
271
297
|
| '95'
|
|
272
298
|
| '100',
|