@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/tokens.mjs CHANGED
@@ -959,14 +959,14 @@ var LAYERS = Array.from({ length: DEPTH }, (_, i) => i);
959
959
  function layerStyle(i) {
960
960
  const t = i / (DEPTH - 1);
961
961
  let color;
962
- if (t < 0.12) {
963
- color = `color-mix(in oklab, var(--primary), white ${Math.round((0.12 - t) * 60)}%)`;
964
- } else if (t < 0.62) {
965
- const k = (t - 0.12) / 0.5;
966
- color = `color-mix(in oklab, var(--primary), black ${Math.round(k * 42)}%)`;
962
+ if (t < 0.14) {
963
+ color = `color-mix(in oklab, var(--primary), white ${Math.round((0.14 - t) * 26)}%)`;
964
+ } else if (t < 0.6) {
965
+ const k = (t - 0.14) / 0.46;
966
+ color = `color-mix(in oklab, var(--primary), black ${Math.round(k * 34)}%)`;
967
967
  } else {
968
- const k = (t - 0.62) / 0.38;
969
- color = `color-mix(in oklab, color-mix(in oklab, var(--primary), black 42%), var(--background) ${Math.round(k * 100)}%)`;
968
+ const k = (t - 0.6) / 0.4;
969
+ color = `color-mix(in oklab, color-mix(in oklab, var(--primary), black 34%), var(--background) ${Math.round(k * 100)}%)`;
970
970
  }
971
971
  return {
972
972
  transform: `translateZ(${-i * Z_STEP}px)`,