@terrazzo/plugin-css 0.10.4 → 2.0.0-alpha.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/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -3456,7 +3456,7 @@ function toGamut(dest = "rgb", mode = "oklch", delta = differenceEuclidean("oklc
|
|
|
3456
3456
|
}
|
|
3457
3457
|
|
|
3458
3458
|
//#endregion
|
|
3459
|
-
//#region ../token-tools/dist/string-
|
|
3459
|
+
//#region ../token-tools/dist/string-D3-qmBT2.js
|
|
3460
3460
|
const HEX_RE = /^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i;
|
|
3461
3461
|
const CULORI_TO_CSS = {
|
|
3462
3462
|
a98: "a98-rgb",
|
|
@@ -3625,7 +3625,7 @@ function tokenToCulori(value) {
|
|
|
3625
3625
|
case "lab":
|
|
3626
3626
|
case "lab-d65":
|
|
3627
3627
|
case "oklab": {
|
|
3628
|
-
const [l, a, b] = value.components;
|
|
3628
|
+
const [l = 0, a = 0, b = 0] = value.components;
|
|
3629
3629
|
return {
|
|
3630
3630
|
mode: value.colorSpace === "lab-d65" ? "lab65" : value.colorSpace,
|
|
3631
3631
|
l,
|