tailwindcss 4.0.0-alpha.6 → 4.0.0-alpha.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "4.0.0-alpha.6",
3
+ "version": "4.0.0-alpha.8",
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",
@@ -23,6 +23,10 @@
23
23
  "./utilities.css": "./utilities.css",
24
24
  "./utilities": "./utilities.css"
25
25
  },
26
+ "publishConfig": {
27
+ "provenance": true,
28
+ "access": "public"
29
+ },
26
30
  "style": "index.css",
27
31
  "files": [
28
32
  "dist",
@@ -36,7 +40,7 @@
36
40
  },
37
41
  "devDependencies": {
38
42
  "@types/node": "^20.10.8",
39
- "@tailwindcss/oxide": "4.0.0-alpha.6"
43
+ "@tailwindcss/oxide": "4.0.0-alpha.8"
40
44
  },
41
45
  "scripts": {
42
46
  "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. Reset the default inset border style to solid.
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
- border: 1px solid; /* 2 */
199
- background: transparent; /* 3 */
200
- padding: 0; /* 4 */
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
- 1. Correct the inability to style the border radius in iOS Safari.
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; /* 1 */
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
@@ -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;