@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/tokens.js CHANGED
@@ -960,15 +960,17 @@ var Z_STEP = 3;
960
960
  var LAYERS = Array.from({ length: DEPTH }, (_, i) => i);
961
961
  function layerStyle(i) {
962
962
  const t = i / (DEPTH - 1);
963
+ const ink = "var(--oc-sigil-ink, var(--primary))";
964
+ const bg = "var(--oc-sigil-bg, var(--background))";
963
965
  let color;
964
966
  if (t < 0.14) {
965
- color = `color-mix(in oklab, var(--primary), white ${Math.round((0.14 - t) * 26)}%)`;
967
+ color = `color-mix(in oklab, ${ink}, white ${Math.round((0.14 - t) * 26)}%)`;
966
968
  } else if (t < 0.6) {
967
969
  const k = (t - 0.14) / 0.46;
968
- color = `color-mix(in oklab, var(--primary), black ${Math.round(k * 34)}%)`;
970
+ color = `color-mix(in oklab, ${ink}, black ${Math.round(k * 34)}%)`;
969
971
  } else {
970
972
  const k = (t - 0.6) / 0.4;
971
- color = `color-mix(in oklab, color-mix(in oklab, var(--primary), black 34%), var(--background) ${Math.round(k * 100)}%)`;
973
+ color = `color-mix(in oklab, color-mix(in oklab, ${ink}, black 34%), ${bg} ${Math.round(k * 100)}%)`;
972
974
  }
973
975
  return {
974
976
  transform: `translateZ(${-i * Z_STEP}px)`,