tailwindcss 4.0.0-alpha.31 → 4.0.0-alpha.32

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/plugin.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as PluginFn, C as Config, b as PluginWithConfig, c as PluginWithOptions } from './types-BW7iKs0i.mjs';
2
- import './resolve-config-CCprQPpk.mjs';
1
+ import { a as PluginFn, C as Config, b as PluginWithConfig, c as PluginWithOptions } from './types-1Gt9iRen.mjs';
2
+ import './resolve-config-Oupdq5Vo.mjs';
3
3
  import './colors.mjs';
4
4
 
5
5
  declare function createPlugin(handler: PluginFn, config?: Partial<Config>): PluginWithConfig;
package/dist/plugin.d.ts CHANGED
@@ -18,6 +18,7 @@ interface UserConfig {
18
18
  }
19
19
  interface UserConfig {
20
20
  content?: ContentFile[] | {
21
+ relative?: boolean;
21
22
  files: ContentFile[];
22
23
  };
23
24
  }
@@ -154,7 +154,6 @@ type Candidate =
154
154
  kind: 'static';
155
155
  root: string;
156
156
  variants: Variant[];
157
- negative: boolean;
158
157
  important: boolean;
159
158
  raw: string;
160
159
  }
@@ -173,7 +172,6 @@ type Candidate =
173
172
  value: ArbitraryUtilityValue | NamedUtilityValue | null;
174
173
  modifier: ArbitraryModifier | NamedModifier | null;
175
174
  variants: Variant[];
176
- negative: boolean;
177
175
  important: boolean;
178
176
  raw: string;
179
177
  };
@@ -1,4 +1,4 @@
1
- import { N as NamedUtilityValue, P as PluginUtils } from './resolve-config-CCprQPpk.mjs';
1
+ import { N as NamedUtilityValue, P as PluginUtils } from './resolve-config-Oupdq5Vo.mjs';
2
2
 
3
3
  type Config = UserConfig;
4
4
  type PluginFn = (api: PluginAPI) => void;
@@ -73,6 +73,7 @@ interface UserConfig {
73
73
  }
74
74
  interface UserConfig {
75
75
  content?: ContentFile[] | {
76
+ relative?: boolean;
76
77
  files: ContentFile[];
77
78
  };
78
79
  }
package/index.css CHANGED
@@ -1,94 +1,12 @@
1
1
  @layer theme, base, components, utilities;
2
+
2
3
  @layer theme {
3
4
  @theme default {
4
- /* Defaults */
5
- --default-transition-duration: 150ms;
6
- --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
7
- --default-font-family: var(--font-family-sans);
8
- --default-font-feature-settings: var(
9
- --font-family-sans--font-feature-settings
10
- );
11
- --default-font-variation-settings: var(
12
- --font-family-sans--font-variation-settings
13
- );
14
- --default-mono-font-family: var(--font-family-mono);
15
- --default-mono-font-feature-settings: var(
16
- --font-family-mono--font-feature-settings
17
- );
18
- --default-mono-font-variation-settings: var(
19
- --font-family-mono--font-variation-settings
20
- );
21
-
22
- /* Breakpoints */
23
- --breakpoint-sm: 40rem;
24
- --breakpoint-md: 48rem;
25
- --breakpoint-lg: 64rem;
26
- --breakpoint-xl: 80rem;
27
- --breakpoint-2xl: 96rem;
28
-
29
- /* Colors */
30
- --color-black: #000;
31
- --color-white: #fff;
32
-
33
- --color-slate-50: oklch(0.984 0.003 247.858);
34
- --color-slate-100: oklch(0.968 0.007 247.896);
35
- --color-slate-200: oklch(0.929 0.013 255.508);
36
- --color-slate-300: oklch(0.869 0.022 252.894);
37
- --color-slate-400: oklch(0.704 0.04 256.788);
38
- --color-slate-500: oklch(0.554 0.046 257.417);
39
- --color-slate-600: oklch(0.446 0.043 257.281);
40
- --color-slate-700: oklch(0.372 0.044 257.287);
41
- --color-slate-800: oklch(0.279 0.041 260.031);
42
- --color-slate-900: oklch(0.208 0.042 265.755);
43
- --color-slate-950: oklch(0.129 0.042 264.695);
44
-
45
- --color-gray-50: oklch(0.985 0.002 247.839);
46
- --color-gray-100: oklch(0.967 0.003 264.542);
47
- --color-gray-200: oklch(0.928 0.006 264.531);
48
- --color-gray-300: oklch(0.872 0.01 258.338);
49
- --color-gray-400: oklch(0.707 0.022 261.325);
50
- --color-gray-500: oklch(0.551 0.027 264.364);
51
- --color-gray-600: oklch(0.446 0.03 256.802);
52
- --color-gray-700: oklch(0.373 0.034 259.733);
53
- --color-gray-800: oklch(0.278 0.033 256.848);
54
- --color-gray-900: oklch(0.21 0.034 264.665);
55
- --color-gray-950: oklch(0.13 0.028 261.692);
56
-
57
- --color-zinc-50: oklch(0.985 0 0);
58
- --color-zinc-100: oklch(0.967 0.001 286.375);
59
- --color-zinc-200: oklch(0.92 0.004 286.32);
60
- --color-zinc-300: oklch(0.871 0.006 286.286);
61
- --color-zinc-400: oklch(0.705 0.015 286.067);
62
- --color-zinc-500: oklch(0.552 0.016 285.938);
63
- --color-zinc-600: oklch(0.442 0.017 285.786);
64
- --color-zinc-700: oklch(0.37 0.013 285.805);
65
- --color-zinc-800: oklch(0.274 0.006 286.033);
66
- --color-zinc-900: oklch(0.21 0.006 285.885);
67
- --color-zinc-950: oklch(0.141 0.005 285.823);
68
-
69
- --color-neutral-50: oklch(0.985 0 0);
70
- --color-neutral-100: oklch(0.97 0 0);
71
- --color-neutral-200: oklch(0.922 0 0);
72
- --color-neutral-300: oklch(0.87 0 0);
73
- --color-neutral-400: oklch(0.708 0 0);
74
- --color-neutral-500: oklch(0.556 0 0);
75
- --color-neutral-600: oklch(0.439 0 0);
76
- --color-neutral-700: oklch(0.371 0 0);
77
- --color-neutral-800: oklch(0.269 0 0);
78
- --color-neutral-900: oklch(0.205 0 0);
79
- --color-neutral-950: oklch(0.145 0 0);
80
-
81
- --color-stone-50: oklch(0.985 0.001 106.423);
82
- --color-stone-100: oklch(0.97 0.001 106.424);
83
- --color-stone-200: oklch(0.923 0.003 48.717);
84
- --color-stone-300: oklch(0.869 0.005 56.366);
85
- --color-stone-400: oklch(0.709 0.01 56.259);
86
- --color-stone-500: oklch(0.553 0.013 58.071);
87
- --color-stone-600: oklch(0.444 0.011 73.639);
88
- --color-stone-700: oklch(0.374 0.01 67.558);
89
- --color-stone-800: oklch(0.268 0.007 34.298);
90
- --color-stone-900: oklch(0.216 0.006 56.043);
91
- --color-stone-950: oklch(0.147 0.004 49.25);
5
+ --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
6
+ "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
7
+ --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
8
+ --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
9
+ "Liberation Mono", "Courier New", monospace;
92
10
 
93
11
  --color-red-50: oklch(0.971 0.013 17.38);
94
12
  --color-red-100: oklch(0.936 0.032 17.717);
@@ -294,24 +212,144 @@
294
212
  --color-rose-900: oklch(0.41 0.159 10.272);
295
213
  --color-rose-950: oklch(0.271 0.105 12.094);
296
214
 
297
- /* Animations */
298
- --animate-spin: spin 1s linear infinite;
299
- --animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
300
- --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
301
- --animate-bounce: bounce 1s infinite;
215
+ --color-slate-50: oklch(0.984 0.003 247.858);
216
+ --color-slate-100: oklch(0.968 0.007 247.896);
217
+ --color-slate-200: oklch(0.929 0.013 255.508);
218
+ --color-slate-300: oklch(0.869 0.022 252.894);
219
+ --color-slate-400: oklch(0.704 0.04 256.788);
220
+ --color-slate-500: oklch(0.554 0.046 257.417);
221
+ --color-slate-600: oklch(0.446 0.043 257.281);
222
+ --color-slate-700: oklch(0.372 0.044 257.287);
223
+ --color-slate-800: oklch(0.279 0.041 260.031);
224
+ --color-slate-900: oklch(0.208 0.042 265.755);
225
+ --color-slate-950: oklch(0.129 0.042 264.695);
302
226
 
303
- /* Blurs */
304
- --blur: 8px;
305
- --blur-sm: 4px;
306
- --blur-md: 12px;
307
- --blur-lg: 16px;
308
- --blur-xl: 24px;
309
- --blur-2xl: 40px;
310
- --blur-3xl: 64px;
227
+ --color-gray-50: oklch(0.985 0.002 247.839);
228
+ --color-gray-100: oklch(0.967 0.003 264.542);
229
+ --color-gray-200: oklch(0.928 0.006 264.531);
230
+ --color-gray-300: oklch(0.872 0.01 258.338);
231
+ --color-gray-400: oklch(0.707 0.022 261.325);
232
+ --color-gray-500: oklch(0.551 0.027 264.364);
233
+ --color-gray-600: oklch(0.446 0.03 256.802);
234
+ --color-gray-700: oklch(0.373 0.034 259.733);
235
+ --color-gray-800: oklch(0.278 0.033 256.848);
236
+ --color-gray-900: oklch(0.21 0.034 264.665);
237
+ --color-gray-950: oklch(0.13 0.028 261.692);
311
238
 
312
- /* Radii */
313
- --radius: 0.25rem;
314
- --radius-sm: 0.125rem;
239
+ --color-zinc-50: oklch(0.985 0 0);
240
+ --color-zinc-100: oklch(0.967 0.001 286.375);
241
+ --color-zinc-200: oklch(0.92 0.004 286.32);
242
+ --color-zinc-300: oklch(0.871 0.006 286.286);
243
+ --color-zinc-400: oklch(0.705 0.015 286.067);
244
+ --color-zinc-500: oklch(0.552 0.016 285.938);
245
+ --color-zinc-600: oklch(0.442 0.017 285.786);
246
+ --color-zinc-700: oklch(0.37 0.013 285.805);
247
+ --color-zinc-800: oklch(0.274 0.006 286.033);
248
+ --color-zinc-900: oklch(0.21 0.006 285.885);
249
+ --color-zinc-950: oklch(0.141 0.005 285.823);
250
+
251
+ --color-neutral-50: oklch(0.985 0 0);
252
+ --color-neutral-100: oklch(0.97 0 0);
253
+ --color-neutral-200: oklch(0.922 0 0);
254
+ --color-neutral-300: oklch(0.87 0 0);
255
+ --color-neutral-400: oklch(0.708 0 0);
256
+ --color-neutral-500: oklch(0.556 0 0);
257
+ --color-neutral-600: oklch(0.439 0 0);
258
+ --color-neutral-700: oklch(0.371 0 0);
259
+ --color-neutral-800: oklch(0.269 0 0);
260
+ --color-neutral-900: oklch(0.205 0 0);
261
+ --color-neutral-950: oklch(0.145 0 0);
262
+
263
+ --color-stone-50: oklch(0.985 0.001 106.423);
264
+ --color-stone-100: oklch(0.97 0.001 106.424);
265
+ --color-stone-200: oklch(0.923 0.003 48.717);
266
+ --color-stone-300: oklch(0.869 0.005 56.366);
267
+ --color-stone-400: oklch(0.709 0.01 56.259);
268
+ --color-stone-500: oklch(0.553 0.013 58.071);
269
+ --color-stone-600: oklch(0.444 0.011 73.639);
270
+ --color-stone-700: oklch(0.374 0.01 67.558);
271
+ --color-stone-800: oklch(0.268 0.007 34.298);
272
+ --color-stone-900: oklch(0.216 0.006 56.043);
273
+ --color-stone-950: oklch(0.147 0.004 49.25);
274
+
275
+ --color-black: #000;
276
+ --color-white: #fff;
277
+
278
+ --spacing: 0.25rem;
279
+
280
+ --breakpoint-sm: 40rem;
281
+ --breakpoint-md: 48rem;
282
+ --breakpoint-lg: 64rem;
283
+ --breakpoint-xl: 80rem;
284
+ --breakpoint-2xl: 96rem;
285
+
286
+ --container-3xs: 16rem;
287
+ --container-2xs: 18rem;
288
+ --container-xs: 20rem;
289
+ --container-sm: 24rem;
290
+ --container-md: 28rem;
291
+ --container-lg: 32rem;
292
+ --container-xl: 36rem;
293
+ --container-2xl: 42rem;
294
+ --container-3xl: 48rem;
295
+ --container-4xl: 56rem;
296
+ --container-5xl: 64rem;
297
+ --container-6xl: 72rem;
298
+ --container-7xl: 80rem;
299
+ --container-prose: 65ch;
300
+
301
+ --text-xs: 0.75rem;
302
+ --text-xs--line-height: 1rem;
303
+ --text-sm: 0.875rem;
304
+ --text-sm--line-height: 1.25rem;
305
+ --text-base: 1rem;
306
+ --text-base--line-height: 1.5rem;
307
+ --text-lg: 1.125rem;
308
+ --text-lg--line-height: 1.75rem;
309
+ --text-xl: 1.25rem;
310
+ --text-xl--line-height: 1.75rem;
311
+ --text-2xl: 1.5rem;
312
+ --text-2xl--line-height: 2rem;
313
+ --text-3xl: 1.875rem;
314
+ --text-3xl--line-height: 2.25rem;
315
+ --text-4xl: 2.25rem;
316
+ --text-4xl--line-height: 2.5rem;
317
+ --text-5xl: 3rem;
318
+ --text-5xl--line-height: 1;
319
+ --text-6xl: 3.75rem;
320
+ --text-6xl--line-height: 1;
321
+ --text-7xl: 4.5rem;
322
+ --text-7xl--line-height: 1;
323
+ --text-8xl: 6rem;
324
+ --text-8xl--line-height: 1;
325
+ --text-9xl: 8rem;
326
+ --text-9xl--line-height: 1;
327
+
328
+ --font-weight-thin: 100;
329
+ --font-weight-extralight: 200;
330
+ --font-weight-light: 300;
331
+ --font-weight-normal: 400;
332
+ --font-weight-medium: 500;
333
+ --font-weight-semibold: 600;
334
+ --font-weight-bold: 700;
335
+ --font-weight-extrabold: 800;
336
+ --font-weight-black: 900;
337
+
338
+ --tracking-tighter: -0.05em;
339
+ --tracking-tight: -0.025em;
340
+ --tracking-normal: 0em;
341
+ --tracking-wide: 0.025em;
342
+ --tracking-wider: 0.05em;
343
+ --tracking-widest: 0.1em;
344
+
345
+ --leading-tight: 1.25;
346
+ --leading-snug: 1.375;
347
+ --leading-normal: 1.5;
348
+ --leading-relaxed: 1.625;
349
+ --leading-loose: 2;
350
+
351
+ --radius-xs: 0.125rem;
352
+ --radius-sm: 0.25rem;
315
353
  --radius-md: 0.375rem;
316
354
  --radius-lg: 0.5rem;
317
355
  --radius-xl: 0.75rem;
@@ -319,10 +357,9 @@
319
357
  --radius-3xl: 1.5rem;
320
358
  --radius-4xl: 2rem;
321
359
 
322
- /* Shadows */
323
- --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
324
- --shadow-xs: 0 1px rgb(0 0 0 / 0.05);
325
- --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
360
+ --shadow-2xs: 0 1px rgb(0 0 0 / 0.05);
361
+ --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
362
+ --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
326
363
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1),
327
364
  0 2px 4px -2px rgb(0 0 0 / 0.1);
328
365
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
@@ -330,148 +367,26 @@
330
367
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
331
368
  0 8px 10px -6px rgb(0 0 0 / 0.1);
332
369
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
333
- --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
334
370
 
335
- /* Inset shadows */
336
- --inset-shadow-xs: inset 0 1px rgb(0 0 0 / 0.05);
337
- --inset-shadow-sm: inset 0 1px 1px rgb(0 0 0 / 0.05);
338
- --inset-shadow: inset 0 2px 4px rgb(0 0 0 / 0.05);
371
+ --inset-shadow-2xs: inset 0 1px rgb(0 0 0 / 0.05);
372
+ --inset-shadow-xs: inset 0 1px 1px rgb(0 0 0 / 0.05);
373
+ --inset-shadow-sm: inset 0 2px 4px rgb(0 0 0 / 0.05);
339
374
 
340
- /* Drop shadows */
341
- --drop-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06);
342
- --drop-shadow-sm: 0 1px 1px rgb(0 0 0 / 0.05);
375
+ --drop-shadow-xs: 0 1px 1px rgb(0 0 0 / 0.05);
376
+ --drop-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06);
343
377
  --drop-shadow-md: 0 4px 3px rgb(0 0 0 / 0.07), 0 2px 2px rgb(0 0 0 / 0.06);
344
378
  --drop-shadow-lg: 0 10px 8px rgb(0 0 0 / 0.04), 0 4px 3px rgb(0 0 0 / 0.1);
345
379
  --drop-shadow-xl: 0 20px 13px rgb(0 0 0 / 0.03), 0 8px 5px rgb(0 0 0 / 0.08);
346
380
  --drop-shadow-2xl: 0 25px 25px rgb(0 0 0 / 0.15);
347
- --drop-shadow-none: 0 0 #0000;
348
-
349
- /* Spacing */
350
- --spacing-px: 1px;
351
- --spacing-0: 0px;
352
- --spacing-0_5: 0.125rem;
353
- --spacing-1: 0.25rem;
354
- --spacing-1_5: 0.375rem;
355
- --spacing-2: 0.5rem;
356
- --spacing-2_5: 0.625rem;
357
- --spacing-3: 0.75rem;
358
- --spacing-3_5: 0.875rem;
359
- --spacing-4: 1rem;
360
- --spacing-5: 1.25rem;
361
- --spacing-6: 1.5rem;
362
- --spacing-7: 1.75rem;
363
- --spacing-8: 2rem;
364
- --spacing-9: 2.25rem;
365
- --spacing-10: 2.5rem;
366
- --spacing-11: 2.75rem;
367
- --spacing-12: 3rem;
368
- --spacing-14: 3.5rem;
369
- --spacing-16: 4rem;
370
- --spacing-20: 5rem;
371
- --spacing-24: 6rem;
372
- --spacing-28: 7rem;
373
- --spacing-32: 8rem;
374
- --spacing-36: 9rem;
375
- --spacing-40: 10rem;
376
- --spacing-44: 11rem;
377
- --spacing-48: 12rem;
378
- --spacing-52: 13rem;
379
- --spacing-56: 14rem;
380
- --spacing-60: 15rem;
381
- --spacing-64: 16rem;
382
- --spacing-72: 18rem;
383
- --spacing-80: 20rem;
384
- --spacing-96: 24rem;
385
-
386
- /* Widths */
387
- --width-3xs: 16rem;
388
- --width-2xs: 18rem;
389
- --width-xs: 20rem;
390
- --width-sm: 24rem;
391
- --width-md: 28rem;
392
- --width-lg: 32rem;
393
- --width-xl: 36rem;
394
- --width-2xl: 42rem;
395
- --width-3xl: 48rem;
396
- --width-4xl: 56rem;
397
- --width-5xl: 64rem;
398
- --width-6xl: 72rem;
399
- --width-7xl: 80rem;
400
- --width-prose: 65ch;
401
-
402
- /* Fonts */
403
- --font-family-sans: ui-sans-serif, system-ui, sans-serif,
404
- "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
405
- "Noto Color Emoji";
406
- --font-family-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times,
407
- serif;
408
- --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
409
- "Liberation Mono", "Courier New", monospace;
410
381
 
411
- /* Type scale */
412
- --font-size-xs: 0.75rem;
413
- --font-size-xs--line-height: 1rem;
414
- --font-size-sm: 0.875rem;
415
- --font-size-sm--line-height: 1.25rem;
416
- --font-size-base: 1rem;
417
- --font-size-base--line-height: 1.5rem;
418
- --font-size-lg: 1.125rem;
419
- --font-size-lg--line-height: 1.75rem;
420
- --font-size-xl: 1.25rem;
421
- --font-size-xl--line-height: 1.75rem;
422
- --font-size-2xl: 1.5rem;
423
- --font-size-2xl--line-height: 2rem;
424
- --font-size-3xl: 1.875rem;
425
- --font-size-3xl--line-height: 2.25rem;
426
- --font-size-4xl: 2.25rem;
427
- --font-size-4xl--line-height: 2.5rem;
428
- --font-size-5xl: 3rem;
429
- --font-size-5xl--line-height: 1;
430
- --font-size-6xl: 3.75rem;
431
- --font-size-6xl--line-height: 1;
432
- --font-size-7xl: 4.5rem;
433
- --font-size-7xl--line-height: 1;
434
- --font-size-8xl: 6rem;
435
- --font-size-8xl--line-height: 1;
436
- --font-size-9xl: 8rem;
437
- --font-size-9xl--line-height: 1;
438
-
439
- /* Letter spacing */
440
- --letter-spacing-tighter: -0.05em;
441
- --letter-spacing-tight: -0.025em;
442
- --letter-spacing-normal: 0em;
443
- --letter-spacing-wide: 0.025em;
444
- --letter-spacing-wider: 0.05em;
445
- --letter-spacing-widest: 0.1em;
446
-
447
- /* Line-height */
448
- --line-height-none: 1;
449
- --line-height-tight: 1.25;
450
- --line-height-snug: 1.375;
451
- --line-height-normal: 1.5;
452
- --line-height-relaxed: 1.625;
453
- --line-height-loose: 2;
454
- --line-height-3: 0.75rem;
455
- --line-height-4: 1rem;
456
- --line-height-5: 1.25rem;
457
- --line-height-6: 1.5rem;
458
- --line-height-7: 1.75rem;
459
- --line-height-8: 2rem;
460
- --line-height-9: 2.25rem;
461
- --line-height-10: 2.5rem;
462
-
463
- /* 3D perspectives */
464
- --perspective-dramatic: 100px;
465
- --perspective-near: 300px;
466
- --perspective-normal: 500px;
467
- --perspective-midrange: 800px;
468
- --perspective-distant: 1200px;
382
+ --ease-in: cubic-bezier(0.4, 0, 1, 1);
383
+ --ease-out: cubic-bezier(0, 0, 0.2, 1);
384
+ --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
469
385
 
470
- /* Transition timing functions */
471
- --transition-timing-function-linear: linear;
472
- --transition-timing-function-in: cubic-bezier(0.4, 0, 1, 1);
473
- --transition-timing-function-out: cubic-bezier(0, 0, 0.2, 1);
474
- --transition-timing-function-in-out: cubic-bezier(0.4, 0, 0.2, 1);
386
+ --animate-spin: spin 1s linear infinite;
387
+ --animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
388
+ --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
389
+ --animate-bounce: bounce 1s infinite;
475
390
 
476
391
  @keyframes spin {
477
392
  to {
@@ -505,8 +420,47 @@
505
420
  animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
506
421
  }
507
422
  }
423
+
424
+ --blur-xs: 4px;
425
+ --blur-sm: 8px;
426
+ --blur-md: 12px;
427
+ --blur-lg: 16px;
428
+ --blur-xl: 24px;
429
+ --blur-2xl: 40px;
430
+ --blur-3xl: 64px;
431
+
432
+ --perspective-dramatic: 100px;
433
+ --perspective-near: 300px;
434
+ --perspective-normal: 500px;
435
+ --perspective-midrange: 800px;
436
+ --perspective-distant: 1200px;
437
+
438
+ --default-transition-duration: 150ms;
439
+ --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
440
+ --default-font-family: var(--font-sans);
441
+ --default-font-feature-settings: var(--font-sans--font-feature-settings);
442
+ --default-font-variation-settings: var(
443
+ --font-sans--font-variation-settings
444
+ );
445
+ --default-mono-font-family: var(--font-mono);
446
+ --default-mono-font-feature-settings: var(
447
+ --font-mono--font-feature-settings
448
+ );
449
+ --default-mono-font-variation-settings: var(
450
+ --font-mono--font-variation-settings
451
+ );
452
+ }
453
+
454
+ /* Deprecated */
455
+ @theme default inline reference {
456
+ --blur: 8px;
457
+ --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
458
+ --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
459
+ --drop-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.06);
460
+ --radius: 0.25rem;
508
461
  }
509
462
  }
463
+
510
464
  @layer base {
511
465
  /*
512
466
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
@@ -694,8 +648,7 @@
694
648
  }
695
649
 
696
650
  /*
697
- 1. Inherit the font styles in all browsers.
698
- 2. Remove the default background color.
651
+ Inherit font styles in all browsers.
699
652
  */
700
653
 
701
654
  button,
@@ -704,31 +657,23 @@
704
657
  select,
705
658
  textarea,
706
659
  ::file-selector-button {
707
- font: inherit; /* 1 */
708
- font-feature-settings: inherit; /* 1 */
709
- font-variation-settings: inherit; /* 1 */
710
- letter-spacing: inherit; /* 1 */
711
- color: inherit; /* 1 */
712
- background: transparent; /* 2 */
660
+ font: inherit;
661
+ font-feature-settings: inherit;
662
+ font-variation-settings: inherit;
663
+ letter-spacing: inherit;
664
+ color: inherit;
713
665
  }
714
666
 
715
667
  /*
716
- Reset the default inset border style for form controls to solid.
668
+ 1. Remove the default background color of buttons by default.
669
+ 2. Correct the inability to style the border radius in iOS Safari.
717
670
  */
718
671
 
719
- input:where(:not([type="button"], [type="reset"], [type="submit"])),
720
- select,
721
- textarea {
722
- border-width: 1px;
723
- }
724
-
725
- /*
726
- Correct the inability to style the border radius in iOS Safari.
727
- */
728
672
  button,
729
673
  input:where([type="button"], [type="reset"], [type="submit"]),
730
674
  ::file-selector-button {
731
- appearance: button;
675
+ background: transparent; /* 1 */
676
+ appearance: button; /* 2 */
732
677
  }
733
678
 
734
679
  /*
@@ -772,6 +717,38 @@
772
717
  -webkit-appearance: none;
773
718
  }
774
719
 
720
+ /*
721
+ 1. Ensure date/time inputs have the same height when empty in iOS Safari.
722
+ 2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
723
+ */
724
+ ::-webkit-date-and-time-value {
725
+ min-height: 1lh; /* 1 */
726
+ text-align: inherit; /* 2 */
727
+ }
728
+
729
+ /*
730
+ Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
731
+ */
732
+ ::-webkit-datetime-edit {
733
+ display: inline-flex;
734
+ }
735
+
736
+ /*
737
+ Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
738
+ */
739
+ ::-webkit-datetime-edit,
740
+ ::-webkit-datetime-edit-year-field,
741
+ ::-webkit-datetime-edit-month-field,
742
+ ::-webkit-datetime-edit-day-field,
743
+ ::-webkit-datetime-edit-hour-field,
744
+ ::-webkit-datetime-edit-minute-field,
745
+ ::-webkit-datetime-edit-second-field,
746
+ ::-webkit-datetime-edit-millisecond-field,
747
+ ::-webkit-datetime-edit-meridiem-field,
748
+ ::-webkit-datetime-edit-fields-wrapper {
749
+ padding: 0;
750
+ }
751
+
775
752
  /*
776
753
  Add the correct display in Chrome and Safari.
777
754
  */
@@ -844,6 +821,7 @@
844
821
  display: none !important;
845
822
  }
846
823
  }
824
+
847
825
  @layer utilities {
848
826
  @tailwind utilities;
849
827
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "4.0.0-alpha.31",
3
+ "version": "4.0.0-alpha.32",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -67,7 +67,7 @@
67
67
  "@types/node": "^20.14.8",
68
68
  "lightningcss": "^1.26.0",
69
69
  "dedent": "1.5.3",
70
- "@tailwindcss/oxide": "4.0.0-alpha.31"
70
+ "@tailwindcss/oxide": "4.0.0-alpha.32"
71
71
  },
72
72
  "scripts": {
73
73
  "lint": "tsc --noEmit",