@razorwind/css 0.0.39 → 0.0.41

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.
@@ -12,8 +12,12 @@ declare const DEFAULT_CSS_PATH = "src/styles.css";
12
12
  /** Candidate workspace paths checked for a CSS token file. */
13
13
  declare const CSS_PATH_CANDIDATES: readonly ["src/styles.css", "styles.css", "src/globals.css", "globals.css", "src/app.css", "tokens.css"];
14
14
  /**
15
- * Parse CSS custom properties (`:root`, `@theme`, `[data-theme]`, …) into a
16
- * nested DTCG token tree.
15
+ * Parse CSS custom properties from an entire stylesheet into a nested DTCG
16
+ * token tree.
17
+ *
18
+ * Declarations are collected from every rule — `:root`, `@theme`, `.dark`,
19
+ * `@layer`, `@property`, `[data-theme]`, component selectors, and so on — not
20
+ * only `:root`. `var(--token)` usages are ignored.
17
21
  */
18
22
  declare function parseCssTokens(contents: string): Tokens;
19
23
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"extract.d.cts","names":[],"sources":["../src/extract.ts"],"mappings":";;;;;;;;cAgCa,kBAAgB;;cAGhB;;cAGA;;;;;iBAqBG,eAAe,mBAAmB;;;;iBAOlC,eACd,aACA;;;;iBAqBoB,iBACpB,SAAS;EAA4B;IACpC,QAAQ"}
1
+ {"version":3,"file":"extract.d.cts","names":[],"sources":["../src/extract.ts"],"mappings":";;;;;;;;cAgCa,kBAAgB;;cAGhB;;cAGA;;;;;;;;;iBAyBG,eAAe,mBAAmB;;;;iBAOlC,eACd,aACA;;;;iBAqBoB,iBACpB,SAAS;EAA4B;IACpC,QAAQ"}
@@ -12,8 +12,12 @@ declare const DEFAULT_CSS_PATH = "src/styles.css";
12
12
  /** Candidate workspace paths checked for a CSS token file. */
13
13
  declare const CSS_PATH_CANDIDATES: readonly ["src/styles.css", "styles.css", "src/globals.css", "globals.css", "src/app.css", "tokens.css"];
14
14
  /**
15
- * Parse CSS custom properties (`:root`, `@theme`, `[data-theme]`, …) into a
16
- * nested DTCG token tree.
15
+ * Parse CSS custom properties from an entire stylesheet into a nested DTCG
16
+ * token tree.
17
+ *
18
+ * Declarations are collected from every rule — `:root`, `@theme`, `.dark`,
19
+ * `@layer`, `@property`, `[data-theme]`, component selectors, and so on — not
20
+ * only `:root`. `var(--token)` usages are ignored.
17
21
  */
18
22
  declare function parseCssTokens(contents: string): Tokens;
19
23
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@razorwind/css",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "type": "module",
5
5
  "description": "Razorwind CSS plugin that can create CSS files from design tokens or read a CSS file and return the design tokens.",
6
6
  "repository": {
@@ -72,14 +72,14 @@
72
72
  "types": "./dist/index.d.cts",
73
73
  "typings": "dist/index.d.mts",
74
74
  "dependencies": {
75
- "@power-plant/core": "^0.0.90",
75
+ "@power-plant/core": "^0.0.91",
76
76
  "@power-plant/dtcg-schema": "^0.0.1",
77
- "@razorwind/core": "^0.0.56",
78
- "@razorwind/style-dictionary": "^0.0.42",
79
- "@stryke/fs": "^0.33.112",
80
- "@stryke/path": "^0.29.37",
81
- "@stryke/type-checks": "^0.6.43",
82
- "@stryke/types": "^0.12.38",
77
+ "@razorwind/core": "^0.0.58",
78
+ "@razorwind/style-dictionary": "^0.0.44",
79
+ "@stryke/fs": "^0.33.113",
80
+ "@stryke/path": "^0.29.38",
81
+ "@stryke/type-checks": "^0.6.44",
82
+ "@stryke/types": "^0.12.39",
83
83
  "fast-glob": "^3.3.3"
84
84
  },
85
85
  "devDependencies": {
@@ -88,5 +88,5 @@
88
88
  "typescript": "^6.0.3"
89
89
  },
90
90
  "publishConfig": { "access": "public" },
91
- "gitHead": "058f1f3c881d4f4e109a3f45008b50d403a9acab"
91
+ "gitHead": "26304e8c6d927befb4b9ffdb28ae1cc7f88e45ca"
92
92
  }