@webstudio-is/css-engine 0.262.1 → 0.264.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.
- package/lib/index.js +1 -1
- package/lib/runtime.js +1 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -115,7 +115,7 @@ var toValue = (styleValue, transformValue) => {
|
|
|
115
115
|
case "oklch":
|
|
116
116
|
return `oklch(${c1} ${c2} ${c3} / ${alpha})`;
|
|
117
117
|
// Fall back to color() function for less common color spaces.
|
|
118
|
-
//
|
|
118
|
+
// Webstudio uses colorjs internal names; map to CSS predefined color space names.
|
|
119
119
|
case "p3":
|
|
120
120
|
return `color(display-p3 ${c1} ${c2} ${c3} / ${alpha})`;
|
|
121
121
|
case "a98rgb":
|
package/lib/runtime.js
CHANGED
|
@@ -88,7 +88,7 @@ var toValue = (styleValue, transformValue) => {
|
|
|
88
88
|
case "oklch":
|
|
89
89
|
return `oklch(${c1} ${c2} ${c3} / ${alpha})`;
|
|
90
90
|
// Fall back to color() function for less common color spaces.
|
|
91
|
-
//
|
|
91
|
+
// Webstudio uses colorjs internal names; map to CSS predefined color space names.
|
|
92
92
|
case "p3":
|
|
93
93
|
return `color(display-p3 ${c1} ${c2} ${c3} / ${alpha})`;
|
|
94
94
|
case "a98rgb":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/css-engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.264.0",
|
|
4
4
|
"description": "CSS Renderer for Webstudio",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"@emotion/hash": "^0.9.2",
|
|
10
10
|
"colorjs.io": "^0.6.1",
|
|
11
11
|
"zod": "^3.24.2",
|
|
12
|
-
"@webstudio-is/fonts": "0.
|
|
12
|
+
"@webstudio-is/fonts": "0.264.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@types/react": "^18.2.70",
|