@csszyx/types 0.3.1 → 0.4.0

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.
Files changed (2) hide show
  1. package/dist/config.d.ts +10 -0
  2. package/package.json +2 -2
package/dist/config.d.ts CHANGED
@@ -105,6 +105,16 @@ interface BuildConfig {
105
105
  * @default 50000
106
106
  */
107
107
  astBudgetLimit?: number;
108
+ /**
109
+ * CSS file(s) to scan for Tailwind v4 @theme blocks.
110
+ * When set, the plugin generates .csszyx/theme.d.ts with TypeScript augmentation
111
+ * for custom design tokens, enabling IntelliSense for user-defined colors, spacings, etc.
112
+ *
113
+ * Accepts a single glob/path or an array of globs/paths.
114
+ *
115
+ * @example ['src/styles/theme.css', 'src/styles/tokens.css']
116
+ */
117
+ scanCss?: string | string[];
108
118
  }
109
119
  /**
110
120
  * Hydration safety configuration.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@csszyx/types",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "TypeScript definitions for csszyx",
5
5
  "keywords": [
6
6
  "csszyx",
@@ -50,7 +50,7 @@
50
50
  "@types/node": "^20.11.0",
51
51
  "tsup": "^8.0.0",
52
52
  "typescript": "^5.3.3",
53
- "@csszyx/compiler": "0.3.1"
53
+ "@csszyx/compiler": "0.4.0"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "tsup src/index.ts src/config.ts src/runtime.ts src/compiler.ts --format esm --dts && cp src/jsx.d.ts dist/jsx.d.ts",