tailwindcss 4.0.0-alpha.34 → 4.0.0-alpha.36
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/default-theme.d.mts +1 -1
- package/dist/lib.d.mts +3 -3
- package/dist/lib.js +19 -17
- package/dist/lib.mjs +19 -17
- package/dist/plugin.d.mts +2 -2
- package/dist/{resolve-config-Oupdq5Vo.d.mts → resolve-config-QUZ9b-Gn.d.mts} +6 -0
- package/dist/{types-1Gt9iRen.d.mts → types-CAsznCh5.d.mts} +1 -1
- package/index.css +180 -71
- package/package.json +2 -2
- package/preflight.css +174 -67
- package/theme.css +4 -4
package/preflight.css
CHANGED
@@ -23,6 +23,7 @@
|
|
23
23
|
5. Use the user's configured `sans` font-feature-settings by default.
|
24
24
|
6. Use the user's configured `sans` font-variation-settings by default.
|
25
25
|
7. Disable tap highlights on iOS.
|
26
|
+
8. Set a default `color-scheme`.
|
26
27
|
*/
|
27
28
|
|
28
29
|
html,
|
@@ -43,6 +44,7 @@ html,
|
|
43
44
|
font-feature-settings: var(--default-font-feature-settings, normal); /* 5 */
|
44
45
|
font-variation-settings: var(--default-font-variation-settings, normal); /* 6 */
|
45
46
|
-webkit-tap-highlight-color: transparent; /* 7 */
|
47
|
+
color-scheme: light; /* 8 */
|
46
48
|
}
|
47
49
|
|
48
50
|
/*
|
@@ -175,67 +177,102 @@ table {
|
|
175
177
|
}
|
176
178
|
|
177
179
|
/*
|
178
|
-
|
180
|
+
Use the modern Firefox focus style for all focusable elements.
|
179
181
|
*/
|
180
182
|
|
181
|
-
|
182
|
-
|
183
|
-
optgroup,
|
184
|
-
select,
|
185
|
-
textarea,
|
186
|
-
::file-selector-button {
|
187
|
-
font: inherit;
|
188
|
-
font-feature-settings: inherit;
|
189
|
-
font-variation-settings: inherit;
|
190
|
-
letter-spacing: inherit;
|
191
|
-
color: inherit;
|
183
|
+
:-moz-focusring {
|
184
|
+
outline: auto;
|
192
185
|
}
|
193
186
|
|
194
187
|
/*
|
195
|
-
|
196
|
-
2. Correct the inability to style the border radius in iOS Safari.
|
188
|
+
Add the correct vertical alignment in Chrome and Firefox.
|
197
189
|
*/
|
198
190
|
|
199
|
-
|
200
|
-
|
201
|
-
::file-selector-button {
|
202
|
-
background: transparent; /* 1 */
|
203
|
-
appearance: button; /* 2 */
|
191
|
+
progress {
|
192
|
+
vertical-align: baseline;
|
204
193
|
}
|
205
194
|
|
206
195
|
/*
|
207
|
-
|
196
|
+
Add the correct display in Chrome and Safari.
|
208
197
|
*/
|
209
198
|
|
210
|
-
|
211
|
-
|
199
|
+
summary {
|
200
|
+
display: list-item;
|
212
201
|
}
|
213
202
|
|
214
203
|
/*
|
215
|
-
|
204
|
+
Make lists unstyled by default.
|
216
205
|
*/
|
217
206
|
|
218
|
-
|
219
|
-
|
207
|
+
ol,
|
208
|
+
ul,
|
209
|
+
menu {
|
210
|
+
list-style: none;
|
220
211
|
}
|
221
212
|
|
222
213
|
/*
|
223
|
-
|
214
|
+
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
215
|
+
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
216
|
+
This can trigger a poorly considered lint error in some tools but is included by design.
|
224
217
|
*/
|
225
218
|
|
226
|
-
|
227
|
-
|
219
|
+
img,
|
220
|
+
svg,
|
221
|
+
video,
|
222
|
+
canvas,
|
223
|
+
audio,
|
224
|
+
iframe,
|
225
|
+
embed,
|
226
|
+
object {
|
227
|
+
display: block; /* 1 */
|
228
|
+
vertical-align: middle; /* 2 */
|
228
229
|
}
|
229
230
|
|
230
231
|
/*
|
231
|
-
|
232
|
+
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
232
233
|
*/
|
233
234
|
|
234
|
-
|
235
|
-
|
235
|
+
img,
|
236
|
+
video {
|
237
|
+
max-width: 100%;
|
236
238
|
height: auto;
|
237
239
|
}
|
238
240
|
|
241
|
+
/*
|
242
|
+
Inherit font styles in all browsers.
|
243
|
+
*/
|
244
|
+
|
245
|
+
button,
|
246
|
+
input,
|
247
|
+
select,
|
248
|
+
optgroup,
|
249
|
+
textarea,
|
250
|
+
::file-selector-button {
|
251
|
+
font: inherit;
|
252
|
+
font-feature-settings: inherit;
|
253
|
+
font-variation-settings: inherit;
|
254
|
+
letter-spacing: inherit;
|
255
|
+
color: inherit;
|
256
|
+
}
|
257
|
+
|
258
|
+
/*
|
259
|
+
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
260
|
+
2. Set the default placeholder color to a semi-transparent version of the current text color.
|
261
|
+
*/
|
262
|
+
|
263
|
+
::placeholder {
|
264
|
+
opacity: 1; /* 1 */
|
265
|
+
color: color-mix(in oklch, currentColor 50%, transparent); /* 2 */
|
266
|
+
}
|
267
|
+
|
268
|
+
/*
|
269
|
+
Prevent resizing textareas horizontally by default.
|
270
|
+
*/
|
271
|
+
|
272
|
+
textarea {
|
273
|
+
resize: vertical;
|
274
|
+
}
|
275
|
+
|
239
276
|
/*
|
240
277
|
Remove the inner padding in Chrome and Safari on macOS.
|
241
278
|
*/
|
@@ -283,67 +320,137 @@ progress {
|
|
283
320
|
}
|
284
321
|
|
285
322
|
/*
|
286
|
-
|
323
|
+
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
287
324
|
*/
|
288
325
|
|
289
|
-
|
290
|
-
|
326
|
+
:-moz-ui-invalid {
|
327
|
+
box-shadow: none;
|
291
328
|
}
|
292
329
|
|
293
330
|
/*
|
294
|
-
|
331
|
+
Correct the inability to style the border radius in iOS Safari.
|
295
332
|
*/
|
296
333
|
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
334
|
+
button,
|
335
|
+
input:where([type='button'], [type='reset'], [type='submit']),
|
336
|
+
::file-selector-button {
|
337
|
+
appearance: button;
|
301
338
|
}
|
302
339
|
|
303
340
|
/*
|
304
|
-
|
341
|
+
Correct the cursor style of increment and decrement buttons in Safari.
|
305
342
|
*/
|
306
343
|
|
307
|
-
|
308
|
-
|
344
|
+
::-webkit-inner-spin-button,
|
345
|
+
::-webkit-outer-spin-button {
|
346
|
+
height: auto;
|
309
347
|
}
|
310
348
|
|
311
349
|
/*
|
312
|
-
|
313
|
-
2. Set the default placeholder color to a semi-transparent version of the current text color.
|
350
|
+
Apply consistent base form control styles across browsers.
|
314
351
|
*/
|
315
352
|
|
316
|
-
|
317
|
-
|
318
|
-
|
353
|
+
select,
|
354
|
+
textarea,
|
355
|
+
input:where(
|
356
|
+
[type='text'],
|
357
|
+
[type='email'],
|
358
|
+
[type='password'],
|
359
|
+
[type='date'],
|
360
|
+
[type='datetime-local'],
|
361
|
+
[type='month'],
|
362
|
+
[type='number'],
|
363
|
+
[type='search'],
|
364
|
+
[type='time'],
|
365
|
+
[type='week'],
|
366
|
+
[type='tel'],
|
367
|
+
[type='url']
|
368
|
+
) {
|
369
|
+
border-radius: 3px;
|
370
|
+
padding-inline: 4px;
|
371
|
+
padding-block: 2px;
|
372
|
+
color: light-dark(black, white);
|
373
|
+
background-color: light-dark(white, rgb(255 255 255 / 10%));
|
374
|
+
border: 1px solid light-dark(rgb(0 0 0 / 50%), rgb(255 255 255 / 25%));
|
375
|
+
}
|
376
|
+
|
377
|
+
:where(select:not([multiple], [size])) option,
|
378
|
+
:where(select:not([multiple], [size])) optgroup {
|
379
|
+
color: FieldText;
|
380
|
+
background-color: Field;
|
381
|
+
}
|
382
|
+
|
383
|
+
:where(select:is([multiple], [size])) optgroup {
|
384
|
+
font-weight: bold;
|
385
|
+
}
|
386
|
+
|
387
|
+
:where(select:is([multiple], [size])) optgroup option {
|
388
|
+
padding-inline-start: 20px;
|
389
|
+
}
|
390
|
+
|
391
|
+
select:where(:disabled),
|
392
|
+
textarea:where(:disabled),
|
393
|
+
input:where(
|
394
|
+
[type='text'],
|
395
|
+
[type='email'],
|
396
|
+
[type='password'],
|
397
|
+
[type='date'],
|
398
|
+
[type='datetime-local'],
|
399
|
+
[type='month'],
|
400
|
+
[type='number'],
|
401
|
+
[type='search'],
|
402
|
+
[type='time'],
|
403
|
+
[type='week'],
|
404
|
+
[type='tel'],
|
405
|
+
[type='url']
|
406
|
+
):where(:disabled) {
|
407
|
+
opacity: 1;
|
408
|
+
color: light-dark(rgb(0 0 0 / 50%), rgb(255 255 255 / 50%));
|
409
|
+
background-color: light-dark(rgb(0 0 0 / 2.5%), rgb(255 255 255 / 10%));
|
410
|
+
border-color: light-dark(rgb(0 0 0 / 20%), rgb(255 255 255 / 15%));
|
319
411
|
}
|
320
412
|
|
321
413
|
/*
|
322
|
-
|
323
|
-
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
324
|
-
This can trigger a poorly considered lint error in some tools but is included by design.
|
414
|
+
Apply consistent base button styles across browsers.
|
325
415
|
*/
|
326
416
|
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
vertical-align: middle; /* 2 */
|
417
|
+
button,
|
418
|
+
::file-selector-button,
|
419
|
+
input:where([type='button'], [type='reset'], [type='submit']) {
|
420
|
+
border-radius: 4px;
|
421
|
+
padding-inline: 4px;
|
422
|
+
padding-block: 2px;
|
423
|
+
color: light-dark(#000, #fff);
|
424
|
+
background-color: light-dark(rgb(0 0 0 / 5%), rgb(255 255 255 / 40%));
|
425
|
+
border: 1px solid light-dark(rgb(0 0 0 / 50%), rgb(255 255 255 / 10%));
|
337
426
|
}
|
338
427
|
|
339
|
-
|
340
|
-
|
341
|
-
|
428
|
+
button:where(:hover),
|
429
|
+
::file-selector-button:where(:hover),
|
430
|
+
input:where([type='button'], [type='reset'], [type='submit']):where(:hover) {
|
431
|
+
background-color: light-dark(rgb(0 0 0 / 10%), rgb(255 255 255 / 45%));
|
432
|
+
}
|
342
433
|
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
434
|
+
button:where(:active),
|
435
|
+
::file-selector-button:where(:active),
|
436
|
+
input:where([type='button'], [type='reset'], [type='submit']):where(:active) {
|
437
|
+
background-color: light-dark(rgb(0 0 0 / 2.5%), rgb(255 255 255 / 30%));
|
438
|
+
}
|
439
|
+
|
440
|
+
button:where(:disabled),
|
441
|
+
:where(input:disabled)::file-selector-button,
|
442
|
+
input:where([type='button'], [type='reset'], [type='submit']):where(:disabled) {
|
443
|
+
opacity: 1;
|
444
|
+
background-color: light-dark(rgb(0 0 0 / 2.5%), rgb(255 255 255 / 25%));
|
445
|
+
border-color: light-dark(rgb(0 0 0 / 20%), rgb(255 255 255 / 10%));
|
446
|
+
}
|
447
|
+
|
448
|
+
input:where([type='file']:disabled) {
|
449
|
+
color: light-dark(rgb(0 0 0 / 50%), rgb(255 255 255 / 50%));
|
450
|
+
}
|
451
|
+
|
452
|
+
::file-selector-button {
|
453
|
+
margin-inline-end: 4px;
|
347
454
|
}
|
348
455
|
|
349
456
|
/*
|
package/theme.css
CHANGED
@@ -367,10 +367,10 @@
|
|
367
367
|
--inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / 0.05);
|
368
368
|
|
369
369
|
--drop-shadow-xs: 0 1px 1px rgb(0 0 0 / 0.05);
|
370
|
-
--drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.
|
371
|
-
--drop-shadow-md: 0
|
372
|
-
--drop-shadow-lg: 0
|
373
|
-
--drop-shadow-xl: 0
|
370
|
+
--drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.15);
|
371
|
+
--drop-shadow-md: 0 3px 3px rgb(0 0 0 / 0.12);
|
372
|
+
--drop-shadow-lg: 0 4px 4px rgb(0 0 0 / 0.15);
|
373
|
+
--drop-shadow-xl: 0 9px 7px rgb(0 0 0 / 0.1);
|
374
374
|
--drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / 0.15);
|
375
375
|
|
376
376
|
--ease-in: cubic-bezier(0.4, 0, 1, 1);
|