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