tailwindcss 4.0.0-alpha.26 → 4.0.0-alpha.27
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/colors-DW5ZbNUm.d.ts +295 -0
- package/dist/colors.d.ts +3 -293
- package/dist/default-theme.d.mts +2 -1
- package/dist/default-theme.d.ts +2 -1
- package/dist/lib.d.mts +10 -5
- package/dist/lib.js +15 -15
- package/dist/lib.mjs +15 -15
- package/dist/plugin.d.mts +3 -2
- package/dist/plugin.d.ts +2 -1
- package/dist/{resolve-config-BX2SkbLq.d.mts → resolve-config-CG6sB2SD.d.mts} +6 -3
- package/dist/{resolve-config-CT1JRAbd.d.ts → resolve-config-CtRHmw46.d.ts} +6 -3
- package/dist/{types-iJZbIaeF.d.mts → types-Dp5wjirW.d.mts} +1 -1
- package/index.css +1 -1
- package/package.json +14 -2
- package/preflight.css +1 -1
package/dist/plugin.d.mts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
import { a as PluginFn, C as Config, b as PluginWithConfig, c as PluginWithOptions } from './types-
|
2
|
-
import './resolve-config-
|
1
|
+
import { a as PluginFn, C as Config, b as PluginWithConfig, c as PluginWithOptions } from './types-Dp5wjirW.mjs';
|
2
|
+
import './resolve-config-CG6sB2SD.mjs';
|
3
|
+
import './colors.mjs';
|
3
4
|
|
4
5
|
declare function createPlugin(handler: PluginFn, config?: Partial<Config>): PluginWithConfig;
|
5
6
|
declare namespace createPlugin {
|
package/dist/plugin.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
import { P as PluginUtils, N as NamedUtilityValue } from './resolve-config-
|
1
|
+
import { P as PluginUtils, N as NamedUtilityValue } from './resolve-config-CtRHmw46.js';
|
2
|
+
import './colors-DW5ZbNUm.js';
|
2
3
|
|
3
4
|
type ResolvableTo<T> = T | ((utils: PluginUtils) => T);
|
4
5
|
type ThemeValue = ResolvableTo<Record<string, unknown>> | null | undefined;
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import _default from './colors.mjs';
|
2
|
+
|
1
3
|
type ArbitraryUtilityValue = {
|
2
4
|
kind: 'arbitrary';
|
3
5
|
/**
|
@@ -180,8 +182,9 @@ type Candidate =
|
|
180
182
|
raw: string;
|
181
183
|
};
|
182
184
|
|
183
|
-
|
184
|
-
theme(keypath: string, defaultValue?: any)
|
185
|
-
|
185
|
+
type PluginUtils = {
|
186
|
+
theme: (keypath: string, defaultValue?: any) => any;
|
187
|
+
colors: typeof _default;
|
188
|
+
};
|
186
189
|
|
187
190
|
export type { Candidate as C, NamedUtilityValue as N, PluginUtils as P, Variant as V };
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import { _ as _default } from './colors-DW5ZbNUm.js';
|
2
|
+
|
1
3
|
type NamedUtilityValue = {
|
2
4
|
kind: 'named';
|
3
5
|
/**
|
@@ -19,8 +21,9 @@ type NamedUtilityValue = {
|
|
19
21
|
fraction: string | null;
|
20
22
|
};
|
21
23
|
|
22
|
-
|
23
|
-
theme(keypath: string, defaultValue?: any)
|
24
|
-
|
24
|
+
type PluginUtils = {
|
25
|
+
theme: (keypath: string, defaultValue?: any) => any;
|
26
|
+
colors: typeof _default;
|
27
|
+
};
|
25
28
|
|
26
29
|
export type { NamedUtilityValue as N, PluginUtils as P };
|
package/index.css
CHANGED
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.27",
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -21,14 +21,26 @@
|
|
21
21
|
"require": "./dist/plugin.js",
|
22
22
|
"import": "./dist/plugin.mjs"
|
23
23
|
},
|
24
|
+
"./plugin.js": {
|
25
|
+
"require": "./dist/plugin.js",
|
26
|
+
"import": "./dist/plugin.mjs"
|
27
|
+
},
|
24
28
|
"./defaultTheme": {
|
25
29
|
"require": "./dist/default-theme.js",
|
26
30
|
"import": "./dist/default-theme.mjs"
|
27
31
|
},
|
32
|
+
"./defaultTheme.js": {
|
33
|
+
"require": "./dist/default-theme.js",
|
34
|
+
"import": "./dist/default-theme.mjs"
|
35
|
+
},
|
28
36
|
"./colors": {
|
29
37
|
"require": "./dist/colors.js",
|
30
38
|
"import": "./dist/colors.mjs"
|
31
39
|
},
|
40
|
+
"./colors.js": {
|
41
|
+
"require": "./dist/colors.js",
|
42
|
+
"import": "./dist/colors.mjs"
|
43
|
+
},
|
32
44
|
"./package.json": "./package.json",
|
33
45
|
"./index.css": "./index.css",
|
34
46
|
"./index": "./index.css",
|
@@ -55,7 +67,7 @@
|
|
55
67
|
"@types/node": "^20.14.8",
|
56
68
|
"lightningcss": "^1.26.0",
|
57
69
|
"dedent": "1.5.3",
|
58
|
-
"@tailwindcss/oxide": "4.0.0-alpha.
|
70
|
+
"@tailwindcss/oxide": "4.0.0-alpha.27"
|
59
71
|
},
|
60
72
|
"scripts": {
|
61
73
|
"lint": "tsc --noEmit",
|