@orangecheck/design 0.28.4 → 0.28.6
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 +18 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -18
- package/dist/index.mjs.map +1 -1
- package/dist/styles/sigil.css +4 -4
- package/dist/tokens.js +18 -18
- package/dist/tokens.js.map +1 -1
- package/dist/tokens.mjs +18 -18
- package/dist/tokens.mjs.map +1 -1
- package/package.json +1 -1
package/dist/styles/sigil.css
CHANGED
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
height: var(--oc-sigil-size, clamp(240px, 52vmin, 600px));
|
|
28
28
|
/* translucent: the whole relief composites at this alpha so the aurora and
|
|
29
29
|
page read through it (a watermark, not an opaque object). Light mode
|
|
30
|
-
rides
|
|
31
|
-
|
|
32
|
-
opacity: var(--oc-sigil-opacity, 0.
|
|
30
|
+
rides quieter — a mid-tone terracotta reads with less alpha over a
|
|
31
|
+
near-white page than the same mark does over a dark one. */
|
|
32
|
+
opacity: var(--oc-sigil-opacity, 0.4);
|
|
33
33
|
/* soft edge fade so the mark dissolves into the field rather than ending in
|
|
34
34
|
a hard box (on the wrapper, which is safe for preserve-3d) */
|
|
35
35
|
-webkit-mask-image: radial-gradient(125% 125% at 55% 45%, #000 42%, transparent 90%);
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
.oc-sigil {
|
|
103
103
|
width: var(--oc-sigil-size-sm, clamp(170px, 56vw, 300px));
|
|
104
104
|
height: var(--oc-sigil-size-sm, clamp(170px, 56vw, 300px));
|
|
105
|
-
opacity: var(--oc-sigil-opacity-sm, 0.
|
|
105
|
+
opacity: var(--oc-sigil-opacity-sm, 0.28);
|
|
106
106
|
}
|
|
107
107
|
:root.dark .oc-sigil {
|
|
108
108
|
opacity: var(--oc-sigil-opacity-sm, 0.42);
|
package/dist/tokens.js
CHANGED
|
@@ -939,21 +939,21 @@ init_scene_tokens();
|
|
|
939
939
|
// src/tokens/glyphs.ts
|
|
940
940
|
var OC_GLYPH_CANVAS = 1024;
|
|
941
941
|
var OC_GLYPHS = {
|
|
942
|
-
orangecheck: `<path d="M518 856Q463 820 438.5 785.5Q414 751 414 711Q414 657 462.5 613.0Q511 569 711 473Q766 509 790.5 543.5Q815 578 815 621Q815 702 550 840ZM930 1460V1235Q845 1265 779.0 1279.5Q713 1294 659 1294Q583 1294 540.5 1265.0Q498 1236 498 1184Q498 1109 701 1004Q720 994 729 989Q943 879 1002.0 808.5Q1061 738 1061 637Q1061 548 1013.5 484.0Q966 420 864 373Q934 323 966.5 261.5Q999 200 999 119Q999 -28 894.5 -111.5Q790 -195 604 -195Q515 -195 429.0 -180.5Q343 -166 258 -137V92Q343 62 424.0 46.5Q505 31 578 31Q655 31 696.0 59.5Q737 88 737 141Q737 211 523 326L512 332L486 346Q170 516 170 688Q170 782 222.0 851.5Q274 921 371 954Q300 1004 268.0 1064.0Q236 1124 236 1206Q236 1348 340.0 1434.0Q444 1520 616 1520Q690 1520 768.5 1505.0Q847 1490 930 1460Z" fill="
|
|
943
|
-
attest: `<g transform="scale(42.666667 42.666667)"><path d="M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z" fill="
|
|
944
|
-
docs: `<g transform="scale(42.666667 42.666667)"><rect x="3" y="3" width="18" height="18" fill="
|
|
945
|
-
me: `<g transform="scale(42.666667 42.666667)"><rect x="3" y="3" width="18" height="18" fill="
|
|
946
|
-
vault: `<g transform="scale(42.666667 42.666667)"><path d="M8 9 L8 6.5 Q8 3.5 12 3.5 Q16 3.5 16 6.5 L16 9" fill="none" stroke="
|
|
947
|
-
fleet: `<g transform="scale(42.666667 42.666667)"><rect x="3" y="3" width="18" height="18" fill="
|
|
948
|
-
chat: `<g transform="scale(42.666667 42.666667)"><path d="M5 4 H19 A2 2 0 0 1 21 6 V13 A2 2 0 0 1 19 15 H11 L7 19 V15 H5 A2 2 0 0 1 3 13 V6 A2 2 0 0 1 5 4 Z" fill="
|
|
949
|
-
cosign: `<g transform="scale(42.666667 42.666667)"><rect x="3" y="3" width="18" height="18" fill="
|
|
950
|
-
lock: `<g transform="scale(42.666667 42.666667)"><path d="M7 11V7.5a5 5 0 0 1 10 0V11" fill="none" stroke="
|
|
951
|
-
vote: `<g transform="scale(42.666667 42.666667)"><rect x="2" y="14" width="4" height="8" fill="
|
|
952
|
-
stamp: `<g transform="scale(42.666667 42.666667)"><rect x="3" y="3" width="18" height="18" fill="
|
|
953
|
-
agent: `<g transform="scale(42.666667 42.666667)"><path d="M4 20 L12 4 L20 20 Z" fill="
|
|
954
|
-
pledge: `<g transform="scale(42.666667 42.666667)"><rect x="3" y="3" width="18" height="18" fill="
|
|
955
|
-
analytics: `<g transform="scale(42.666667 42.666667)"><rect x="3" y="3" width="18" height="18" fill="
|
|
956
|
-
btc: `<path d="M373 1414V1676H531V1414ZM670 1414V1676H829V1414ZM373 -186V76H531V-186ZM670 -186V76H829V-186ZM129 0V1490H705Q863 1490 972.50 1441Q1082 1392 1139 1305.50Q1196 1219 1196 1103Q1196 1016 1164 951Q1132 886 1074 843Q1016 800 937 779V774Q1024 765 1095.50 721Q1167 677 1210 600.50Q1253 524 1253 416Q1253 293 1194.50 199Q1136 105 1020 52.50Q904 0 731 0ZM391 217H700Q838 217 910.50 272.50Q983 328 983 428Q983 497 950 547.50Q917 598 855.50 626Q794 654 707 654H391ZM391 858H688Q762 858 817 883.50Q872 909 902 956Q932 1003 932 1068Q932 1161 868 1217.50Q804 1274 689 1274H391Z" fill="
|
|
942
|
+
orangecheck: `<path d="M518 856Q463 820 438.5 785.5Q414 751 414 711Q414 657 462.5 613.0Q511 569 711 473Q766 509 790.5 543.5Q815 578 815 621Q815 702 550 840ZM930 1460V1235Q845 1265 779.0 1279.5Q713 1294 659 1294Q583 1294 540.5 1265.0Q498 1236 498 1184Q498 1109 701 1004Q720 994 729 989Q943 879 1002.0 808.5Q1061 738 1061 637Q1061 548 1013.5 484.0Q966 420 864 373Q934 323 966.5 261.5Q999 200 999 119Q999 -28 894.5 -111.5Q790 -195 604 -195Q515 -195 429.0 -180.5Q343 -166 258 -137V92Q343 62 424.0 46.5Q505 31 578 31Q655 31 696.0 59.5Q737 88 737 141Q737 211 523 326L512 332L486 346Q170 516 170 688Q170 782 222.0 851.5Q274 921 371 954Q300 1004 268.0 1064.0Q236 1124 236 1206Q236 1348 340.0 1434.0Q444 1520 616 1520Q690 1520 768.5 1505.0Q847 1490 930 1460Z" fill="__INK__" transform="translate(225.3457 820.5434) scale(0.465726 -0.465726)"/>`,
|
|
943
|
+
attest: `<g transform="scale(42.666667 42.666667)"><path d="M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z" fill="none" stroke="__INK__" stroke-width="0.5"/><path d="M9 12 l2 2 l4 -4" fill="none" stroke="__INK__" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></g>`,
|
|
944
|
+
docs: `<g transform="scale(42.666667 42.666667)"><rect x="3" y="3" width="18" height="18" fill="none"/><rect x="6" y="6" width="12" height="12" fill="none" stroke="__INK__" stroke-width="1.5"/><rect x="8" y="9" width="8" height="1.25" fill="__INK__"/><rect x="8" y="11.5" width="8" height="1.25" fill="__INK__"/><rect x="8" y="14" width="5" height="1.25" fill="__INK__"/></g>`,
|
|
945
|
+
me: `<g transform="scale(42.666667 42.666667)"><rect x="3" y="3" width="18" height="18" fill="none"/><rect x="6" y="6" width="12" height="12" fill="none" stroke="__INK__" stroke-width="1.5"/><circle cx="12" cy="11" r="2" fill="__INK__"/><path d="M8 16.5 C 8 14.5, 9.5 13.5, 12 13.5 C 14.5 13.5, 16 14.5, 16 16.5" fill="none" stroke="__INK__" stroke-width="1.5" stroke-linecap="square"/></g>`,
|
|
946
|
+
vault: `<g transform="scale(42.666667 42.666667)"><path d="M8 9 L8 6.5 Q8 3.5 12 3.5 Q16 3.5 16 6.5 L16 9" fill="none" stroke="__INK__" stroke-width="2" stroke-linecap="square"/><rect x="4" y="9" width="16" height="12" fill="none" stroke="__INK__" stroke-width="0.75"/><circle cx="12" cy="14.5" r="2.75" fill="none" stroke="__INK__" stroke-width="1.5"/><rect x="11.4" y="14.5" width="1.2" height="3.25" fill="__INK__"/><rect x="5.5" y="19" width="2.25" height="1.5" fill="__INK__"/><rect x="16.25" y="19" width="2.25" height="1.5" fill="__INK__"/></g>`,
|
|
947
|
+
fleet: `<g transform="scale(42.666667 42.666667)"><rect x="3" y="3" width="18" height="18" fill="none"/><rect x="6" y="6" width="12" height="12" fill="none" stroke="__INK__" stroke-width="1.5"/><path d="M8.5 9.5 L11 12 L8.5 14.5" fill="none" stroke="__INK__" stroke-width="1.6" stroke-linejoin="miter" stroke-linecap="square"/><rect x="12" y="14" width="4" height="1.4" fill="__INK__"/></g>`,
|
|
948
|
+
chat: `<g transform="scale(42.666667 42.666667)"><path d="M5 4 H19 A2 2 0 0 1 21 6 V13 A2 2 0 0 1 19 15 H11 L7 19 V15 H5 A2 2 0 0 1 3 13 V6 A2 2 0 0 1 5 4 Z" fill="none" stroke="__INK__" stroke-width="1.6" stroke-linejoin="round"/><circle cx="8" cy="9.5" r="1.15" fill="__INK__"/><circle cx="12" cy="9.5" r="1.15" fill="__INK__"/><circle cx="16" cy="9.5" r="1.15" fill="__INK__"/></g>`,
|
|
949
|
+
cosign: `<g transform="scale(42.666667 42.666667)"><rect x="3" y="3" width="18" height="18" fill="none"/><rect x="6" y="6" width="12" height="12" fill="none" stroke="__INK__" stroke-width="1.5"/><circle cx="9.2" cy="10.4" r="1.65" fill="__INK__"/><circle cx="14.8" cy="10.4" r="1.65" fill="__INK__"/><path d="M6.5 16.6 C 6.5 14.9, 7.6 14.1, 9.2 14.1 C 10.8 14.1, 11.9 14.9, 11.9 16.6" fill="none" stroke="__INK__" stroke-width="1.5" stroke-linecap="square"/><path d="M12.1 16.6 C 12.1 14.9, 13.2 14.1, 14.8 14.1 C 16.4 14.1, 17.5 14.9, 17.5 16.6" fill="none" stroke="__INK__" stroke-width="1.5" stroke-linecap="square"/></g>`,
|
|
950
|
+
lock: `<g transform="scale(42.666667 42.666667)"><path d="M7 11V7.5a5 5 0 0 1 10 0V11" fill="none" stroke="__INK__" stroke-width="2" stroke-linecap="square"/><rect x="4" y="11" width="16" height="10" fill="none" stroke="__INK__" stroke-width="0.75"/><rect x="11" y="14" width="2" height="4" fill="__INK__"/><rect x="10.25" y="14" width="3.5" height="1.5" fill="__INK__"/></g>`,
|
|
951
|
+
vote: `<g transform="scale(42.666667 42.666667)"><rect x="2" y="14" width="4" height="8" fill="__INK__"/><rect x="10" y="8" width="4" height="14" fill="__INK__"/><rect x="18" y="2" width="4" height="20" fill="__INK__"/></g>`,
|
|
952
|
+
stamp: `<g transform="scale(42.666667 42.666667)"><rect x="3" y="3" width="18" height="18" fill="none"/><rect x="6" y="6" width="12" height="12" fill="none" stroke="__INK__" stroke-width="1.5"/><rect x="11.25" y="8.5" width="1.5" height="7" fill="__INK__"/><rect x="9.5" y="10" width="5" height="1.5" fill="__INK__"/><path d="M9 14.5 L12 15.75 L15 14.5" fill="none" stroke="__INK__" stroke-width="1.5" stroke-linejoin="miter" stroke-linecap="square"/></g>`,
|
|
953
|
+
agent: `<g transform="scale(42.666667 42.666667)"><path d="M4 20 L12 4 L20 20 Z" fill="none" stroke="__INK__" stroke-width="1.5" stroke-linejoin="miter"/><rect x="7.5" y="13.5" width="9" height="2" fill="__INK__"/><rect x="11" y="9" width="2" height="2" fill="__INK__"/></g>`,
|
|
954
|
+
pledge: `<g transform="scale(42.666667 42.666667)"><rect x="3" y="3" width="18" height="18" fill="none"/><rect x="6" y="6" width="12" height="12" fill="none" stroke="__INK__" stroke-width="1.5"/><rect x="9.25" y="8.5" width="1.75" height="7" fill="__INK__"/><rect x="9.25" y="8.5" width="4.5" height="1.5" fill="__INK__"/><rect x="12.25" y="8.5" width="1.5" height="3.5" fill="__INK__"/><rect x="9.25" y="10.5" width="4.5" height="1.5" fill="__INK__"/></g>`,
|
|
955
|
+
analytics: `<g transform="scale(42.666667 42.666667)"><rect x="3" y="3" width="18" height="18" fill="none"/><path d="M6 17 L10 12 L14 15 L18 8" fill="none" stroke="__INK__" stroke-width="1.8" stroke-linecap="square" stroke-linejoin="miter"/><rect x="16.6" y="6.6" width="2.8" height="2.8" fill="__INK__"/></g>`,
|
|
956
|
+
btc: `<path d="M373 1414V1676H531V1414ZM670 1414V1676H829V1414ZM373 -186V76H531V-186ZM670 -186V76H829V-186ZM129 0V1490H705Q863 1490 972.50 1441Q1082 1392 1139 1305.50Q1196 1219 1196 1103Q1196 1016 1164 951Q1132 886 1074 843Q1016 800 937 779V774Q1024 765 1095.50 721Q1167 677 1210 600.50Q1253 524 1253 416Q1253 293 1194.50 199Q1136 105 1020 52.50Q904 0 731 0ZM391 217H700Q838 217 910.50 272.50Q983 328 983 428Q983 497 950 547.50Q917 598 855.50 626Q794 654 707 654H391ZM391 858H688Q762 858 817 883.50Q872 909 902 956Q932 1003 932 1068Q932 1161 868 1217.50Q804 1274 689 1274H391Z" fill="__INK__" transform="translate(238.3907 806.9912) scale(0.395961 -0.395961)"/>`
|
|
957
957
|
};
|
|
958
958
|
var DEPTH = 22;
|
|
959
959
|
var Z_STEP = 3;
|
|
@@ -975,8 +975,8 @@ function layerStyle(i) {
|
|
|
975
975
|
color
|
|
976
976
|
};
|
|
977
977
|
}
|
|
978
|
-
function sub(markup
|
|
979
|
-
return markup.split("
|
|
978
|
+
function sub(markup) {
|
|
979
|
+
return markup.split("__INK__").join("currentColor").split("__BG__").join("none").split("__FG__").join("none");
|
|
980
980
|
}
|
|
981
981
|
function OcSigil({ glyph, corner = "bottom-left", parallax = true, className }) {
|
|
982
982
|
const rawId = react.useId();
|
|
@@ -987,7 +987,7 @@ function OcSigil({ glyph, corner = "bottom-left", parallax = true, className })
|
|
|
987
987
|
for (const ch of glyph) h = h * 31 + ch.charCodeAt(0) | 0;
|
|
988
988
|
return (h % 7 - 3) * 1.5;
|
|
989
989
|
}, [glyph]);
|
|
990
|
-
const mark = react.useMemo(() => sub(OC_GLYPHS[glyph]
|
|
990
|
+
const mark = react.useMemo(() => sub(OC_GLYPHS[glyph]), [glyph]);
|
|
991
991
|
react.useEffect(() => {
|
|
992
992
|
if (!parallax) return;
|
|
993
993
|
const el = parRef.current;
|