tailwindcss 4.0.0-alpha.9 → 4.0.0-beta.2
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/dist/chunk-AZANAYY2.mjs +1 -0
- package/dist/chunk-XNK5LQL5.mjs +1 -0
- package/dist/colors-b_6i0Oi7.d.ts +295 -0
- package/dist/colors.d.mts +295 -0
- package/dist/colors.d.ts +5 -0
- package/dist/colors.js +1 -0
- package/dist/colors.mjs +1 -0
- package/dist/default-theme.d.mts +1147 -0
- package/dist/default-theme.d.ts +1147 -0
- package/dist/default-theme.js +1 -0
- package/dist/default-theme.mjs +1 -0
- package/dist/lib.d.mts +127 -230
- package/dist/lib.d.ts +2 -338
- package/dist/lib.js +25 -14
- package/dist/lib.mjs +25 -14
- package/dist/plugin.d.mts +10 -0
- package/dist/plugin.d.ts +102 -0
- package/dist/plugin.js +1 -0
- package/dist/plugin.mjs +1 -0
- package/dist/resolve-config-BIFUA2FY.d.ts +29 -0
- package/dist/resolve-config-QUZ9b-Gn.d.mts +190 -0
- package/dist/types-CAsznCh5.d.mts +96 -0
- package/index.css +859 -3
- package/package.json +34 -5
- package/preflight.css +121 -72
- package/theme.css +396 -409
package/package.json
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "tailwindcss",
|
3
|
-
"version": "4.0.0-
|
3
|
+
"version": "4.0.0-beta.2",
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
5
5
|
"license": "MIT",
|
6
|
-
"repository":
|
6
|
+
"repository": {
|
7
|
+
"type": "git",
|
8
|
+
"url": "https://github.com/tailwindlabs/tailwindcss.git",
|
9
|
+
"directory": "packages/tailwindcss"
|
10
|
+
},
|
7
11
|
"bugs": "https://github.com/tailwindlabs/tailwindcss/issues",
|
8
12
|
"homepage": "https://tailwindcss.com",
|
9
13
|
"exports": {
|
@@ -13,6 +17,30 @@
|
|
13
17
|
"require": "./dist/lib.js",
|
14
18
|
"import": "./dist/lib.mjs"
|
15
19
|
},
|
20
|
+
"./plugin": {
|
21
|
+
"require": "./dist/plugin.js",
|
22
|
+
"import": "./dist/plugin.mjs"
|
23
|
+
},
|
24
|
+
"./plugin.js": {
|
25
|
+
"require": "./dist/plugin.js",
|
26
|
+
"import": "./dist/plugin.mjs"
|
27
|
+
},
|
28
|
+
"./defaultTheme": {
|
29
|
+
"require": "./dist/default-theme.js",
|
30
|
+
"import": "./dist/default-theme.mjs"
|
31
|
+
},
|
32
|
+
"./defaultTheme.js": {
|
33
|
+
"require": "./dist/default-theme.js",
|
34
|
+
"import": "./dist/default-theme.mjs"
|
35
|
+
},
|
36
|
+
"./colors": {
|
37
|
+
"require": "./dist/colors.js",
|
38
|
+
"import": "./dist/colors.mjs"
|
39
|
+
},
|
40
|
+
"./colors.js": {
|
41
|
+
"require": "./dist/colors.js",
|
42
|
+
"import": "./dist/colors.mjs"
|
43
|
+
},
|
16
44
|
"./package.json": "./package.json",
|
17
45
|
"./index.css": "./index.css",
|
18
46
|
"./index": "./index.css",
|
@@ -36,9 +64,10 @@
|
|
36
64
|
"utilities.css"
|
37
65
|
],
|
38
66
|
"devDependencies": {
|
39
|
-
"@types/node": "^20.
|
40
|
-
"lightningcss": "^1.
|
41
|
-
"
|
67
|
+
"@types/node": "^20.14.8",
|
68
|
+
"lightningcss": "^1.26.0",
|
69
|
+
"dedent": "1.5.3",
|
70
|
+
"@tailwindcss/oxide": "4.0.0-beta.2"
|
42
71
|
},
|
43
72
|
"scripts": {
|
44
73
|
"lint": "tsc --noEmit",
|
package/preflight.css
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
::after,
|
9
9
|
::before,
|
10
10
|
::backdrop,
|
11
|
-
::first-letter,
|
12
11
|
::file-selector-button {
|
13
12
|
box-sizing: border-box; /* 1 */
|
14
13
|
margin: 0; /* 2 */
|
@@ -176,73 +175,130 @@ table {
|
|
176
175
|
}
|
177
176
|
|
178
177
|
/*
|
179
|
-
|
180
|
-
|
178
|
+
Use the modern Firefox focus style for all focusable elements.
|
179
|
+
*/
|
180
|
+
|
181
|
+
:-moz-focusring {
|
182
|
+
outline: auto;
|
183
|
+
}
|
184
|
+
|
185
|
+
/*
|
186
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
187
|
+
*/
|
188
|
+
|
189
|
+
progress {
|
190
|
+
vertical-align: baseline;
|
191
|
+
}
|
192
|
+
|
193
|
+
/*
|
194
|
+
Add the correct display in Chrome and Safari.
|
195
|
+
*/
|
196
|
+
|
197
|
+
summary {
|
198
|
+
display: list-item;
|
199
|
+
}
|
200
|
+
|
201
|
+
/*
|
202
|
+
Make lists unstyled by default.
|
203
|
+
*/
|
204
|
+
|
205
|
+
ol,
|
206
|
+
ul,
|
207
|
+
menu {
|
208
|
+
list-style: none;
|
209
|
+
}
|
210
|
+
|
211
|
+
/*
|
212
|
+
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
213
|
+
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
214
|
+
This can trigger a poorly considered lint error in some tools but is included by design.
|
215
|
+
*/
|
216
|
+
|
217
|
+
img,
|
218
|
+
svg,
|
219
|
+
video,
|
220
|
+
canvas,
|
221
|
+
audio,
|
222
|
+
iframe,
|
223
|
+
embed,
|
224
|
+
object {
|
225
|
+
display: block; /* 1 */
|
226
|
+
vertical-align: middle; /* 2 */
|
227
|
+
}
|
228
|
+
|
229
|
+
/*
|
230
|
+
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
231
|
+
*/
|
232
|
+
|
233
|
+
img,
|
234
|
+
video {
|
235
|
+
max-width: 100%;
|
236
|
+
height: auto;
|
237
|
+
}
|
238
|
+
|
239
|
+
/*
|
240
|
+
1. Inherit font styles in all browsers.
|
241
|
+
2. Remove border radius in all browsers.
|
242
|
+
3. Remove background color in all browsers.
|
243
|
+
4. Ensure consistent opacity for disabled states in all browsers.
|
181
244
|
*/
|
182
245
|
|
183
246
|
button,
|
184
247
|
input,
|
185
|
-
optgroup,
|
186
248
|
select,
|
249
|
+
optgroup,
|
187
250
|
textarea,
|
188
251
|
::file-selector-button {
|
189
252
|
font: inherit; /* 1 */
|
190
253
|
font-feature-settings: inherit; /* 1 */
|
191
254
|
font-variation-settings: inherit; /* 1 */
|
255
|
+
letter-spacing: inherit; /* 1 */
|
192
256
|
color: inherit; /* 1 */
|
193
|
-
|
257
|
+
border-radius: 0; /* 2 */
|
258
|
+
background-color: transparent; /* 3 */
|
259
|
+
opacity: 1; /* 4 */
|
194
260
|
}
|
195
261
|
|
196
262
|
/*
|
197
|
-
|
263
|
+
Restore default font weight.
|
198
264
|
*/
|
199
265
|
|
200
|
-
|
201
|
-
|
202
|
-
textarea {
|
203
|
-
border: 1px solid;
|
204
|
-
}
|
205
|
-
|
206
|
-
/*
|
207
|
-
Correct the inability to style the border radius in iOS Safari.
|
208
|
-
*/
|
209
|
-
button,
|
210
|
-
input:where([type='button'], [type='reset'], [type='submit']),
|
211
|
-
::file-selector-button {
|
212
|
-
appearance: button;
|
266
|
+
:where(select:is([multiple], [size])) optgroup {
|
267
|
+
font-weight: bolder;
|
213
268
|
}
|
214
269
|
|
215
270
|
/*
|
216
|
-
|
271
|
+
Restore indentation.
|
217
272
|
*/
|
218
273
|
|
219
|
-
|
220
|
-
|
274
|
+
:where(select:is([multiple], [size])) optgroup option {
|
275
|
+
padding-inline-start: 20px;
|
221
276
|
}
|
222
277
|
|
223
278
|
/*
|
224
|
-
|
279
|
+
Restore space after button.
|
225
280
|
*/
|
226
281
|
|
227
|
-
|
228
|
-
|
282
|
+
::file-selector-button {
|
283
|
+
margin-inline-end: 4px;
|
229
284
|
}
|
230
285
|
|
231
286
|
/*
|
232
|
-
|
287
|
+
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
288
|
+
2. Set the default placeholder color to a semi-transparent version of the current text color.
|
233
289
|
*/
|
234
290
|
|
235
|
-
|
236
|
-
|
291
|
+
::placeholder {
|
292
|
+
opacity: 1; /* 1 */
|
293
|
+
color: color-mix(in oklch, currentColor 50%, transparent); /* 2 */
|
237
294
|
}
|
238
295
|
|
239
296
|
/*
|
240
|
-
|
297
|
+
Prevent resizing textareas horizontally by default.
|
241
298
|
*/
|
242
299
|
|
243
|
-
|
244
|
-
|
245
|
-
height: auto;
|
300
|
+
textarea {
|
301
|
+
resize: vertical;
|
246
302
|
}
|
247
303
|
|
248
304
|
/*
|
@@ -254,74 +310,67 @@ progress {
|
|
254
310
|
}
|
255
311
|
|
256
312
|
/*
|
257
|
-
|
313
|
+
1. Ensure date/time inputs have the same height when empty in iOS Safari.
|
314
|
+
2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
|
258
315
|
*/
|
259
316
|
|
260
|
-
|
261
|
-
|
317
|
+
::-webkit-date-and-time-value {
|
318
|
+
min-height: 1lh; /* 1 */
|
319
|
+
text-align: inherit; /* 2 */
|
262
320
|
}
|
263
321
|
|
264
322
|
/*
|
265
|
-
|
323
|
+
Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
|
266
324
|
*/
|
267
325
|
|
268
|
-
|
269
|
-
|
270
|
-
menu {
|
271
|
-
list-style: none;
|
326
|
+
::-webkit-datetime-edit {
|
327
|
+
display: inline-flex;
|
272
328
|
}
|
273
329
|
|
274
330
|
/*
|
275
|
-
|
331
|
+
Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
|
276
332
|
*/
|
277
333
|
|
278
|
-
|
279
|
-
|
334
|
+
::-webkit-datetime-edit-fields-wrapper {
|
335
|
+
padding: 0;
|
280
336
|
}
|
281
337
|
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
338
|
+
::-webkit-datetime-edit,
|
339
|
+
::-webkit-datetime-edit-year-field,
|
340
|
+
::-webkit-datetime-edit-month-field,
|
341
|
+
::-webkit-datetime-edit-day-field,
|
342
|
+
::-webkit-datetime-edit-hour-field,
|
343
|
+
::-webkit-datetime-edit-minute-field,
|
344
|
+
::-webkit-datetime-edit-second-field,
|
345
|
+
::-webkit-datetime-edit-millisecond-field,
|
346
|
+
::-webkit-datetime-edit-meridiem-field {
|
347
|
+
padding-block: 0;
|
290
348
|
}
|
291
349
|
|
292
350
|
/*
|
293
|
-
|
351
|
+
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
294
352
|
*/
|
295
353
|
|
296
|
-
|
297
|
-
|
354
|
+
:-moz-ui-invalid {
|
355
|
+
box-shadow: none;
|
298
356
|
}
|
299
357
|
|
300
358
|
/*
|
301
|
-
|
302
|
-
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
303
|
-
This can trigger a poorly considered lint error in some tools but is included by design.
|
359
|
+
Correct the inability to style the border radius in iOS Safari.
|
304
360
|
*/
|
305
361
|
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
audio,
|
311
|
-
iframe,
|
312
|
-
embed,
|
313
|
-
object {
|
314
|
-
display: block; /* 1 */
|
315
|
-
vertical-align: middle; /* 2 */
|
362
|
+
button,
|
363
|
+
input:where([type='button'], [type='reset'], [type='submit']),
|
364
|
+
::file-selector-button {
|
365
|
+
appearance: button;
|
316
366
|
}
|
317
367
|
|
318
368
|
/*
|
319
|
-
|
369
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
320
370
|
*/
|
321
371
|
|
322
|
-
|
323
|
-
|
324
|
-
max-width: 100%;
|
372
|
+
::-webkit-inner-spin-button,
|
373
|
+
::-webkit-outer-spin-button {
|
325
374
|
height: auto;
|
326
375
|
}
|
327
376
|
|
@@ -329,6 +378,6 @@ video {
|
|
329
378
|
Make elements with the HTML hidden attribute stay hidden by default.
|
330
379
|
*/
|
331
380
|
|
332
|
-
[hidden] {
|
381
|
+
[hidden]:where(:not([hidden='until-found'])) {
|
333
382
|
display: none !important;
|
334
383
|
}
|