@orangecheck/design 0.28.6 → 0.28.8

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
@@ -643,7 +643,7 @@ function OcThemeProvider({
643
643
  OcAurora,
644
644
  {
645
645
  intensity: typeof aurora === "object" ? aurora.intensity : void 0,
646
- gl: typeof aurora === "object" ? aurora.gl : void 0
646
+ gl: typeof aurora === "object" ? aurora.gl ?? true : true
647
647
  }
648
648
  ),
649
649
  children
@@ -958,15 +958,17 @@ var Z_STEP = 3;
958
958
  var LAYERS = Array.from({ length: DEPTH }, (_, i) => i);
959
959
  function layerStyle(i) {
960
960
  const t = i / (DEPTH - 1);
961
+ const ink = "var(--oc-sigil-ink, var(--primary))";
962
+ const bg = "var(--oc-sigil-bg, var(--background))";
961
963
  let color;
962
964
  if (t < 0.14) {
963
- color = `color-mix(in oklab, var(--primary), white ${Math.round((0.14 - t) * 26)}%)`;
965
+ color = `color-mix(in oklab, ${ink}, white ${Math.round((0.14 - t) * 26)}%)`;
964
966
  } else if (t < 0.6) {
965
967
  const k = (t - 0.14) / 0.46;
966
- color = `color-mix(in oklab, var(--primary), black ${Math.round(k * 34)}%)`;
968
+ color = `color-mix(in oklab, ${ink}, black ${Math.round(k * 34)}%)`;
967
969
  } else {
968
970
  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)}%)`;
971
+ color = `color-mix(in oklab, color-mix(in oklab, ${ink}, black 34%), ${bg} ${Math.round(k * 100)}%)`;
970
972
  }
971
973
  return {
972
974
  transform: `translateZ(${-i * Z_STEP}px)`,