@uniweb/core 0.5.7 → 0.5.8

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/package.json +1 -1
  2. package/src/block.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/core",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "Core classes for the Uniweb platform - Uniweb, Website, Page, Block",
5
5
  "type": "module",
6
6
  "exports": {
package/src/block.js CHANGED
@@ -480,7 +480,8 @@ export default class Block {
480
480
  }
481
481
 
482
482
  // Anything else → CSS color (hex, rgb, hsl, oklch, named color, var())
483
- return { mode: 'color', color: raw }
483
+ // Resolve bare palette refs (e.g. "primary-900" → "var(--primary-900)")
484
+ return { mode: 'color', color: resolveOverrideValue(raw) }
484
485
  }
485
486
 
486
487
  // Object with explicit mode — pass through