tailwindcss 4.0.0-alpha.1 → 4.0.0-alpha.11

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,14 +1,11 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "4.0.0-alpha.1",
3
+ "version": "4.0.0-alpha.11",
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",
7
7
  "bugs": "https://github.com/tailwindlabs/tailwindcss/issues",
8
8
  "homepage": "https://tailwindcss.com",
9
- "bin": {
10
- "tailwindcss": "./dist/cli.js"
11
- },
12
9
  "exports": {
13
10
  ".": {
14
11
  "types": "./dist/lib.d.mts",
@@ -18,9 +15,17 @@
18
15
  },
19
16
  "./package.json": "./package.json",
20
17
  "./index.css": "./index.css",
18
+ "./index": "./index.css",
21
19
  "./preflight.css": "./preflight.css",
20
+ "./preflight": "./preflight.css",
22
21
  "./theme.css": "./theme.css",
23
- "./utilities.css": "./utilities.css"
22
+ "./theme": "./theme.css",
23
+ "./utilities.css": "./utilities.css",
24
+ "./utilities": "./utilities.css"
25
+ },
26
+ "publishConfig": {
27
+ "provenance": true,
28
+ "access": "public"
24
29
  },
25
30
  "style": "index.css",
26
31
  "files": [
@@ -30,18 +35,10 @@
30
35
  "theme.css",
31
36
  "utilities.css"
32
37
  ],
33
- "dependencies": {
34
- "@parcel/watcher": "^2.4.1",
35
- "lightningcss": "^1.24.0",
36
- "mri": "^1.2.0",
37
- "picocolors": "^1.0.0",
38
- "postcss": "8.4.24",
39
- "postcss-import": "^16.0.0"
40
- },
41
38
  "devDependencies": {
42
39
  "@types/node": "^20.10.8",
43
- "@types/postcss-import": "^14.0.3",
44
- "@tailwindcss/oxide": "4.0.0-alpha.1"
40
+ "lightningcss": "^1.24.0",
41
+ "@tailwindcss/oxide": "4.0.0-alpha.11"
45
42
  },
46
43
  "scripts": {
47
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. 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,
@@ -194,21 +189,28 @@ textarea,
194
189
  font: inherit; /* 1 */
195
190
  font-feature-settings: inherit; /* 1 */
196
191
  font-variation-settings: inherit; /* 1 */
192
+ letter-spacing: inherit; /* 1 */
197
193
  color: inherit; /* 1 */
198
- border: 1px solid; /* 2 */
199
- background: transparent; /* 3 */
200
- padding: 0; /* 4 */
194
+ background: transparent; /* 2 */
195
+ }
196
+
197
+ /*
198
+ Reset the default inset border style for form controls to solid.
199
+ */
200
+
201
+ input:where(:not([type='button'], [type='reset'], [type='submit'])),
202
+ select,
203
+ textarea {
204
+ border: 1px solid;
201
205
  }
202
206
 
203
207
  /*
204
- 1. Correct the inability to style the border radius in iOS Safari.
205
- 2. Make borders opt-in.
208
+ Correct the inability to style the border radius in iOS Safari.
206
209
  */
207
210
  button,
208
211
  input:where([type='button'], [type='reset'], [type='submit']),
209
212
  ::file-selector-button {
210
- appearance: button; /* 1 */
211
- border: 0; /* 2 */
213
+ appearance: button;
212
214
  }
213
215
 
214
216
  /*
@@ -260,19 +262,6 @@ summary {
260
262
  display: list-item;
261
263
  }
262
264
 
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
265
  /*
277
266
  Make lists unstyled by default.
278
267
  */
@@ -281,15 +270,6 @@ ol,
281
270
  ul,
282
271
  menu {
283
272
  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
273
  }
294
274
 
295
275
  /*
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: var(--transition-timing-function-in-out);
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;
@@ -423,8 +421,14 @@
423
421
  --line-height-9: 2.25rem;
424
422
  --line-height-10: 2.5rem;
425
423
 
424
+ /* 3D perspectives */
425
+ --perspective-dramatic: 100px;
426
+ --perspective-near: 300px;
427
+ --perspective-normal: 500px;
428
+ --perspective-midrange: 800px;
429
+ --perspective-distant: 1200px;
430
+
426
431
  /* Transition timing functions */
427
- --transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
428
432
  --transition-timing-function-linear: linear;
429
433
  --transition-timing-function-in: cubic-bezier(0.4, 0, 1, 1);
430
434
  --transition-timing-function-out: cubic-bezier(0, 0, 0.2, 1);