tailwindcss 0.0.0-insiders.ea10bb9 → 0.0.0-insiders.ea4e1cd
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/README.md +1 -1
- package/lib/cli/build/deps.js +17 -9
- package/lib/cli/build/index.js +20 -10
- package/lib/cli/build/plugin.js +86 -70
- package/lib/cli/build/utils.js +18 -8
- package/lib/cli/build/watching.js +16 -12
- package/lib/cli/help/index.js +6 -4
- package/lib/cli/index.js +222 -10
- package/lib/cli/init/index.js +29 -12
- package/lib/cli-peer-dependencies.js +12 -4
- package/lib/cli.js +4 -226
- package/lib/corePluginList.js +7 -1
- package/lib/corePlugins.js +348 -75
- package/lib/css/preflight.css +2 -0
- package/lib/featureFlags.js +27 -15
- package/lib/index.js +1 -47
- package/lib/lib/cacheInvalidation.js +7 -5
- package/lib/lib/collapseAdjacentRules.js +5 -3
- package/lib/lib/collapseDuplicateDeclarations.js +12 -10
- package/lib/lib/content.js +34 -30
- package/lib/lib/defaultExtractor.js +15 -8
- package/lib/lib/detectNesting.js +10 -2
- package/lib/lib/evaluateTailwindFunctions.js +22 -20
- package/lib/lib/expandApplyAtRules.js +43 -35
- package/lib/lib/expandTailwindAtRules.js +46 -19
- package/lib/lib/findAtConfigPath.js +9 -7
- package/lib/lib/generateRules.js +157 -92
- package/lib/lib/getModuleDependencies.js +85 -37
- package/lib/lib/load-config.js +42 -0
- package/lib/lib/normalizeTailwindDirectives.js +5 -3
- package/lib/lib/offsets.js +93 -4
- package/lib/lib/partitionApplyAtRules.js +3 -1
- package/lib/lib/regex.js +21 -7
- package/lib/lib/remap-bitfield.js +89 -0
- package/lib/lib/resolveDefaultsAtRules.js +28 -24
- package/lib/lib/setupContextUtils.js +190 -131
- package/lib/lib/setupTrackingContext.js +49 -26
- package/lib/lib/sharedState.js +37 -10
- package/lib/lib/substituteScreenAtRules.js +5 -3
- package/lib/oxide/cli/build/deps.js +89 -0
- package/lib/oxide/cli/build/index.js +53 -0
- package/lib/oxide/cli/build/plugin.js +375 -0
- package/lib/oxide/cli/build/utils.js +87 -0
- package/lib/oxide/cli/build/watching.js +179 -0
- package/lib/oxide/cli/help/index.js +72 -0
- package/lib/oxide/cli/index.js +214 -0
- package/lib/oxide/cli/init/index.js +52 -0
- package/lib/oxide/cli.js +5 -0
- package/lib/oxide/postcss-plugin.js +2 -0
- package/lib/plugin.js +98 -0
- package/lib/postcss-plugins/nesting/index.js +3 -1
- package/lib/postcss-plugins/nesting/plugin.js +10 -8
- package/lib/processTailwindFeatures.js +14 -12
- package/lib/public/colors.js +49 -25
- package/lib/public/create-plugin.js +5 -3
- package/lib/public/default-config.js +6 -4
- package/lib/public/default-theme.js +6 -4
- package/lib/public/load-config.js +12 -0
- package/lib/public/resolve-config.js +6 -4
- package/lib/util/applyImportantSelector.js +36 -0
- package/lib/util/bigSign.js +3 -1
- package/lib/util/buildMediaQuery.js +3 -1
- package/lib/util/cloneDeep.js +3 -1
- package/lib/util/cloneNodes.js +5 -3
- package/lib/util/color.js +30 -12
- package/lib/util/colorNames.js +752 -0
- package/lib/util/configurePlugins.js +3 -1
- package/lib/util/createPlugin.js +3 -1
- package/lib/util/createUtilityPlugin.js +7 -5
- package/lib/util/dataTypes.js +74 -17
- package/lib/util/defaults.js +9 -7
- package/lib/util/escapeClassName.js +10 -8
- package/lib/util/escapeCommas.js +3 -1
- package/lib/util/flattenColorPalette.js +3 -1
- package/lib/util/formatVariantSelector.js +138 -160
- package/lib/util/getAllConfigs.js +8 -6
- package/lib/util/hashConfig.js +6 -4
- package/lib/util/isKeyframeRule.js +3 -1
- package/lib/util/isPlainObject.js +3 -1
- package/lib/util/isSyntacticallyValidPropertyValue.js +3 -1
- package/lib/util/log.js +8 -4
- package/lib/util/nameClass.js +12 -6
- package/lib/util/negateValue.js +4 -2
- package/lib/util/normalizeConfig.js +28 -27
- package/lib/util/normalizeScreens.js +12 -4
- package/lib/util/parseAnimationValue.js +3 -1
- package/lib/util/parseBoxShadowValue.js +6 -2
- package/lib/util/parseDependency.js +3 -1
- package/lib/util/parseGlob.js +6 -4
- package/lib/util/parseObjectStyles.js +9 -7
- package/lib/util/pluginUtils.js +54 -54
- package/lib/util/prefixSelector.js +27 -11
- package/lib/util/pseudoElements.js +229 -0
- package/lib/util/removeAlphaVariables.js +3 -1
- package/lib/util/resolveConfig.js +17 -15
- package/lib/util/resolveConfigPath.js +26 -10
- package/lib/util/responsive.js +6 -4
- package/lib/util/splitAtTopLevelOnly.js +10 -2
- package/lib/util/tap.js +3 -1
- package/lib/util/toColorValue.js +3 -1
- package/lib/util/toPath.js +3 -1
- package/lib/util/transformThemeValue.js +6 -4
- package/lib/util/validateConfig.js +16 -3
- package/lib/util/validateFormalSyntax.js +3 -1
- package/lib/util/withAlphaVariable.js +6 -2
- package/loadConfig.d.ts +4 -0
- package/loadConfig.js +2 -0
- package/package.json +45 -37
- package/peers/index.js +63324 -46417
- package/resolveConfig.d.ts +11 -2
- package/scripts/swap-engines.js +40 -0
- package/src/cli/build/index.js +13 -9
- package/src/cli/build/plugin.js +42 -32
- package/src/cli/build/watching.js +4 -2
- package/src/cli/index.js +216 -3
- package/src/cli/init/index.js +37 -8
- package/src/cli.js +4 -220
- package/src/corePluginList.js +1 -1
- package/src/corePlugins.js +207 -32
- package/src/css/preflight.css +2 -0
- package/src/featureFlags.js +6 -0
- package/src/index.js +1 -47
- package/src/lib/content.js +12 -17
- package/src/lib/defaultExtractor.js +9 -3
- package/src/lib/detectNesting.js +9 -1
- package/src/lib/expandApplyAtRules.js +8 -1
- package/src/lib/expandTailwindAtRules.js +36 -7
- package/src/lib/generateRules.js +124 -42
- package/src/lib/getModuleDependencies.js +70 -30
- package/src/lib/load-config.ts +31 -0
- package/src/lib/offsets.js +104 -1
- package/src/lib/remap-bitfield.js +82 -0
- package/src/lib/setupContextUtils.js +103 -54
- package/src/lib/setupTrackingContext.js +36 -11
- package/src/lib/sharedState.js +15 -4
- package/src/oxide/cli/build/deps.ts +91 -0
- package/src/oxide/cli/build/index.ts +47 -0
- package/src/oxide/cli/build/plugin.ts +442 -0
- package/src/oxide/cli/build/utils.ts +74 -0
- package/src/oxide/cli/build/watching.ts +225 -0
- package/src/oxide/cli/help/index.ts +69 -0
- package/src/oxide/cli/index.ts +204 -0
- package/src/oxide/cli/init/index.ts +59 -0
- package/src/oxide/cli.ts +1 -0
- package/src/oxide/postcss-plugin.ts +1 -0
- package/src/plugin.js +107 -0
- package/src/public/colors.js +22 -0
- package/src/public/default-config.js +1 -1
- package/src/public/default-theme.js +2 -2
- package/src/public/load-config.js +2 -0
- package/src/util/applyImportantSelector.js +27 -0
- package/src/util/color.js +18 -3
- package/src/util/colorNames.js +150 -0
- package/src/util/dataTypes.js +33 -4
- package/src/util/formatVariantSelector.js +160 -163
- package/src/util/getAllConfigs.js +2 -2
- package/src/util/negateValue.js +1 -1
- package/src/util/normalizeConfig.js +2 -1
- package/src/util/pluginUtils.js +16 -31
- package/src/util/prefixSelector.js +28 -10
- package/src/util/pseudoElements.js +170 -0
- package/src/util/resolveConfigPath.js +12 -1
- package/src/util/splitAtTopLevelOnly.js +8 -1
- package/src/util/validateConfig.js +13 -0
- package/stubs/.gitignore +1 -0
- package/stubs/.prettierrc.json +6 -0
- package/stubs/{defaultConfig.stub.js → config.full.js} +183 -146
- package/stubs/{simpleConfig.stub.js → config.simple.js} +0 -1
- package/stubs/postcss.config.js +6 -0
- package/stubs/tailwind.config.cjs +2 -0
- package/stubs/tailwind.config.js +2 -0
- package/stubs/tailwind.config.ts +3 -0
- package/types/config.d.ts +15 -9
- package/types/generated/colors.d.ts +22 -0
- package/types/generated/corePluginList.d.ts +1 -1
- package/types/generated/default-theme.d.ts +108 -79
- package/CHANGELOG.md +0 -2336
- package/lib/cli/shared.js +0 -12
- package/lib/constants.js +0 -44
- package/scripts/install-integrations.js +0 -27
- package/scripts/rebuildFixtures.js +0 -68
- package/src/cli/shared.js +0 -5
- package/src/constants.js +0 -17
- /package/stubs/{defaultPostCssConfig.stub.js → postcss.config.cjs} +0 -0
|
@@ -15,6 +15,7 @@ export interface DefaultColors {
|
|
|
15
15
|
'700': '#334155'
|
|
16
16
|
'800': '#1e293b'
|
|
17
17
|
'900': '#0f172a'
|
|
18
|
+
'950': '#020617'
|
|
18
19
|
}
|
|
19
20
|
gray: {
|
|
20
21
|
'50': '#f9fafb'
|
|
@@ -27,6 +28,7 @@ export interface DefaultColors {
|
|
|
27
28
|
'700': '#374151'
|
|
28
29
|
'800': '#1f2937'
|
|
29
30
|
'900': '#111827'
|
|
31
|
+
'950': '#030712'
|
|
30
32
|
}
|
|
31
33
|
zinc: {
|
|
32
34
|
'50': '#fafafa'
|
|
@@ -39,6 +41,7 @@ export interface DefaultColors {
|
|
|
39
41
|
'700': '#3f3f46'
|
|
40
42
|
'800': '#27272a'
|
|
41
43
|
'900': '#18181b'
|
|
44
|
+
'950': '#09090b'
|
|
42
45
|
}
|
|
43
46
|
neutral: {
|
|
44
47
|
'50': '#fafafa'
|
|
@@ -51,6 +54,7 @@ export interface DefaultColors {
|
|
|
51
54
|
'700': '#404040'
|
|
52
55
|
'800': '#262626'
|
|
53
56
|
'900': '#171717'
|
|
57
|
+
'950': '#0a0a0a'
|
|
54
58
|
}
|
|
55
59
|
stone: {
|
|
56
60
|
'50': '#fafaf9'
|
|
@@ -63,6 +67,7 @@ export interface DefaultColors {
|
|
|
63
67
|
'700': '#44403c'
|
|
64
68
|
'800': '#292524'
|
|
65
69
|
'900': '#1c1917'
|
|
70
|
+
'950': '#0c0a09'
|
|
66
71
|
}
|
|
67
72
|
red: {
|
|
68
73
|
'50': '#fef2f2'
|
|
@@ -75,6 +80,7 @@ export interface DefaultColors {
|
|
|
75
80
|
'700': '#b91c1c'
|
|
76
81
|
'800': '#991b1b'
|
|
77
82
|
'900': '#7f1d1d'
|
|
83
|
+
'950': '#450a0a'
|
|
78
84
|
}
|
|
79
85
|
orange: {
|
|
80
86
|
'50': '#fff7ed'
|
|
@@ -87,6 +93,7 @@ export interface DefaultColors {
|
|
|
87
93
|
'700': '#c2410c'
|
|
88
94
|
'800': '#9a3412'
|
|
89
95
|
'900': '#7c2d12'
|
|
96
|
+
'950': '#431407'
|
|
90
97
|
}
|
|
91
98
|
amber: {
|
|
92
99
|
'50': '#fffbeb'
|
|
@@ -99,6 +106,7 @@ export interface DefaultColors {
|
|
|
99
106
|
'700': '#b45309'
|
|
100
107
|
'800': '#92400e'
|
|
101
108
|
'900': '#78350f'
|
|
109
|
+
'950': '#451a03'
|
|
102
110
|
}
|
|
103
111
|
yellow: {
|
|
104
112
|
'50': '#fefce8'
|
|
@@ -111,6 +119,7 @@ export interface DefaultColors {
|
|
|
111
119
|
'700': '#a16207'
|
|
112
120
|
'800': '#854d0e'
|
|
113
121
|
'900': '#713f12'
|
|
122
|
+
'950': '#422006'
|
|
114
123
|
}
|
|
115
124
|
lime: {
|
|
116
125
|
'50': '#f7fee7'
|
|
@@ -123,6 +132,7 @@ export interface DefaultColors {
|
|
|
123
132
|
'700': '#4d7c0f'
|
|
124
133
|
'800': '#3f6212'
|
|
125
134
|
'900': '#365314'
|
|
135
|
+
'950': '#1a2e05'
|
|
126
136
|
}
|
|
127
137
|
green: {
|
|
128
138
|
'50': '#f0fdf4'
|
|
@@ -135,6 +145,7 @@ export interface DefaultColors {
|
|
|
135
145
|
'700': '#15803d'
|
|
136
146
|
'800': '#166534'
|
|
137
147
|
'900': '#14532d'
|
|
148
|
+
'950': '#052e16'
|
|
138
149
|
}
|
|
139
150
|
emerald: {
|
|
140
151
|
'50': '#ecfdf5'
|
|
@@ -147,6 +158,7 @@ export interface DefaultColors {
|
|
|
147
158
|
'700': '#047857'
|
|
148
159
|
'800': '#065f46'
|
|
149
160
|
'900': '#064e3b'
|
|
161
|
+
'950': '#022c22'
|
|
150
162
|
}
|
|
151
163
|
teal: {
|
|
152
164
|
'50': '#f0fdfa'
|
|
@@ -159,6 +171,7 @@ export interface DefaultColors {
|
|
|
159
171
|
'700': '#0f766e'
|
|
160
172
|
'800': '#115e59'
|
|
161
173
|
'900': '#134e4a'
|
|
174
|
+
'950': '#042f2e'
|
|
162
175
|
}
|
|
163
176
|
cyan: {
|
|
164
177
|
'50': '#ecfeff'
|
|
@@ -171,6 +184,7 @@ export interface DefaultColors {
|
|
|
171
184
|
'700': '#0e7490'
|
|
172
185
|
'800': '#155e75'
|
|
173
186
|
'900': '#164e63'
|
|
187
|
+
'950': '#083344'
|
|
174
188
|
}
|
|
175
189
|
sky: {
|
|
176
190
|
'50': '#f0f9ff'
|
|
@@ -183,6 +197,7 @@ export interface DefaultColors {
|
|
|
183
197
|
'700': '#0369a1'
|
|
184
198
|
'800': '#075985'
|
|
185
199
|
'900': '#0c4a6e'
|
|
200
|
+
'950': '#082f49'
|
|
186
201
|
}
|
|
187
202
|
blue: {
|
|
188
203
|
'50': '#eff6ff'
|
|
@@ -195,6 +210,7 @@ export interface DefaultColors {
|
|
|
195
210
|
'700': '#1d4ed8'
|
|
196
211
|
'800': '#1e40af'
|
|
197
212
|
'900': '#1e3a8a'
|
|
213
|
+
'950': '#172554'
|
|
198
214
|
}
|
|
199
215
|
indigo: {
|
|
200
216
|
'50': '#eef2ff'
|
|
@@ -207,6 +223,7 @@ export interface DefaultColors {
|
|
|
207
223
|
'700': '#4338ca'
|
|
208
224
|
'800': '#3730a3'
|
|
209
225
|
'900': '#312e81'
|
|
226
|
+
'950': '#1e1b4b'
|
|
210
227
|
}
|
|
211
228
|
violet: {
|
|
212
229
|
'50': '#f5f3ff'
|
|
@@ -219,6 +236,7 @@ export interface DefaultColors {
|
|
|
219
236
|
'700': '#6d28d9'
|
|
220
237
|
'800': '#5b21b6'
|
|
221
238
|
'900': '#4c1d95'
|
|
239
|
+
'950': '#2e1065'
|
|
222
240
|
}
|
|
223
241
|
purple: {
|
|
224
242
|
'50': '#faf5ff'
|
|
@@ -231,6 +249,7 @@ export interface DefaultColors {
|
|
|
231
249
|
'700': '#7e22ce'
|
|
232
250
|
'800': '#6b21a8'
|
|
233
251
|
'900': '#581c87'
|
|
252
|
+
'950': '#3b0764'
|
|
234
253
|
}
|
|
235
254
|
fuchsia: {
|
|
236
255
|
'50': '#fdf4ff'
|
|
@@ -243,6 +262,7 @@ export interface DefaultColors {
|
|
|
243
262
|
'700': '#a21caf'
|
|
244
263
|
'800': '#86198f'
|
|
245
264
|
'900': '#701a75'
|
|
265
|
+
'950': '#4a044e'
|
|
246
266
|
}
|
|
247
267
|
pink: {
|
|
248
268
|
'50': '#fdf2f8'
|
|
@@ -255,6 +275,7 @@ export interface DefaultColors {
|
|
|
255
275
|
'700': '#be185d'
|
|
256
276
|
'800': '#9d174d'
|
|
257
277
|
'900': '#831843'
|
|
278
|
+
'950': '#500724'
|
|
258
279
|
}
|
|
259
280
|
rose: {
|
|
260
281
|
'50': '#fff1f2'
|
|
@@ -267,6 +288,7 @@ export interface DefaultColors {
|
|
|
267
288
|
'700': '#be123c'
|
|
268
289
|
'800': '#9f1239'
|
|
269
290
|
'900': '#881337'
|
|
291
|
+
'950': '#4c0519'
|
|
270
292
|
}
|
|
271
293
|
/** @deprecated As of Tailwind CSS v2.2, `lightBlue` has been renamed to `sky`. Update your configuration file to silence this warning. */ lightBlue: DefaultColors['sky']
|
|
272
294
|
/** @deprecated As of Tailwind CSS v3.0, `warmGray` has been renamed to `stone`. Update your configuration file to silence this warning. */ warmGray: DefaultColors['stone']
|
|
@@ -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' | '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
|
+
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,74 +1,6 @@
|
|
|
1
1
|
import { Config } from '../../types'
|
|
2
2
|
type CSSDeclarationList = Record<string, string>
|
|
3
3
|
export type DefaultTheme = Config['theme'] & {
|
|
4
|
-
screens: Record<'sm' | 'md' | 'lg' | 'xl' | '2xl', string>
|
|
5
|
-
columns: Record<
|
|
6
|
-
| '1'
|
|
7
|
-
| '2'
|
|
8
|
-
| '3'
|
|
9
|
-
| '4'
|
|
10
|
-
| '5'
|
|
11
|
-
| '6'
|
|
12
|
-
| '7'
|
|
13
|
-
| '8'
|
|
14
|
-
| '9'
|
|
15
|
-
| '10'
|
|
16
|
-
| '11'
|
|
17
|
-
| '12'
|
|
18
|
-
| 'auto'
|
|
19
|
-
| '3xs'
|
|
20
|
-
| '2xs'
|
|
21
|
-
| 'xs'
|
|
22
|
-
| 'sm'
|
|
23
|
-
| 'md'
|
|
24
|
-
| 'lg'
|
|
25
|
-
| 'xl'
|
|
26
|
-
| '2xl'
|
|
27
|
-
| '3xl'
|
|
28
|
-
| '4xl'
|
|
29
|
-
| '5xl'
|
|
30
|
-
| '6xl'
|
|
31
|
-
| '7xl',
|
|
32
|
-
string
|
|
33
|
-
>
|
|
34
|
-
spacing: Record<
|
|
35
|
-
| '0'
|
|
36
|
-
| '1'
|
|
37
|
-
| '2'
|
|
38
|
-
| '3'
|
|
39
|
-
| '4'
|
|
40
|
-
| '5'
|
|
41
|
-
| '6'
|
|
42
|
-
| '7'
|
|
43
|
-
| '8'
|
|
44
|
-
| '9'
|
|
45
|
-
| '10'
|
|
46
|
-
| '11'
|
|
47
|
-
| '12'
|
|
48
|
-
| '14'
|
|
49
|
-
| '16'
|
|
50
|
-
| '20'
|
|
51
|
-
| '24'
|
|
52
|
-
| '28'
|
|
53
|
-
| '32'
|
|
54
|
-
| '36'
|
|
55
|
-
| '40'
|
|
56
|
-
| '44'
|
|
57
|
-
| '48'
|
|
58
|
-
| '52'
|
|
59
|
-
| '56'
|
|
60
|
-
| '60'
|
|
61
|
-
| '64'
|
|
62
|
-
| '72'
|
|
63
|
-
| '80'
|
|
64
|
-
| '96'
|
|
65
|
-
| 'px'
|
|
66
|
-
| '0.5'
|
|
67
|
-
| '1.5'
|
|
68
|
-
| '2.5'
|
|
69
|
-
| '3.5',
|
|
70
|
-
string
|
|
71
|
-
>
|
|
72
4
|
animation: Record<'none' | 'spin' | 'ping' | 'pulse' | 'bounce', string>
|
|
73
5
|
aria: Record<
|
|
74
6
|
| 'checked'
|
|
@@ -108,18 +40,47 @@ export type DefaultTheme = Config['theme'] & {
|
|
|
108
40
|
>
|
|
109
41
|
backgroundSize: Record<'auto' | 'cover' | 'contain', string>
|
|
110
42
|
blur: Record<'0' | 'none' | 'sm' | 'DEFAULT' | 'md' | 'lg' | 'xl' | '2xl' | '3xl', string>
|
|
111
|
-
brightness: Record<
|
|
112
|
-
'0' | '50' | '75' | '90' | '95' | '100' | '105' | '110' | '125' | '150' | '200',
|
|
113
|
-
string
|
|
114
|
-
>
|
|
115
43
|
borderRadius: Record<
|
|
116
44
|
'none' | 'sm' | 'DEFAULT' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full',
|
|
117
45
|
string
|
|
118
46
|
>
|
|
119
47
|
borderWidth: Record<'0' | '2' | '4' | '8' | 'DEFAULT', string>
|
|
120
48
|
boxShadow: Record<'sm' | 'DEFAULT' | 'md' | 'lg' | 'xl' | '2xl' | 'inner' | 'none', string>
|
|
121
|
-
|
|
49
|
+
brightness: Record<
|
|
50
|
+
'0' | '50' | '75' | '90' | '95' | '100' | '105' | '110' | '125' | '150' | '200',
|
|
51
|
+
string
|
|
52
|
+
>
|
|
53
|
+
columns: Record<
|
|
54
|
+
| '1'
|
|
55
|
+
| '2'
|
|
56
|
+
| '3'
|
|
57
|
+
| '4'
|
|
58
|
+
| '5'
|
|
59
|
+
| '6'
|
|
60
|
+
| '7'
|
|
61
|
+
| '8'
|
|
62
|
+
| '9'
|
|
63
|
+
| '10'
|
|
64
|
+
| '11'
|
|
65
|
+
| '12'
|
|
66
|
+
| 'auto'
|
|
67
|
+
| '3xs'
|
|
68
|
+
| '2xs'
|
|
69
|
+
| 'xs'
|
|
70
|
+
| 'sm'
|
|
71
|
+
| 'md'
|
|
72
|
+
| 'lg'
|
|
73
|
+
| 'xl'
|
|
74
|
+
| '2xl'
|
|
75
|
+
| '3xl'
|
|
76
|
+
| '4xl'
|
|
77
|
+
| '5xl'
|
|
78
|
+
| '6xl'
|
|
79
|
+
| '7xl',
|
|
80
|
+
string
|
|
81
|
+
>
|
|
122
82
|
content: Record<'none', string>
|
|
83
|
+
contrast: Record<'0' | '50' | '75' | '100' | '125' | '150' | '200', string>
|
|
123
84
|
cursor: Record<
|
|
124
85
|
| 'auto'
|
|
125
86
|
| 'default'
|
|
@@ -160,9 +121,6 @@ export type DefaultTheme = Config['theme'] & {
|
|
|
160
121
|
string
|
|
161
122
|
>
|
|
162
123
|
dropShadow: Record<'sm' | 'DEFAULT' | 'md' | 'lg' | 'xl' | '2xl' | 'none', string | string[]>
|
|
163
|
-
grayscale: Record<'0' | 'DEFAULT', string>
|
|
164
|
-
hueRotate: Record<'0' | '15' | '30' | '60' | '90' | '180', string>
|
|
165
|
-
invert: Record<'0' | 'DEFAULT', string>
|
|
166
124
|
flex: Record<'1' | 'auto' | 'initial' | 'none', string>
|
|
167
125
|
flexGrow: Record<'0' | 'DEFAULT', string>
|
|
168
126
|
flexShrink: Record<'0' | 'DEFAULT', string>
|
|
@@ -195,6 +153,31 @@ export type DefaultTheme = Config['theme'] & {
|
|
|
195
153
|
| 'black',
|
|
196
154
|
string
|
|
197
155
|
>
|
|
156
|
+
gradientColorStopPositions: Record<
|
|
157
|
+
| '0%'
|
|
158
|
+
| '5%'
|
|
159
|
+
| '10%'
|
|
160
|
+
| '15%'
|
|
161
|
+
| '20%'
|
|
162
|
+
| '25%'
|
|
163
|
+
| '30%'
|
|
164
|
+
| '35%'
|
|
165
|
+
| '40%'
|
|
166
|
+
| '45%'
|
|
167
|
+
| '50%'
|
|
168
|
+
| '55%'
|
|
169
|
+
| '60%'
|
|
170
|
+
| '65%'
|
|
171
|
+
| '70%'
|
|
172
|
+
| '75%'
|
|
173
|
+
| '80%'
|
|
174
|
+
| '85%'
|
|
175
|
+
| '90%'
|
|
176
|
+
| '95%'
|
|
177
|
+
| '100%',
|
|
178
|
+
string
|
|
179
|
+
>
|
|
180
|
+
grayscale: Record<'0' | 'DEFAULT', string>
|
|
198
181
|
gridAutoColumns: Record<'auto' | 'min' | 'max' | 'fr', string>
|
|
199
182
|
gridAutoRows: Record<'auto' | 'min' | 'max' | 'fr', string>
|
|
200
183
|
gridColumn: Record<
|
|
@@ -226,13 +209,15 @@ export type DefaultTheme = Config['theme'] & {
|
|
|
226
209
|
'auto' | 'span-1' | 'span-2' | 'span-3' | 'span-4' | 'span-5' | 'span-6' | 'span-full',
|
|
227
210
|
string
|
|
228
211
|
>
|
|
229
|
-
gridRowStart: Record<'1' | '2' | '3' | '4' | '5' | '6' | '7' | 'auto', string>
|
|
230
212
|
gridRowEnd: Record<'1' | '2' | '3' | '4' | '5' | '6' | '7' | 'auto', string>
|
|
213
|
+
gridRowStart: Record<'1' | '2' | '3' | '4' | '5' | '6' | '7' | 'auto', string>
|
|
231
214
|
gridTemplateColumns: Record<
|
|
232
215
|
'1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | 'none',
|
|
233
216
|
string
|
|
234
217
|
>
|
|
235
218
|
gridTemplateRows: Record<'1' | '2' | '3' | '4' | '5' | '6' | 'none', string>
|
|
219
|
+
hueRotate: Record<'0' | '15' | '30' | '60' | '90' | '180', string>
|
|
220
|
+
invert: Record<'0' | 'DEFAULT', string>
|
|
236
221
|
keyframes: Record<'spin' | 'ping' | 'pulse' | 'bounce', Record<string, CSSDeclarationList>>
|
|
237
222
|
letterSpacing: Record<'tighter' | 'tight' | 'normal' | 'wide' | 'wider' | 'widest', string>
|
|
238
223
|
lineHeight: Record<
|
|
@@ -253,6 +238,8 @@ export type DefaultTheme = Config['theme'] & {
|
|
|
253
238
|
string
|
|
254
239
|
>
|
|
255
240
|
listStyleType: Record<'none' | 'disc' | 'decimal', string>
|
|
241
|
+
listStyleImage: Record<'none', string>
|
|
242
|
+
lineClamp: Record<'1' | '2' | '3' | '4' | '5' | '6', string>
|
|
256
243
|
minHeight: Record<'0' | 'full' | 'screen' | 'min' | 'max' | 'fit', string>
|
|
257
244
|
minWidth: Record<'0' | 'full' | 'min' | 'max' | 'fit', string>
|
|
258
245
|
objectPosition: Record<
|
|
@@ -310,8 +297,47 @@ export type DefaultTheme = Config['theme'] & {
|
|
|
310
297
|
rotate: Record<'0' | '1' | '2' | '3' | '6' | '12' | '45' | '90' | '180', string>
|
|
311
298
|
saturate: Record<'0' | '50' | '100' | '150' | '200', string>
|
|
312
299
|
scale: Record<'0' | '50' | '75' | '90' | '95' | '100' | '105' | '110' | '125' | '150', string>
|
|
300
|
+
screens: Record<'sm' | 'md' | 'lg' | 'xl' | '2xl', string>
|
|
313
301
|
sepia: Record<'0' | 'DEFAULT', string>
|
|
314
302
|
skew: Record<'0' | '1' | '2' | '3' | '6' | '12', string>
|
|
303
|
+
spacing: Record<
|
|
304
|
+
| '0'
|
|
305
|
+
| '1'
|
|
306
|
+
| '2'
|
|
307
|
+
| '3'
|
|
308
|
+
| '4'
|
|
309
|
+
| '5'
|
|
310
|
+
| '6'
|
|
311
|
+
| '7'
|
|
312
|
+
| '8'
|
|
313
|
+
| '9'
|
|
314
|
+
| '10'
|
|
315
|
+
| '11'
|
|
316
|
+
| '12'
|
|
317
|
+
| '14'
|
|
318
|
+
| '16'
|
|
319
|
+
| '20'
|
|
320
|
+
| '24'
|
|
321
|
+
| '28'
|
|
322
|
+
| '32'
|
|
323
|
+
| '36'
|
|
324
|
+
| '40'
|
|
325
|
+
| '44'
|
|
326
|
+
| '48'
|
|
327
|
+
| '52'
|
|
328
|
+
| '56'
|
|
329
|
+
| '60'
|
|
330
|
+
| '64'
|
|
331
|
+
| '72'
|
|
332
|
+
| '80'
|
|
333
|
+
| '96'
|
|
334
|
+
| 'px'
|
|
335
|
+
| '0.5'
|
|
336
|
+
| '1.5'
|
|
337
|
+
| '2.5'
|
|
338
|
+
| '3.5',
|
|
339
|
+
string
|
|
340
|
+
>
|
|
315
341
|
strokeWidth: Record<'0' | '1' | '2', string>
|
|
316
342
|
textDecorationThickness: Record<'0' | '1' | '2' | '4' | '8' | 'auto' | 'from-font', string>
|
|
317
343
|
textUnderlineOffset: Record<'0' | '1' | '2' | '4' | '8' | 'auto', string>
|
|
@@ -327,9 +353,12 @@ export type DefaultTheme = Config['theme'] & {
|
|
|
327
353
|
| 'top-left',
|
|
328
354
|
string
|
|
329
355
|
>
|
|
330
|
-
transitionDelay: Record<
|
|
356
|
+
transitionDelay: Record<
|
|
357
|
+
'0' | '75' | '100' | '150' | '200' | '300' | '500' | '700' | '1000',
|
|
358
|
+
string
|
|
359
|
+
>
|
|
331
360
|
transitionDuration: Record<
|
|
332
|
-
'75' | '100' | '150' | '200' | '300' | '500' | '700' | '1000' | 'DEFAULT',
|
|
361
|
+
'0' | '75' | '100' | '150' | '200' | '300' | '500' | '700' | '1000' | 'DEFAULT',
|
|
333
362
|
string
|
|
334
363
|
>
|
|
335
364
|
transitionProperty: Record<
|