@unocss/rule-utils 0.62.0 → 0.62.2

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/index.mjs +3 -0
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -399,6 +399,9 @@ function transformThemeString(code, theme, throwOnMissing = true) {
399
399
  const [rawKey, alpha] = code.split("/");
400
400
  const keys = rawKey.trim().split(".");
401
401
  let value = keys.reduce((t, k) => t?.[k], theme);
402
+ if (typeof value === "object") {
403
+ value = value.DEFAULT;
404
+ }
402
405
  if (typeof value === "string") {
403
406
  if (alpha) {
404
407
  const color = parseCssColor(value);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/rule-utils",
3
3
  "type": "module",
4
- "version": "0.62.0",
4
+ "version": "0.62.2",
5
5
  "description": "Utilities for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "magic-string": "^0.30.11",
37
- "@unocss/core": "^0.62.0"
37
+ "@unocss/core": "^0.62.2"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "unbuild",