tailwindcss 0.0.0-oxide-insiders.04c5b22 → 0.0.0-oxide-insiders.aff715e

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.
@@ -40,7 +40,6 @@ const _default = [
40
40
  "flexGrow",
41
41
  "flexBasis",
42
42
  "tableLayout",
43
- "captionSide",
44
43
  "borderCollapse",
45
44
  "borderSpacing",
46
45
  "transformOrigin",
@@ -92,7 +91,6 @@ const _default = [
92
91
  "overscrollBehavior",
93
92
  "scrollBehavior",
94
93
  "textOverflow",
95
- "hyphens",
96
94
  "whitespace",
97
95
  "wordBreak",
98
96
  "borderRadius",
@@ -15,7 +15,6 @@ _export(exports, {
15
15
  const _fs = /*#__PURE__*/ _interopRequireDefault(require("fs"));
16
16
  const _path = /*#__PURE__*/ _interopRequireWildcard(require("path"));
17
17
  const _postcss = /*#__PURE__*/ _interopRequireDefault(require("postcss"));
18
- const _sharedState = require("./lib/sharedState");
19
18
  const _createUtilityPlugin = /*#__PURE__*/ _interopRequireDefault(require("./util/createUtilityPlugin"));
20
19
  const _buildMediaQuery = /*#__PURE__*/ _interopRequireDefault(require("./util/buildMediaQuery"));
21
20
  const _escapeClassName = /*#__PURE__*/ _interopRequireDefault(require("./util/escapeClassName"));
@@ -669,18 +668,6 @@ let corePlugins = {
669
668
  ]
670
669
  ],
671
670
  [
672
- [
673
- "start",
674
- [
675
- "inset-inline-start"
676
- ]
677
- ],
678
- [
679
- "end",
680
- [
681
- "inset-inline-end"
682
- ]
683
- ],
684
671
  [
685
672
  "top",
686
673
  [
@@ -833,18 +820,6 @@ let corePlugins = {
833
820
  ]
834
821
  ],
835
822
  [
836
- [
837
- "ms",
838
- [
839
- "margin-inline-start"
840
- ]
841
- ],
842
- [
843
- "me",
844
- [
845
- "margin-inline-end"
846
- ]
847
- ],
848
823
  [
849
824
  "mt",
850
825
  [
@@ -1053,16 +1028,6 @@ let corePlugins = {
1053
1028
  }
1054
1029
  });
1055
1030
  },
1056
- captionSide: ({ addUtilities })=>{
1057
- addUtilities({
1058
- ".caption-top": {
1059
- "caption-side": "top"
1060
- },
1061
- ".caption-bottom": {
1062
- "caption-side": "bottom"
1063
- }
1064
- });
1065
- },
1066
1031
  borderCollapse: ({ addUtilities })=>{
1067
1032
  addUtilities({
1068
1033
  ".border-collapse": {
@@ -1469,18 +1434,6 @@ let corePlugins = {
1469
1434
  ]
1470
1435
  ],
1471
1436
  [
1472
- [
1473
- "scroll-ms",
1474
- [
1475
- "scroll-margin-inline-start"
1476
- ]
1477
- ],
1478
- [
1479
- "scroll-me",
1480
- [
1481
- "scroll-margin-inline-end"
1482
- ]
1483
- ],
1484
1437
  [
1485
1438
  "scroll-mt",
1486
1439
  [
@@ -1533,18 +1486,6 @@ let corePlugins = {
1533
1486
  ]
1534
1487
  ],
1535
1488
  [
1536
- [
1537
- "scroll-ps",
1538
- [
1539
- "scroll-padding-inline-start"
1540
- ]
1541
- ],
1542
- [
1543
- "scroll-pe",
1544
- [
1545
- "scroll-padding-inline-end"
1546
- ]
1547
- ],
1548
1489
  [
1549
1490
  "scroll-pt",
1550
1491
  [
@@ -1911,15 +1852,6 @@ let corePlugins = {
1911
1852
  matchUtilities({
1912
1853
  "space-x": (value)=>{
1913
1854
  value = value === "0" ? "0px" : value;
1914
- if (_sharedState.env.OXIDE) {
1915
- return {
1916
- "& > :not([hidden]) ~ :not([hidden])": {
1917
- "--tw-space-x-reverse": "0",
1918
- "margin-inline-end": `calc(${value} * var(--tw-space-x-reverse))`,
1919
- "margin-inline-start": `calc(${value} * calc(1 - var(--tw-space-x-reverse)))`
1920
- }
1921
- };
1922
- }
1923
1855
  return {
1924
1856
  "& > :not([hidden]) ~ :not([hidden])": {
1925
1857
  "--tw-space-x-reverse": "0",
@@ -1955,16 +1887,6 @@ let corePlugins = {
1955
1887
  matchUtilities({
1956
1888
  "divide-x": (value)=>{
1957
1889
  value = value === "0" ? "0px" : value;
1958
- if (_sharedState.env.OXIDE) {
1959
- return {
1960
- "& > :not([hidden]) ~ :not([hidden])": {
1961
- "@defaults border-width": {},
1962
- "--tw-divide-x-reverse": "0",
1963
- "border-inline-end-width": `calc(${value} * var(--tw-divide-x-reverse))`,
1964
- "border-inline-start-width": `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`
1965
- }
1966
- };
1967
- }
1968
1890
  return {
1969
1891
  "& > :not([hidden]) ~ :not([hidden])": {
1970
1892
  "@defaults border-width": {},
@@ -2230,19 +2152,6 @@ let corePlugins = {
2230
2152
  }
2231
2153
  });
2232
2154
  },
2233
- hyphens: ({ addUtilities })=>{
2234
- addUtilities({
2235
- ".hyphens-none": {
2236
- hyphens: "none"
2237
- },
2238
- ".hyphens-manual": {
2239
- hyphens: "manual"
2240
- },
2241
- ".hyphens-auto": {
2242
- hyphens: "auto"
2243
- }
2244
- });
2245
- },
2246
2155
  whitespace: ({ addUtilities })=>{
2247
2156
  addUtilities({
2248
2157
  ".whitespace-normal": {
@@ -2287,20 +2196,6 @@ let corePlugins = {
2287
2196
  ]
2288
2197
  ],
2289
2198
  [
2290
- [
2291
- "rounded-s",
2292
- [
2293
- "border-start-start-radius",
2294
- "border-end-start-radius"
2295
- ]
2296
- ],
2297
- [
2298
- "rounded-e",
2299
- [
2300
- "border-start-end-radius",
2301
- "border-end-end-radius"
2302
- ]
2303
- ],
2304
2199
  [
2305
2200
  "rounded-t",
2306
2201
  [
@@ -2331,30 +2226,6 @@ let corePlugins = {
2331
2226
  ]
2332
2227
  ],
2333
2228
  [
2334
- [
2335
- "rounded-ss",
2336
- [
2337
- "border-start-start-radius"
2338
- ]
2339
- ],
2340
- [
2341
- "rounded-se",
2342
- [
2343
- "border-start-end-radius"
2344
- ]
2345
- ],
2346
- [
2347
- "rounded-ee",
2348
- [
2349
- "border-end-end-radius"
2350
- ]
2351
- ],
2352
- [
2353
- "rounded-es",
2354
- [
2355
- "border-end-start-radius"
2356
- ]
2357
- ],
2358
2229
  [
2359
2230
  "rounded-tl",
2360
2231
  [
@@ -2417,26 +2288,6 @@ let corePlugins = {
2417
2288
  ]
2418
2289
  ],
2419
2290
  [
2420
- [
2421
- "border-s",
2422
- [
2423
- [
2424
- "@defaults border-width",
2425
- {}
2426
- ],
2427
- "border-inline-start-width"
2428
- ]
2429
- ],
2430
- [
2431
- "border-e",
2432
- [
2433
- [
2434
- "@defaults border-width",
2435
- {}
2436
- ],
2437
- "border-inline-end-width"
2438
- ]
2439
- ],
2440
2291
  [
2441
2292
  "border-t",
2442
2293
  [
@@ -2568,30 +2419,6 @@ let corePlugins = {
2568
2419
  ]
2569
2420
  });
2570
2421
  matchUtilities({
2571
- "border-s": (value)=>{
2572
- if (!corePlugins("borderOpacity")) {
2573
- return {
2574
- "border-inline-start-color": (0, _toColorValue.default)(value)
2575
- };
2576
- }
2577
- return (0, _withAlphaVariable.default)({
2578
- color: value,
2579
- property: "border-inline-start-color",
2580
- variable: "--tw-border-opacity"
2581
- });
2582
- },
2583
- "border-e": (value)=>{
2584
- if (!corePlugins("borderOpacity")) {
2585
- return {
2586
- "border-inline-end-color": (0, _toColorValue.default)(value)
2587
- };
2588
- }
2589
- return (0, _withAlphaVariable.default)({
2590
- color: value,
2591
- property: "border-inline-end-color",
2592
- variable: "--tw-border-opacity"
2593
- });
2594
- },
2595
2422
  "border-t": (value)=>{
2596
2423
  if (!corePlugins("borderOpacity")) {
2597
2424
  return {
@@ -2947,18 +2774,6 @@ let corePlugins = {
2947
2774
  ]
2948
2775
  ],
2949
2776
  [
2950
- [
2951
- "ps",
2952
- [
2953
- "padding-inline-start"
2954
- ]
2955
- ],
2956
- [
2957
- "pe",
2958
- [
2959
- "padding-inline-end"
2960
- ]
2961
- ],
2962
2777
  [
2963
2778
  "pt",
2964
2779
  [
@@ -3056,14 +2871,11 @@ let corePlugins = {
3056
2871
  let [families, options = {}] = Array.isArray(value) && (0, _isPlainObject.default)(value[1]) ? value : [
3057
2872
  value
3058
2873
  ];
3059
- let { fontFeatureSettings , fontVariationSettings } = options;
2874
+ let { fontFeatureSettings } = options;
3060
2875
  return {
3061
2876
  "font-family": Array.isArray(families) ? families.join(", ") : families,
3062
2877
  ...fontFeatureSettings === undefined ? {} : {
3063
2878
  "font-feature-settings": fontFeatureSettings
3064
- },
3065
- ...fontVariationSettings === undefined ? {} : {
3066
- "font-variation-settings": fontVariationSettings
3067
2879
  }
3068
2880
  };
3069
2881
  }
@@ -3078,16 +2890,10 @@ let corePlugins = {
3078
2890
  },
3079
2891
  fontSize: ({ matchUtilities , theme })=>{
3080
2892
  matchUtilities({
3081
- text: (value, { modifier })=>{
2893
+ text: (value)=>{
3082
2894
  let [fontSize, options] = Array.isArray(value) ? value : [
3083
2895
  value
3084
2896
  ];
3085
- if (modifier) {
3086
- return {
3087
- "font-size": fontSize,
3088
- "line-height": modifier
3089
- };
3090
- }
3091
2897
  let { lineHeight , letterSpacing , fontWeight } = (0, _isPlainObject.default)(options) ? options : {
3092
2898
  lineHeight: options
3093
2899
  };
@@ -3106,7 +2912,6 @@ let corePlugins = {
3106
2912
  }
3107
2913
  }, {
3108
2914
  values: theme("fontSize"),
3109
- modifiers: theme("lineHeight"),
3110
2915
  type: [
3111
2916
  "absolute-size",
3112
2917
  "relative-size",
@@ -23,7 +23,6 @@
23
23
  3. Use a more readable tab size.
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
- 6. Use the user's configured `sans` font-variation-settings by default.
27
26
  */
28
27
 
29
28
  html {
@@ -33,7 +32,6 @@ html {
33
32
  tab-size: 4; /* 3 */
34
33
  font-family: theme('fontFamily.sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"); /* 4 */
35
34
  font-feature-settings: theme('fontFamily.sans[1].fontFeatureSettings', normal); /* 5 */
36
- font-variation-settings: theme('fontFamily.sans[1].fontVariationSettings', normal); /* 6 */
37
35
  }
38
36
 
39
37
  /*
@@ -41,9 +41,6 @@ function isCSSFunction(value) {
41
41
  const placeholder = "--tw-placeholder";
42
42
  const placeholderRe = new RegExp(placeholder, "g");
43
43
  function normalize(value, isRoot = true) {
44
- if (value.startsWith("--")) {
45
- return `var(${value})`;
46
- }
47
44
  // Keep raw strings if it starts with `url(`
48
45
  if (value.includes("url(")) {
49
46
  return value.split(/(url\(.*?\))/g).filter(Boolean).map((part)=>{
@@ -123,13 +123,6 @@ function parseColorFormat(value) {
123
123
  }
124
124
  return value;
125
125
  }
126
- function unwrapArbitraryModifier(modifier) {
127
- modifier = modifier.slice(1, -1);
128
- if (modifier.startsWith("--")) {
129
- modifier = `var(${modifier})`;
130
- }
131
- return modifier;
132
- }
133
126
  function asColor(modifier, options = {}, { tailwindConfig ={} } = {}) {
134
127
  var _options_values;
135
128
  if (((_options_values = options.values) === null || _options_values === void 0 ? void 0 : _options_values[modifier]) !== undefined) {
@@ -148,7 +141,7 @@ function asColor(modifier, options = {}, { tailwindConfig ={} } = {}) {
148
141
  }
149
142
  normalizedColor = parseColorFormat(normalizedColor);
150
143
  if (isArbitraryValue(alpha)) {
151
- return (0, _withAlphaVariable.withAlphaValue)(normalizedColor, unwrapArbitraryModifier(alpha));
144
+ return (0, _withAlphaVariable.withAlphaValue)(normalizedColor, alpha.slice(1, -1));
152
145
  }
153
146
  if (((_tailwindConfig_theme = tailwindConfig.theme) === null || _tailwindConfig_theme === void 0 ? void 0 : (_tailwindConfig_theme_opacity = _tailwindConfig_theme.opacity) === null || _tailwindConfig_theme_opacity === void 0 ? void 0 : _tailwindConfig_theme_opacity[alpha]) === undefined) {
154
147
  return undefined;
@@ -263,7 +256,7 @@ function* getMatchingTypes(types, rawModifier, options, tailwindConfig) {
263
256
  if (configValue !== null) {
264
257
  utilityModifier = configValue;
265
258
  } else if (isArbitraryValue(utilityModifier)) {
266
- utilityModifier = unwrapArbitraryModifier(utilityModifier);
259
+ utilityModifier = utilityModifier.slice(1, -1);
267
260
  }
268
261
  }
269
262
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "0.0.0-oxide-insiders.04c5b22",
3
+ "version": "0.0.0-oxide-insiders.aff715e",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -70,7 +70,7 @@
70
70
  "postcss": "^8.0.9"
71
71
  },
72
72
  "dependencies": {
73
- "@tailwindcss/oxide": "0.0.0-oxide-insiders.04c5b22",
73
+ "@tailwindcss/oxide": "0.0.0-oxide-insiders.aff715e",
74
74
  "arg": "^5.0.2",
75
75
  "browserslist": "^4.21.5",
76
76
  "chokidar": "^3.5.3",
@@ -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","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","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","display","aspectRatio","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","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","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,7 +1,6 @@
1
1
  import fs from 'fs'
2
2
  import * as path from 'path'
3
3
  import postcss from 'postcss'
4
- import { env } from './lib/sharedState'
5
4
  import createUtilityPlugin from './util/createUtilityPlugin'
6
5
  import buildMediaQuery from './util/buildMediaQuery'
7
6
  import escapeClassName from './util/escapeClassName'
@@ -647,8 +646,6 @@ export let corePlugins = {
647
646
  ['inset-y', ['top', 'bottom']],
648
647
  ],
649
648
  [
650
- ['start', ['inset-inline-start']],
651
- ['end', ['inset-inline-end']],
652
649
  ['top', ['top']],
653
650
  ['right', ['right']],
654
651
  ['bottom', ['bottom']],
@@ -700,8 +697,6 @@ export let corePlugins = {
700
697
  ['my', ['margin-top', 'margin-bottom']],
701
698
  ],
702
699
  [
703
- ['ms', ['margin-inline-start']],
704
- ['me', ['margin-inline-end']],
705
700
  ['mt', ['margin-top']],
706
701
  ['mr', ['margin-right']],
707
702
  ['mb', ['margin-bottom']],
@@ -772,13 +767,6 @@ export let corePlugins = {
772
767
  })
773
768
  },
774
769
 
775
- captionSide: ({ addUtilities }) => {
776
- addUtilities({
777
- '.caption-top': { 'caption-side': 'top' },
778
- '.caption-bottom': { 'caption-side': 'bottom' },
779
- })
780
- },
781
-
782
770
  borderCollapse: ({ addUtilities }) => {
783
771
  addUtilities({
784
772
  '.border-collapse': { 'border-collapse': 'collapse' },
@@ -1057,8 +1045,6 @@ export let corePlugins = {
1057
1045
  ['scroll-my', ['scroll-margin-top', 'scroll-margin-bottom']],
1058
1046
  ],
1059
1047
  [
1060
- ['scroll-ms', ['scroll-margin-inline-start']],
1061
- ['scroll-me', ['scroll-margin-inline-end']],
1062
1048
  ['scroll-mt', ['scroll-margin-top']],
1063
1049
  ['scroll-mr', ['scroll-margin-right']],
1064
1050
  ['scroll-mb', ['scroll-margin-bottom']],
@@ -1075,8 +1061,6 @@ export let corePlugins = {
1075
1061
  ['scroll-py', ['scroll-padding-top', 'scroll-padding-bottom']],
1076
1062
  ],
1077
1063
  [
1078
- ['scroll-ps', ['scroll-padding-inline-start']],
1079
- ['scroll-pe', ['scroll-padding-inline-end']],
1080
1064
  ['scroll-pt', ['scroll-padding-top']],
1081
1065
  ['scroll-pr', ['scroll-padding-right']],
1082
1066
  ['scroll-pb', ['scroll-padding-bottom']],
@@ -1250,16 +1234,6 @@ export let corePlugins = {
1250
1234
  'space-x': (value) => {
1251
1235
  value = value === '0' ? '0px' : value
1252
1236
 
1253
- if (env.OXIDE) {
1254
- return {
1255
- '& > :not([hidden]) ~ :not([hidden])': {
1256
- '--tw-space-x-reverse': '0',
1257
- 'margin-inline-end': `calc(${value} * var(--tw-space-x-reverse))`,
1258
- 'margin-inline-start': `calc(${value} * calc(1 - var(--tw-space-x-reverse)))`,
1259
- },
1260
- }
1261
- }
1262
-
1263
1237
  return {
1264
1238
  '& > :not([hidden]) ~ :not([hidden])': {
1265
1239
  '--tw-space-x-reverse': '0',
@@ -1295,17 +1269,6 @@ export let corePlugins = {
1295
1269
  'divide-x': (value) => {
1296
1270
  value = value === '0' ? '0px' : value
1297
1271
 
1298
- if (env.OXIDE) {
1299
- return {
1300
- '& > :not([hidden]) ~ :not([hidden])': {
1301
- '@defaults border-width': {},
1302
- '--tw-divide-x-reverse': '0',
1303
- 'border-inline-end-width': `calc(${value} * var(--tw-divide-x-reverse))`,
1304
- 'border-inline-start-width': `calc(${value} * calc(1 - var(--tw-divide-x-reverse)))`,
1305
- },
1306
- }
1307
- }
1308
-
1309
1272
  return {
1310
1273
  '& > :not([hidden]) ~ :not([hidden])': {
1311
1274
  '@defaults border-width': {},
@@ -1473,14 +1436,6 @@ export let corePlugins = {
1473
1436
  })
1474
1437
  },
1475
1438
 
1476
- hyphens: ({ addUtilities }) => {
1477
- addUtilities({
1478
- '.hyphens-none': { hyphens: 'none' },
1479
- '.hyphens-manual': { hyphens: 'manual' },
1480
- '.hyphens-auto': { hyphens: 'auto' },
1481
- })
1482
- },
1483
-
1484
1439
  whitespace: ({ addUtilities }) => {
1485
1440
  addUtilities({
1486
1441
  '.whitespace-normal': { 'white-space': 'normal' },
@@ -1503,18 +1458,12 @@ export let corePlugins = {
1503
1458
  borderRadius: createUtilityPlugin('borderRadius', [
1504
1459
  ['rounded', ['border-radius']],
1505
1460
  [
1506
- ['rounded-s', ['border-start-start-radius', 'border-end-start-radius']],
1507
- ['rounded-e', ['border-start-end-radius', 'border-end-end-radius']],
1508
1461
  ['rounded-t', ['border-top-left-radius', 'border-top-right-radius']],
1509
1462
  ['rounded-r', ['border-top-right-radius', 'border-bottom-right-radius']],
1510
1463
  ['rounded-b', ['border-bottom-right-radius', 'border-bottom-left-radius']],
1511
1464
  ['rounded-l', ['border-top-left-radius', 'border-bottom-left-radius']],
1512
1465
  ],
1513
1466
  [
1514
- ['rounded-ss', ['border-start-start-radius']],
1515
- ['rounded-se', ['border-start-end-radius']],
1516
- ['rounded-ee', ['border-end-end-radius']],
1517
- ['rounded-es', ['border-end-start-radius']],
1518
1467
  ['rounded-tl', ['border-top-left-radius']],
1519
1468
  ['rounded-tr', ['border-top-right-radius']],
1520
1469
  ['rounded-br', ['border-bottom-right-radius']],
@@ -1531,8 +1480,6 @@ export let corePlugins = {
1531
1480
  ['border-y', [['@defaults border-width', {}], 'border-top-width', 'border-bottom-width']],
1532
1481
  ],
1533
1482
  [
1534
- ['border-s', [['@defaults border-width', {}], 'border-inline-start-width']],
1535
- ['border-e', [['@defaults border-width', {}], 'border-inline-end-width']],
1536
1483
  ['border-t', [['@defaults border-width', {}], 'border-top-width']],
1537
1484
  ['border-r', [['@defaults border-width', {}], 'border-right-width']],
1538
1485
  ['border-b', [['@defaults border-width', {}], 'border-bottom-width']],
@@ -1615,32 +1562,6 @@ export let corePlugins = {
1615
1562
 
1616
1563
  matchUtilities(
1617
1564
  {
1618
- 'border-s': (value) => {
1619
- if (!corePlugins('borderOpacity')) {
1620
- return {
1621
- 'border-inline-start-color': toColorValue(value),
1622
- }
1623
- }
1624
-
1625
- return withAlphaVariable({
1626
- color: value,
1627
- property: 'border-inline-start-color',
1628
- variable: '--tw-border-opacity',
1629
- })
1630
- },
1631
- 'border-e': (value) => {
1632
- if (!corePlugins('borderOpacity')) {
1633
- return {
1634
- 'border-inline-end-color': toColorValue(value),
1635
- }
1636
- }
1637
-
1638
- return withAlphaVariable({
1639
- color: value,
1640
- property: 'border-inline-end-color',
1641
- variable: '--tw-border-opacity',
1642
- })
1643
- },
1644
1565
  'border-t': (value) => {
1645
1566
  if (!corePlugins('borderOpacity')) {
1646
1567
  return {
@@ -1877,8 +1798,6 @@ export let corePlugins = {
1877
1798
  ['py', ['padding-top', 'padding-bottom']],
1878
1799
  ],
1879
1800
  [
1880
- ['ps', ['padding-inline-start']],
1881
- ['pe', ['padding-inline-end']],
1882
1801
  ['pt', ['padding-top']],
1883
1802
  ['pr', ['padding-right']],
1884
1803
  ['pb', ['padding-bottom']],
@@ -1922,16 +1841,13 @@ export let corePlugins = {
1922
1841
  font: (value) => {
1923
1842
  let [families, options = {}] =
1924
1843
  Array.isArray(value) && isPlainObject(value[1]) ? value : [value]
1925
- let { fontFeatureSettings, fontVariationSettings } = options
1844
+ let { fontFeatureSettings } = options
1926
1845
 
1927
1846
  return {
1928
1847
  'font-family': Array.isArray(families) ? families.join(', ') : families,
1929
1848
  ...(fontFeatureSettings === undefined
1930
1849
  ? {}
1931
1850
  : { 'font-feature-settings': fontFeatureSettings }),
1932
- ...(fontVariationSettings === undefined
1933
- ? {}
1934
- : { 'font-variation-settings': fontVariationSettings }),
1935
1851
  }
1936
1852
  },
1937
1853
  },
@@ -1945,16 +1861,9 @@ export let corePlugins = {
1945
1861
  fontSize: ({ matchUtilities, theme }) => {
1946
1862
  matchUtilities(
1947
1863
  {
1948
- text: (value, { modifier }) => {
1864
+ text: (value) => {
1949
1865
  let [fontSize, options] = Array.isArray(value) ? value : [value]
1950
1866
 
1951
- if (modifier) {
1952
- return {
1953
- 'font-size': fontSize,
1954
- 'line-height': modifier,
1955
- }
1956
- }
1957
-
1958
1867
  let { lineHeight, letterSpacing, fontWeight } = isPlainObject(options)
1959
1868
  ? options
1960
1869
  : { lineHeight: options }
@@ -1969,7 +1878,6 @@ export let corePlugins = {
1969
1878
  },
1970
1879
  {
1971
1880
  values: theme('fontSize'),
1972
- modifiers: theme('lineHeight'),
1973
1881
  type: ['absolute-size', 'relative-size', 'length', 'percentage'],
1974
1882
  }
1975
1883
  )
@@ -23,7 +23,6 @@
23
23
  3. Use a more readable tab size.
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
- 6. Use the user's configured `sans` font-variation-settings by default.
27
26
  */
28
27
 
29
28
  html {
@@ -33,7 +32,6 @@ html {
33
32
  tab-size: 4; /* 3 */
34
33
  font-family: theme('fontFamily.sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"); /* 4 */
35
34
  font-feature-settings: theme('fontFamily.sans[1].fontFeatureSettings', normal); /* 5 */
36
- font-variation-settings: theme('fontFamily.sans[1].fontVariationSettings', normal); /* 6 */
37
35
  }
38
36
 
39
37
  /*
@@ -16,10 +16,6 @@ const placeholderRe = new RegExp(placeholder, 'g')
16
16
  // This is not a data type, but rather a function that can normalize the
17
17
  // correct values.
18
18
  export function normalize(value, isRoot = true) {
19
- if (value.startsWith('--')) {
20
- return `var(${value})`
21
- }
22
-
23
19
  // Keep raw strings if it starts with `url(`
24
20
  if (value.includes('url(')) {
25
21
  return value
@@ -133,14 +133,6 @@ export function parseColorFormat(value) {
133
133
  return value
134
134
  }
135
135
 
136
- function unwrapArbitraryModifier(modifier) {
137
- modifier = modifier.slice(1, -1)
138
- if (modifier.startsWith('--')) {
139
- modifier = `var(${modifier})`
140
- }
141
- return modifier
142
- }
143
-
144
136
  export function asColor(modifier, options = {}, { tailwindConfig = {} } = {}) {
145
137
  if (options.values?.[modifier] !== undefined) {
146
138
  return parseColorFormat(options.values?.[modifier])
@@ -161,7 +153,7 @@ export function asColor(modifier, options = {}, { tailwindConfig = {} } = {}) {
161
153
  normalizedColor = parseColorFormat(normalizedColor)
162
154
 
163
155
  if (isArbitraryValue(alpha)) {
164
- return withAlphaValue(normalizedColor, unwrapArbitraryModifier(alpha))
156
+ return withAlphaValue(normalizedColor, alpha.slice(1, -1))
165
157
  }
166
158
 
167
159
  if (tailwindConfig.theme?.opacity?.[alpha] === undefined) {
@@ -295,7 +287,7 @@ export function* getMatchingTypes(types, rawModifier, options, tailwindConfig) {
295
287
  if (configValue !== null) {
296
288
  utilityModifier = configValue
297
289
  } else if (isArbitraryValue(utilityModifier)) {
298
- utilityModifier = unwrapArbitraryModifier(utilityModifier)
290
+ utilityModifier = utilityModifier.slice(1, -1)
299
291
  }
300
292
  }
301
293
  }
@@ -853,7 +853,6 @@ module.exports = {
853
853
  'top-left': 'top left',
854
854
  },
855
855
  transitionDelay: {
856
- 0: '0s',
857
856
  75: '75ms',
858
857
  100: '100ms',
859
858
  150: '150ms',
@@ -865,7 +864,6 @@ module.exports = {
865
864
  },
866
865
  transitionDuration: {
867
866
  DEFAULT: '150ms',
868
- 0: '0s',
869
867
  75: '75ms',
870
868
  100: '100ms',
871
869
  150: '150ms',
package/types/config.d.ts CHANGED
@@ -168,13 +168,7 @@ interface ThemeConfig {
168
168
  string,
169
169
  | string
170
170
  | string[]
171
- | [
172
- fontFamily: string | string[],
173
- configuration: Partial<{
174
- fontFeatureSettings: string
175
- fontVariationSettings: string
176
- }>
177
- ]
171
+ | [fontFamily: string | string[], configuration: Partial<{ fontFeatureSettings: string }>]
178
172
  >
179
173
  >
180
174
  fontSize: ResolvableTo<
@@ -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' | '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' | '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' | 'display' | 'aspectRatio' | 'height' | 'maxHeight' | 'minHeight' | 'width' | 'minWidth' | 'maxWidth' | 'flex' | 'flexShrink' | 'flexGrow' | 'flexBasis' | 'tableLayout' | 'borderCollapse' | 'borderSpacing' | 'transformOrigin' | 'translate' | 'rotate' | 'skew' | 'scale' | 'transform' | 'animation' | 'cursor' | 'touchAction' | 'userSelect' | 'resize' | 'scrollSnapType' | 'scrollSnapAlign' | 'scrollSnapStop' | 'scrollMargin' | 'scrollPadding' | 'listStylePosition' | 'listStyleType' | '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' | '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'
@@ -327,12 +327,9 @@ export type DefaultTheme = Config['theme'] & {
327
327
  | 'top-left',
328
328
  string
329
329
  >
330
- transitionDelay: Record<
331
- '0' | '75' | '100' | '150' | '200' | '300' | '500' | '700' | '1000',
332
- string
333
- >
330
+ transitionDelay: Record<'75' | '100' | '150' | '200' | '300' | '500' | '700' | '1000', string>
334
331
  transitionDuration: Record<
335
- '0' | '75' | '100' | '150' | '200' | '300' | '500' | '700' | '1000' | 'DEFAULT',
332
+ '75' | '100' | '150' | '200' | '300' | '500' | '700' | '1000' | 'DEFAULT',
336
333
  string
337
334
  >
338
335
  transitionProperty: Record<