tailwindcss 0.0.0-oxide.2 → 0.0.0-oxide.4
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-VA4PAOBV.mjs → chunk-BU3RKWVW.mjs} +1504 -655
- package/dist/cli.d.mts +1 -2
- package/dist/cli.d.ts +1 -2
- package/dist/cli.js +1506 -663
- package/dist/cli.mjs +5 -11
- package/dist/lib.d.mts +98 -18
- package/dist/lib.d.ts +98 -18
- package/dist/lib.js +1504 -587
- package/dist/lib.mjs +1 -1
- package/package.json +2 -3
- package/preflight.css +43 -92
- package/theme.css +0 -3
package/dist/lib.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { __unstable__loadDesignSystem, compile, optimizeCss } from './chunk-BU3RKWVW.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tailwindcss",
|
|
3
|
-
"version": "0.0.0-oxide.
|
|
3
|
+
"version": "0.0.0-oxide.4",
|
|
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",
|
|
@@ -41,8 +41,7 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/node": "^20.10.8",
|
|
43
43
|
"@types/postcss-import": "^14.0.3",
|
|
44
|
-
"
|
|
45
|
-
"@tailwindcss/oxide": "0.0.0-oxide.2"
|
|
44
|
+
"@tailwindcss/oxide": "0.0.0-oxide.4"
|
|
46
45
|
},
|
|
47
46
|
"scripts": {
|
|
48
47
|
"lint": "tsc --noEmit",
|
package/preflight.css
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
/*
|
|
2
|
-
|
|
3
|
-
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
|
|
2
|
+
Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
*,
|
|
7
|
-
::before,
|
|
8
6
|
::after,
|
|
7
|
+
::before,
|
|
9
8
|
::backdrop,
|
|
10
|
-
::first-letter,
|
|
11
9
|
::file-selector-button {
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
Remove any default margins.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
* {
|
|
18
|
+
margin: 0;
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
/*
|
|
@@ -29,7 +32,6 @@ html,
|
|
|
29
32
|
:host {
|
|
30
33
|
line-height: 1.5; /* 1 */
|
|
31
34
|
-webkit-text-size-adjust: 100%; /* 2 */
|
|
32
|
-
-moz-tab-size: 4; /* 3 */
|
|
33
35
|
tab-size: 4; /* 3 */
|
|
34
36
|
font-family: var(
|
|
35
37
|
--default-font-family,
|
|
@@ -47,24 +49,23 @@ html,
|
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
/*
|
|
50
|
-
|
|
51
|
-
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
|
|
52
|
+
Inherit line-height from `html` so users can set them as a class directly on the `html` element.
|
|
52
53
|
*/
|
|
53
54
|
|
|
54
55
|
body {
|
|
55
|
-
|
|
56
|
-
line-height: inherit; /* 2 */
|
|
56
|
+
line-height: inherit;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/*
|
|
60
60
|
1. Add the correct height in Firefox.
|
|
61
61
|
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
|
62
|
-
3.
|
|
62
|
+
3. Reset the default border style to a 1px solid border.
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
65
|
hr {
|
|
66
66
|
height: 0; /* 1 */
|
|
67
67
|
color: inherit; /* 2 */
|
|
68
|
+
border: 0 solid; /* 3 */
|
|
68
69
|
border-top-width: 1px; /* 3 */
|
|
69
70
|
}
|
|
70
71
|
|
|
@@ -178,48 +179,36 @@ table {
|
|
|
178
179
|
}
|
|
179
180
|
|
|
180
181
|
/*
|
|
181
|
-
1.
|
|
182
|
-
2.
|
|
183
|
-
3. Remove default
|
|
182
|
+
1. Inherit the font styles in all browsers.
|
|
183
|
+
2. Reset the default inset border style to solid.
|
|
184
|
+
3. Remove the default background color.
|
|
185
|
+
4. Remove default padding.
|
|
184
186
|
*/
|
|
185
187
|
|
|
186
188
|
button,
|
|
187
189
|
input,
|
|
188
190
|
optgroup,
|
|
189
191
|
select,
|
|
190
|
-
textarea
|
|
191
|
-
|
|
192
|
+
textarea,
|
|
193
|
+
::file-selector-button {
|
|
194
|
+
font: inherit; /* 1 */
|
|
192
195
|
font-feature-settings: inherit; /* 1 */
|
|
193
196
|
font-variation-settings: inherit; /* 1 */
|
|
194
|
-
font-size: 100%; /* 1 */
|
|
195
|
-
font-weight: inherit; /* 1 */
|
|
196
|
-
line-height: inherit; /* 1 */
|
|
197
197
|
color: inherit; /* 1 */
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
/*
|
|
203
|
-
Remove the inheritance of text transform in Edge and Firefox.
|
|
204
|
-
*/
|
|
205
|
-
|
|
206
|
-
button,
|
|
207
|
-
select {
|
|
208
|
-
text-transform: none;
|
|
198
|
+
border: 1px solid; /* 2 */
|
|
199
|
+
background: transparent; /* 3 */
|
|
200
|
+
padding: 0; /* 4 */
|
|
209
201
|
}
|
|
210
202
|
|
|
211
203
|
/*
|
|
212
|
-
1. Correct the inability to style
|
|
213
|
-
2.
|
|
204
|
+
1. Correct the inability to style the border radius in iOS Safari.
|
|
205
|
+
2. Make borders opt-in.
|
|
214
206
|
*/
|
|
215
|
-
|
|
216
207
|
button,
|
|
217
|
-
input:where([type='button']),
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
background-color: transparent; /* 2 */
|
|
222
|
-
background-image: none; /* 2 */
|
|
208
|
+
input:where([type='button'], [type='reset'], [type='submit']),
|
|
209
|
+
::file-selector-button {
|
|
210
|
+
appearance: button; /* 1 */
|
|
211
|
+
border: 0; /* 2 */
|
|
223
212
|
}
|
|
224
213
|
|
|
225
214
|
/*
|
|
@@ -232,7 +221,7 @@ input:where([type='submit']) {
|
|
|
232
221
|
|
|
233
222
|
/*
|
|
234
223
|
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
|
235
|
-
|
|
224
|
+
*/
|
|
236
225
|
|
|
237
226
|
:-moz-ui-invalid {
|
|
238
227
|
box-shadow: none;
|
|
@@ -255,16 +244,6 @@ progress {
|
|
|
255
244
|
height: auto;
|
|
256
245
|
}
|
|
257
246
|
|
|
258
|
-
/*
|
|
259
|
-
1. Correct the odd appearance in Chrome and Safari.
|
|
260
|
-
2. Correct the outline style in Safari.
|
|
261
|
-
*/
|
|
262
|
-
|
|
263
|
-
[type='search'] {
|
|
264
|
-
-webkit-appearance: textfield; /* 1 */
|
|
265
|
-
outline-offset: -2px; /* 2 */
|
|
266
|
-
}
|
|
267
|
-
|
|
268
247
|
/*
|
|
269
248
|
Remove the inner padding in Chrome and Safari on macOS.
|
|
270
249
|
*/
|
|
@@ -273,16 +252,6 @@ progress {
|
|
|
273
252
|
-webkit-appearance: none;
|
|
274
253
|
}
|
|
275
254
|
|
|
276
|
-
/*
|
|
277
|
-
1. Correct the inability to style clickable types in iOS and Safari.
|
|
278
|
-
2. Change font properties to `inherit` in Safari.
|
|
279
|
-
*/
|
|
280
|
-
|
|
281
|
-
::-webkit-file-upload-button {
|
|
282
|
-
-webkit-appearance: button; /* 1 */
|
|
283
|
-
font: inherit; /* 2 */
|
|
284
|
-
}
|
|
285
|
-
|
|
286
255
|
/*
|
|
287
256
|
Add the correct display in Chrome and Safari.
|
|
288
257
|
*/
|
|
@@ -292,27 +261,11 @@ summary {
|
|
|
292
261
|
}
|
|
293
262
|
|
|
294
263
|
/*
|
|
295
|
-
|
|
264
|
+
Remove the default border and spacing for fieldset and legend elements.
|
|
296
265
|
*/
|
|
297
266
|
|
|
298
|
-
blockquote,
|
|
299
|
-
dl,
|
|
300
|
-
dd,
|
|
301
|
-
h1,
|
|
302
|
-
h2,
|
|
303
|
-
h3,
|
|
304
|
-
h4,
|
|
305
|
-
h5,
|
|
306
|
-
h6,
|
|
307
|
-
hr,
|
|
308
|
-
figure,
|
|
309
|
-
p,
|
|
310
|
-
pre {
|
|
311
|
-
margin: 0;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
267
|
fieldset {
|
|
315
|
-
|
|
268
|
+
border: 0;
|
|
316
269
|
padding: 0;
|
|
317
270
|
}
|
|
318
271
|
|
|
@@ -320,14 +273,21 @@ legend {
|
|
|
320
273
|
padding: 0;
|
|
321
274
|
}
|
|
322
275
|
|
|
276
|
+
/*
|
|
277
|
+
Make lists unstyled by default.
|
|
278
|
+
*/
|
|
279
|
+
|
|
323
280
|
ol,
|
|
324
281
|
ul,
|
|
325
282
|
menu {
|
|
326
283
|
list-style: none;
|
|
327
|
-
margin: 0;
|
|
328
284
|
padding: 0;
|
|
329
285
|
}
|
|
330
286
|
|
|
287
|
+
/*
|
|
288
|
+
Remove the default padding from dialog elements.
|
|
289
|
+
*/
|
|
290
|
+
|
|
331
291
|
dialog {
|
|
332
292
|
padding: 0;
|
|
333
293
|
}
|
|
@@ -350,15 +310,6 @@ textarea {
|
|
|
350
310
|
color: color-mix(in srgb, currentColor 50%, transparent); /* 2 */
|
|
351
311
|
}
|
|
352
312
|
|
|
353
|
-
/*
|
|
354
|
-
Set the default cursor for buttons.
|
|
355
|
-
*/
|
|
356
|
-
|
|
357
|
-
button,
|
|
358
|
-
[role='button'] {
|
|
359
|
-
cursor: pointer;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
313
|
/*
|
|
363
314
|
Make sure disabled buttons don't get the pointer cursor.
|
|
364
315
|
*/
|
|
@@ -400,5 +351,5 @@ video {
|
|
|
400
351
|
*/
|
|
401
352
|
|
|
402
353
|
[hidden] {
|
|
403
|
-
display: none;
|
|
354
|
+
display: none !important;
|
|
404
355
|
}
|
package/theme.css
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
@theme {
|
|
2
2
|
/* Defaults */
|
|
3
|
-
--default-border-color: var(--color-gray-200);
|
|
4
3
|
--default-transition-duration: 150ms;
|
|
5
4
|
--default-transition-timing-function: var(--transition-timing-function-in-out);
|
|
6
|
-
--default-ring-color: color-mix(in srgb, var(--color-blue-500) 50%, transparent);
|
|
7
|
-
--default-ring-width: 3px;
|
|
8
5
|
--default-font-family: var(--font-family-sans);
|
|
9
6
|
--default-font-feature-settings: var(--font-family-sans--font-feature-settings);
|
|
10
7
|
--default-font-variation-settings: var(--font-family-sans--font-variation-settings);
|