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/plugin.d.mts CHANGED
@@ -1,5 +1,6 @@
1
- import { a as PluginFn, C as Config, b as PluginWithConfig, c as PluginWithOptions } from './types-iJZbIaeF.mjs';
2
- import './resolve-config-BX2SkbLq.mjs';
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-CT1JRAbd.js';
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
- interface PluginUtils {
184
- theme(keypath: string, defaultValue?: any): 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
- interface PluginUtils {
23
- theme(keypath: string, defaultValue?: any): 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 };
@@ -1,4 +1,4 @@
1
- import { N as NamedUtilityValue, P as PluginUtils } from './resolve-config-BX2SkbLq.mjs';
1
+ import { N as NamedUtilityValue, P as PluginUtils } from './resolve-config-CG6sB2SD.mjs';
2
2
 
3
3
  type Config = UserConfig;
4
4
  type PluginFn = (api: PluginAPI) => void;
package/index.css CHANGED
@@ -818,7 +818,7 @@
818
818
  Make elements with the HTML hidden attribute stay hidden by default.
819
819
  */
820
820
 
821
- [hidden] {
821
+ [hidden]:where(:not([hidden="until-found"])) {
822
822
  display: none !important;
823
823
  }
824
824
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "4.0.0-alpha.26",
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.26"
70
+ "@tailwindcss/oxide": "4.0.0-alpha.27"
59
71
  },
60
72
  "scripts": {
61
73
  "lint": "tsc --noEmit",
package/preflight.css CHANGED
@@ -321,6 +321,6 @@ video {
321
321
  Make elements with the HTML hidden attribute stay hidden by default.
322
322
  */
323
323
 
324
- [hidden] {
324
+ [hidden]:where(:not([hidden='until-found'])) {
325
325
  display: none !important;
326
326
  }