tailwindcss 4.0.0-alpha.7 → 4.0.0-alpha.9
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/lib.d.mts +97 -82
- package/dist/lib.d.ts +97 -82
- package/dist/lib.js +14 -14
- package/dist/lib.mjs +14 -14
- package/package.json +3 -5
- package/preflight.css +22 -43
- package/theme.css +2 -5
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "tailwindcss",
|
3
|
-
"version": "4.0.0-alpha.
|
3
|
+
"version": "4.0.0-alpha.9",
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": "https://github.com/tailwindlabs/tailwindcss.git",
|
@@ -35,12 +35,10 @@
|
|
35
35
|
"theme.css",
|
36
36
|
"utilities.css"
|
37
37
|
],
|
38
|
-
"dependencies": {
|
39
|
-
"lightningcss": "^1.24.0"
|
40
|
-
},
|
41
38
|
"devDependencies": {
|
42
39
|
"@types/node": "^20.10.8",
|
43
|
-
"
|
40
|
+
"lightningcss": "^1.24.0",
|
41
|
+
"@tailwindcss/oxide": "4.0.0-alpha.9"
|
44
42
|
},
|
45
43
|
"scripts": {
|
46
44
|
"lint": "tsc --noEmit",
|
package/preflight.css
CHANGED
@@ -1,21 +1,19 @@
|
|
1
1
|
/*
|
2
|
-
Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
2
|
+
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
3
|
+
2. Remove default margins and padding
|
4
|
+
3. Reset all borders.
|
3
5
|
*/
|
4
6
|
|
5
7
|
*,
|
6
8
|
::after,
|
7
9
|
::before,
|
8
10
|
::backdrop,
|
11
|
+
::first-letter,
|
9
12
|
::file-selector-button {
|
10
|
-
box-sizing: border-box;
|
11
|
-
|
12
|
-
|
13
|
-
/*
|
14
|
-
Remove any default margins.
|
15
|
-
*/
|
16
|
-
|
17
|
-
* {
|
18
|
-
margin: 0;
|
13
|
+
box-sizing: border-box; /* 1 */
|
14
|
+
margin: 0; /* 2 */
|
15
|
+
padding: 0; /* 2 */
|
16
|
+
border: 0 solid; /* 3 */
|
19
17
|
}
|
20
18
|
|
21
19
|
/*
|
@@ -65,7 +63,6 @@ body {
|
|
65
63
|
hr {
|
66
64
|
height: 0; /* 1 */
|
67
65
|
color: inherit; /* 2 */
|
68
|
-
border: 0 solid; /* 3 */
|
69
66
|
border-top-width: 1px; /* 3 */
|
70
67
|
}
|
71
68
|
|
@@ -180,9 +177,7 @@ table {
|
|
180
177
|
|
181
178
|
/*
|
182
179
|
1. Inherit the font styles in all browsers.
|
183
|
-
2.
|
184
|
-
3. Remove the default background color.
|
185
|
-
4. Remove default padding.
|
180
|
+
2. Remove the default background color.
|
186
181
|
*/
|
187
182
|
|
188
183
|
button,
|
@@ -195,20 +190,26 @@ textarea,
|
|
195
190
|
font-feature-settings: inherit; /* 1 */
|
196
191
|
font-variation-settings: inherit; /* 1 */
|
197
192
|
color: inherit; /* 1 */
|
198
|
-
|
199
|
-
|
200
|
-
|
193
|
+
background: transparent; /* 2 */
|
194
|
+
}
|
195
|
+
|
196
|
+
/*
|
197
|
+
Reset the default inset border style for form controls to solid.
|
198
|
+
*/
|
199
|
+
|
200
|
+
input:where(:not([type='button'], [type='reset'], [type='submit'])),
|
201
|
+
select,
|
202
|
+
textarea {
|
203
|
+
border: 1px solid;
|
201
204
|
}
|
202
205
|
|
203
206
|
/*
|
204
|
-
|
205
|
-
2. Make borders opt-in.
|
207
|
+
Correct the inability to style the border radius in iOS Safari.
|
206
208
|
*/
|
207
209
|
button,
|
208
210
|
input:where([type='button'], [type='reset'], [type='submit']),
|
209
211
|
::file-selector-button {
|
210
|
-
appearance: button;
|
211
|
-
border: 0; /* 2 */
|
212
|
+
appearance: button;
|
212
213
|
}
|
213
214
|
|
214
215
|
/*
|
@@ -260,19 +261,6 @@ summary {
|
|
260
261
|
display: list-item;
|
261
262
|
}
|
262
263
|
|
263
|
-
/*
|
264
|
-
Remove the default border and spacing for fieldset and legend elements.
|
265
|
-
*/
|
266
|
-
|
267
|
-
fieldset {
|
268
|
-
border: 0;
|
269
|
-
padding: 0;
|
270
|
-
}
|
271
|
-
|
272
|
-
legend {
|
273
|
-
padding: 0;
|
274
|
-
}
|
275
|
-
|
276
264
|
/*
|
277
265
|
Make lists unstyled by default.
|
278
266
|
*/
|
@@ -281,15 +269,6 @@ ol,
|
|
281
269
|
ul,
|
282
270
|
menu {
|
283
271
|
list-style: none;
|
284
|
-
padding: 0;
|
285
|
-
}
|
286
|
-
|
287
|
-
/*
|
288
|
-
Remove the default padding from dialog elements.
|
289
|
-
*/
|
290
|
-
|
291
|
-
dialog {
|
292
|
-
padding: 0;
|
293
272
|
}
|
294
273
|
|
295
274
|
/*
|
package/theme.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
@theme {
|
2
2
|
/* Defaults */
|
3
3
|
--default-transition-duration: 150ms;
|
4
|
-
--default-transition-timing-function:
|
4
|
+
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
5
5
|
--default-font-family: var(--font-family-sans);
|
6
6
|
--default-font-feature-settings: var(--font-family-sans--font-feature-settings);
|
7
7
|
--default-font-variation-settings: var(--font-family-sans--font-variation-settings);
|
@@ -278,10 +278,8 @@
|
|
278
278
|
--blur-3xl: 64px;
|
279
279
|
|
280
280
|
/* Radii */
|
281
|
-
--radius-none: 0px;
|
282
|
-
--radius-full: 9999px;
|
283
|
-
--radius-sm: 0.125rem;
|
284
281
|
--radius: 0.25rem;
|
282
|
+
--radius-sm: 0.125rem;
|
285
283
|
--radius-md: 0.375rem;
|
286
284
|
--radius-lg: 0.5rem;
|
287
285
|
--radius-xl: 0.75rem;
|
@@ -424,7 +422,6 @@
|
|
424
422
|
--line-height-10: 2.5rem;
|
425
423
|
|
426
424
|
/* Transition timing functions */
|
427
|
-
--transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
428
425
|
--transition-timing-function-linear: linear;
|
429
426
|
--transition-timing-function-in: cubic-bezier(0.4, 0, 1, 1);
|
430
427
|
--transition-timing-function-out: cubic-bezier(0, 0, 0.2, 1);
|