@orangecheck/design 0.28.6 → 0.28.7
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 +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/tokens.js +5 -3
- package/dist/tokens.js.map +1 -1
- package/dist/tokens.mjs +5 -3
- package/dist/tokens.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -976,15 +976,17 @@ var Z_STEP = 3;
|
|
|
976
976
|
var LAYERS = Array.from({ length: DEPTH }, (_, i) => i);
|
|
977
977
|
function layerStyle(i) {
|
|
978
978
|
const t = i / (DEPTH - 1);
|
|
979
|
+
const ink = "var(--oc-sigil-ink, var(--primary))";
|
|
980
|
+
const bg = "var(--oc-sigil-bg, var(--background))";
|
|
979
981
|
let color;
|
|
980
982
|
if (t < 0.14) {
|
|
981
|
-
color = `color-mix(in oklab,
|
|
983
|
+
color = `color-mix(in oklab, ${ink}, white ${Math.round((0.14 - t) * 26)}%)`;
|
|
982
984
|
} else if (t < 0.6) {
|
|
983
985
|
const k = (t - 0.14) / 0.46;
|
|
984
|
-
color = `color-mix(in oklab,
|
|
986
|
+
color = `color-mix(in oklab, ${ink}, black ${Math.round(k * 34)}%)`;
|
|
985
987
|
} else {
|
|
986
988
|
const k = (t - 0.6) / 0.4;
|
|
987
|
-
color = `color-mix(in oklab, color-mix(in oklab,
|
|
989
|
+
color = `color-mix(in oklab, color-mix(in oklab, ${ink}, black 34%), ${bg} ${Math.round(k * 100)}%)`;
|
|
988
990
|
}
|
|
989
991
|
return {
|
|
990
992
|
transform: `translateZ(${-i * Z_STEP}px)`,
|