@moonwitness/ui 12.0.0 → 13.0.0
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/components/brand-mark.d.ts +12 -1
- package/dist/components/brand-mark.js +21 -0
- package/dist/components/dialog.d.ts +1 -2
- package/dist/components/dialog.js +6 -5
- package/dist/pixelfx-boundary.d.ts +1 -0
- package/dist/pixelfx-boundary.js +5 -8
- package/dist/pixelfx-effect-loaders.d.ts +23 -0
- package/dist/pixelfx-effect-loaders.js +70 -0
- package/dist/skin-catalog.js +15 -0
- package/dist/skin-tokens.js +67 -0
- package/dist/themes/dna-presets.d.ts +1 -1
- package/dist/themes/dna-presets.js +11 -0
- package/dist/themes/types.d.ts +1 -1
- package/dist/tokens.bundle.json +91 -0
- package/dist/tokens.generated.css +70 -0
- package/dist/tokens.w3c.json +178 -0
- package/package.json +1 -1
- package/src/styles/tokens.css +86 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PixelFxProp } from "../pixelfx-registry.js";
|
|
2
|
-
export type BrandMarkVariant = "symbol" | "lockup" | "wordmark";
|
|
2
|
+
export type BrandMarkVariant = "symbol" | "lockup" | "wordmark" | "avatar-split-a";
|
|
3
3
|
export type BrandMarkTone = "dark" | "light";
|
|
4
4
|
export type BrandMarkProps = {
|
|
5
5
|
variant?: BrandMarkVariant;
|
|
@@ -11,3 +11,14 @@ export type BrandMarkProps = {
|
|
|
11
11
|
alt?: string;
|
|
12
12
|
};
|
|
13
13
|
export declare function BrandMark({ variant, tone, basePath, fx, className, decorative, alt, }: BrandMarkProps): import("react").JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* AVATAR 22° Split-A emblem. Renders one of the canonical AVATAR mark files
|
|
16
|
+
* registered in `@moonwitness/assets`; it never redraws the geometry in JSX.
|
|
17
|
+
*/
|
|
18
|
+
export declare function AvatarSplitAMark({ variant, basePath, className, decorative, alt, }: {
|
|
19
|
+
variant?: "standard" | "reversed" | "mono-ink" | "mono-white" | "compact";
|
|
20
|
+
basePath?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
decorative?: boolean;
|
|
23
|
+
alt?: string;
|
|
24
|
+
}): import("react").JSX.Element;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useComponentPixelFx } from "../pixelfx.js";
|
|
3
3
|
import { cn } from "../utils.js";
|
|
4
|
+
/** AVATAR Split-A mark variants are separate files; MoonWitness marks use tone. */
|
|
5
|
+
const AVATAR_SPLIT_A_FILES = {
|
|
6
|
+
"avatar-split-a": "brand/avatar/avatar-mark-standard.svg",
|
|
7
|
+
"avatar-split-a-reversed": "brand/avatar/avatar-mark-reversed.svg",
|
|
8
|
+
"avatar-split-a-mono-ink": "brand/avatar/avatar-mark-mono-ink.svg",
|
|
9
|
+
"avatar-split-a-mono-white": "brand/avatar/avatar-mark-mono-white.svg",
|
|
10
|
+
"avatar-split-a-compact": "brand/avatar/avatar-mark-compact.svg",
|
|
11
|
+
};
|
|
4
12
|
export function BrandMark({ variant = "lockup", tone = "dark", basePath = "/", fx = "auto", className = "", decorative = false, alt, }) {
|
|
5
13
|
const pfx = useComponentPixelFx({
|
|
6
14
|
kind: "brand-mark",
|
|
@@ -21,6 +29,10 @@ export function BrandMark({ variant = "lockup", tone = "dark", basePath = "/", f
|
|
|
21
29
|
dark: "brand/moonwitness-wordmark-dark.svg",
|
|
22
30
|
light: "brand/moonwitness-wordmark-light.svg",
|
|
23
31
|
},
|
|
32
|
+
"avatar-split-a": {
|
|
33
|
+
dark: "brand/avatar/avatar-mark-standard.svg",
|
|
34
|
+
light: "brand/avatar/avatar-mark-standard.svg",
|
|
35
|
+
},
|
|
24
36
|
};
|
|
25
37
|
return (_jsxs("span", { className: cn("mw-ui-brand-mark", className), "aria-hidden": decorative || undefined, "data-slot": "brand-mark", ...pfx.dataAttributes, ...pfx.handlers, "data-variant": variant, "data-tone": tone, style: { position: "relative", display: "inline-flex", alignItems: "center" }, children: [pfx.layer, _jsx("img", { src: `${safeBase}${fileMap[variant][tone]}`, alt: decorative ? "" : (alt ?? "MoonWitness"), style: {
|
|
26
38
|
height: variant === "symbol" ? "2rem" : "2.15rem",
|
|
@@ -30,3 +42,12 @@ export function BrandMark({ variant = "lockup", tone = "dark", basePath = "/", f
|
|
|
30
42
|
zIndex: 2,
|
|
31
43
|
} })] }));
|
|
32
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* AVATAR 22° Split-A emblem. Renders one of the canonical AVATAR mark files
|
|
47
|
+
* registered in `@moonwitness/assets`; it never redraws the geometry in JSX.
|
|
48
|
+
*/
|
|
49
|
+
export function AvatarSplitAMark({ variant = "standard", basePath = "/", className = "", decorative = false, alt = "AVATAR Split A mark", }) {
|
|
50
|
+
const safeBase = basePath.endsWith("/") ? basePath : `${basePath}/`;
|
|
51
|
+
const file = AVATAR_SPLIT_A_FILES[`avatar-split-a${variant === "standard" ? "" : `-${variant}`}`];
|
|
52
|
+
return (_jsx("img", { className: cn("mw-ui-avatar-split-a-mark", className), src: `${safeBase}${file}`, alt: decorative ? "" : alt, height: 32, width: 32, style: { display: "block", width: "auto" } }));
|
|
53
|
+
}
|
|
@@ -8,10 +8,9 @@ export interface DialogContentProps extends ComponentProps<typeof RadixDialog.Co
|
|
|
8
8
|
jagged?: boolean;
|
|
9
9
|
fx?: PixelFxEffectId | "auto" | false;
|
|
10
10
|
fxPalette?: EmpirePaletteId;
|
|
11
|
-
side?: "left" | "right" | "top" | "bottom";
|
|
12
11
|
showCloseButton?: boolean;
|
|
13
12
|
}
|
|
14
|
-
export declare function DialogContent({ jagged, fx, fxPalette, className, children, ...props }: DialogContentProps): import("react").JSX.Element;
|
|
13
|
+
export declare function DialogContent({ jagged, fx, fxPalette, showCloseButton, className, children, ...props }: DialogContentProps): import("react").JSX.Element;
|
|
15
14
|
export declare function DialogHeader({ style, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
16
15
|
export declare function DialogFooter({ style, showCloseButton: _showCloseButton, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
17
16
|
showCloseButton?: boolean;
|
|
@@ -4,6 +4,7 @@ import { Dialog as RadixDialog } from "radix-ui";
|
|
|
4
4
|
import { useEffect } from "react";
|
|
5
5
|
import { JaggedBorderSvg, PixelFxComponentLayer, usePixelFxBurst, } from "../pixelfx.js";
|
|
6
6
|
import { cn } from "../utils.js";
|
|
7
|
+
import { CloseIcon } from "../icons/close.js";
|
|
7
8
|
import { resolveComponentPixelFx, } from "../pixelfx-registry.js";
|
|
8
9
|
export const Dialog = RadixDialog.Root;
|
|
9
10
|
export function DialogTrigger({ className, ...props }) {
|
|
@@ -12,19 +13,19 @@ export function DialogTrigger({ className, ...props }) {
|
|
|
12
13
|
export function DialogClose({ className, ...props }) {
|
|
13
14
|
return (_jsx(RadixDialog.Close, { "data-slot": "dialog-close", className: cn("mw-ui-dialog-close", className), ...props }));
|
|
14
15
|
}
|
|
15
|
-
export function DialogContent({ jagged = true, fx = "auto", fxPalette, className, children, ...props }) {
|
|
16
|
+
export function DialogContent({ jagged = true, fx = "auto", fxPalette, showCloseButton = true, className, children, ...props }) {
|
|
16
17
|
const burst = usePixelFxBurst();
|
|
17
18
|
const autoFx = resolveComponentPixelFx("dialog");
|
|
18
19
|
const resolvedEffectId = fx === false ? null : fx === "auto" ? autoFx.effectId : fx;
|
|
20
|
+
const triggerBurst = burst.trigger;
|
|
19
21
|
useEffect(() => {
|
|
20
22
|
if (resolvedEffectId) {
|
|
21
|
-
|
|
23
|
+
triggerBurst();
|
|
22
24
|
}
|
|
23
|
-
|
|
24
|
-
}, [resolvedEffectId]);
|
|
25
|
+
}, [resolvedEffectId, triggerBurst]);
|
|
25
26
|
return (_jsxs(RadixDialog.Portal, { children: [_jsx(RadixDialog.Overlay, { className: "mw-ui-overlay" }), _jsxs(RadixDialog.Content, { className: className
|
|
26
27
|
? `mw-ui-dialog-content ${className}`
|
|
27
|
-
: "mw-ui-dialog-content", "data-jagged": jagged ? "true" : undefined, "data-pixelfx": resolvedEffectId ?? undefined, "data-pixelfx-ready": resolvedEffectId ? "true" : undefined, ...props, children: [jagged ? _jsx(JaggedBorderSvg, { color: "var(--mw-magenta)" }) : null, resolvedEffectId ? (_jsx(PixelFxComponentLayer, { effectId: resolvedEffectId, paletteId: fxPalette ?? autoFx.paletteId, layer: autoFx.layer, loop: false, active: burst.active, speed: autoFx.speed, seed: autoFx.seed + burst.triggerKey, lightK: autoFx.lightK, triggerKey: burst.triggerKey, placement: "background", onComplete: burst.handleComplete })) : null, children] })] }));
|
|
28
|
+
: "mw-ui-dialog-content", "data-jagged": jagged ? "true" : undefined, "data-pixelfx": resolvedEffectId ?? undefined, "data-pixelfx-ready": resolvedEffectId ? "true" : undefined, ...props, children: [jagged ? _jsx(JaggedBorderSvg, { color: "var(--mw-magenta)" }) : null, resolvedEffectId ? (_jsx(PixelFxComponentLayer, { effectId: resolvedEffectId, paletteId: fxPalette ?? autoFx.paletteId, layer: autoFx.layer, loop: false, active: burst.active, speed: autoFx.speed, seed: autoFx.seed + burst.triggerKey, lightK: autoFx.lightK, triggerKey: burst.triggerKey, placement: "background", onComplete: burst.handleComplete })) : null, showCloseButton ? (_jsx(RadixDialog.Close, { className: "mw-ui-dialog-close", "aria-label": "Close dialog", children: _jsx(CloseIcon, { "aria-hidden": "true" }) })) : null, children] })] }));
|
|
28
29
|
}
|
|
29
30
|
export function DialogHeader({ style, ...props }) {
|
|
30
31
|
return (_jsx("div", { style: { display: "grid", gap: "0.35rem", ...style }, ...props }));
|
|
@@ -75,5 +75,6 @@ export declare function isPixelfxAvailable(): boolean;
|
|
|
75
75
|
/**
|
|
76
76
|
* Loads a specific pixelfx effect module dynamically.
|
|
77
77
|
* Returns null if pixelfx is unavailable or the effect doesn't exist.
|
|
78
|
+
* Uses import.meta.glob-based loaders for static analysis by Vite.
|
|
78
79
|
*/
|
|
79
80
|
export declare function loadEffectModule(effectId: string): Promise<PixelFxModule | null>;
|
package/dist/pixelfx-boundary.js
CHANGED
|
@@ -98,17 +98,14 @@ export function isPixelfxAvailable() {
|
|
|
98
98
|
/**
|
|
99
99
|
* Loads a specific pixelfx effect module dynamically.
|
|
100
100
|
* Returns null if pixelfx is unavailable or the effect doesn't exist.
|
|
101
|
+
* Uses import.meta.glob-based loaders for static analysis by Vite.
|
|
101
102
|
*/
|
|
102
103
|
export async function loadEffectModule(effectId) {
|
|
103
104
|
const loaded = await ensurePixelfxLoaded();
|
|
104
105
|
if (!loaded)
|
|
105
106
|
return null;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
catch {
|
|
112
|
-
return null;
|
|
113
|
-
}
|
|
107
|
+
// Import the static loader - this uses import.meta.glob internally
|
|
108
|
+
// which allows Vite to statically analyze and emit all effect chunks
|
|
109
|
+
const { loadEffectModuleById } = await import("./pixelfx-effect-loaders.js");
|
|
110
|
+
return loadEffectModuleById(effectId);
|
|
114
111
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* pixelfx-effect-loaders.ts
|
|
3
|
+
*
|
|
4
|
+
* Static effect module loaders using explicit import() calls for Vite static analysis.
|
|
5
|
+
* This ensures all 29 EFFECT_LOADERS ids from pixelfx.tsx become separate emitted chunks.
|
|
6
|
+
*
|
|
7
|
+
* The pixelfx package exports map is "./fx/*": "./src/fx/*.js"
|
|
8
|
+
* Real files live at pixelfx/src/fx/<category>/<effect>.js
|
|
9
|
+
*/
|
|
10
|
+
import type { PixelFxModule } from "./pixelfx-boundary.js";
|
|
11
|
+
/**
|
|
12
|
+
* Load a specific pixelfx effect module by its effect ID.
|
|
13
|
+
* Returns null if pixelfx is unavailable or the effect doesn't exist.
|
|
14
|
+
*
|
|
15
|
+
* @param effectId - The effect ID (e.g., "weather/aurora", "transitions/glitch-wipe")
|
|
16
|
+
* @returns The effect module or null if not available
|
|
17
|
+
*/
|
|
18
|
+
export declare function loadEffectModuleById(effectId: string): Promise<PixelFxModule | null>;
|
|
19
|
+
/**
|
|
20
|
+
* Get all available effect IDs that can be loaded.
|
|
21
|
+
* Useful for debugging or preloading.
|
|
22
|
+
*/
|
|
23
|
+
export declare function getAvailableEffectIds(): string[];
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* pixelfx-effect-loaders.ts
|
|
3
|
+
*
|
|
4
|
+
* Static effect module loaders using explicit import() calls for Vite static analysis.
|
|
5
|
+
* This ensures all 29 EFFECT_LOADERS ids from pixelfx.tsx become separate emitted chunks.
|
|
6
|
+
*
|
|
7
|
+
* The pixelfx package exports map is "./fx/*": "./src/fx/*.js"
|
|
8
|
+
* Real files live at pixelfx/src/fx/<category>/<effect>.js
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Map of effect IDs to their import paths.
|
|
12
|
+
* Using explicit import() calls allows Vite to statically analyze and emit each as a separate chunk.
|
|
13
|
+
*/
|
|
14
|
+
const EFFECT_IMPORT_MAP = {
|
|
15
|
+
"shadow/eclipse": () => import("pixelfx/fx/shadow/eclipse"),
|
|
16
|
+
"lightning/tesla-coil": () => import("pixelfx/fx/lightning/tesla-coil"),
|
|
17
|
+
"holy/blessing": () => import("pixelfx/fx/holy/blessing"),
|
|
18
|
+
"nature/healing-bloom": () => import("pixelfx/fx/nature/healing-bloom"),
|
|
19
|
+
"explosions/cartoon-pow": () => import("pixelfx/fx/explosions/cartoon-pow"),
|
|
20
|
+
"ui/confetti": () => import("pixelfx/fx/ui/confetti"),
|
|
21
|
+
"arcane/magic-circle-cast": () => import("pixelfx/fx/arcane/magic-circle-cast"),
|
|
22
|
+
"shadow/hex-sigil": () => import("pixelfx/fx/shadow/hex-sigil"),
|
|
23
|
+
"holy/feather-burst": () => import("pixelfx/fx/holy/feather-burst"),
|
|
24
|
+
"weather/shooting-stars": () => import("pixelfx/fx/weather/shooting-stars"),
|
|
25
|
+
"weather/cherry-blossoms": () => import("pixelfx/fx/weather/cherry-blossoms"),
|
|
26
|
+
"weather/aurora": () => import("pixelfx/fx/weather/aurora"),
|
|
27
|
+
"weather/god-rays": () => import("pixelfx/fx/weather/god-rays"),
|
|
28
|
+
"weather/rain": () => import("pixelfx/fx/weather/rain"),
|
|
29
|
+
"weather/fireflies": () => import("pixelfx/fx/weather/fireflies"),
|
|
30
|
+
"holy/halo": () => import("pixelfx/fx/holy/halo"),
|
|
31
|
+
"holy/sunburst": () => import("pixelfx/fx/holy/sunburst"),
|
|
32
|
+
"lightning/spark-arc": () => import("pixelfx/fx/lightning/spark-arc"),
|
|
33
|
+
"lightning/zap-hit": () => import("pixelfx/fx/lightning/zap-hit"),
|
|
34
|
+
"scifi/hologram": () => import("pixelfx/fx/scifi/hologram"),
|
|
35
|
+
"scifi/glitch": () => import("pixelfx/fx/scifi/glitch"),
|
|
36
|
+
"melee/double-slash": () => import("pixelfx/fx/melee/double-slash"),
|
|
37
|
+
"impacts/impact-frame": () => import("pixelfx/fx/impacts/impact-frame"),
|
|
38
|
+
"ui/level-up": () => import("pixelfx/fx/ui/level-up"),
|
|
39
|
+
"transitions/glitch-wipe": () => import("pixelfx/fx/transitions/glitch-wipe"),
|
|
40
|
+
"transitions/slash-wipe": () => import("pixelfx/fx/transitions/slash-wipe"),
|
|
41
|
+
"transitions/burn-away": () => import("pixelfx/fx/transitions/burn-away"),
|
|
42
|
+
"transitions/diamond-wipe": () => import("pixelfx/fx/transitions/diamond-wipe"),
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Load a specific pixelfx effect module by its effect ID.
|
|
46
|
+
* Returns null if pixelfx is unavailable or the effect doesn't exist.
|
|
47
|
+
*
|
|
48
|
+
* @param effectId - The effect ID (e.g., "weather/aurora", "transitions/glitch-wipe")
|
|
49
|
+
* @returns The effect module or null if not available
|
|
50
|
+
*/
|
|
51
|
+
export async function loadEffectModuleById(effectId) {
|
|
52
|
+
const loader = EFFECT_IMPORT_MAP[effectId];
|
|
53
|
+
if (!loader) {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
try {
|
|
57
|
+
const mod = await loader();
|
|
58
|
+
return mod.default;
|
|
59
|
+
}
|
|
60
|
+
catch {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Get all available effect IDs that can be loaded.
|
|
66
|
+
* Useful for debugging or preloading.
|
|
67
|
+
*/
|
|
68
|
+
export function getAvailableEffectIds() {
|
|
69
|
+
return Object.keys(EFFECT_IMPORT_MAP);
|
|
70
|
+
}
|
package/dist/skin-catalog.js
CHANGED
|
@@ -147,6 +147,21 @@ export const BUILTIN_SKINS = Object.freeze([
|
|
|
147
147
|
accent: "#ffed00",
|
|
148
148
|
}),
|
|
149
149
|
}),
|
|
150
|
+
Object.freeze({
|
|
151
|
+
id: "avatar-tactile",
|
|
152
|
+
label: "AVATAR Tactile",
|
|
153
|
+
description: "06°S editorial hardware instrument: Sang Saka Merah signal, Perak Kapur chalk, obsidian ink, archival paper, and the 22° Split-A bar.",
|
|
154
|
+
supportedModes: Object.freeze(["light", "dark"]),
|
|
155
|
+
supportedDensities: Object.freeze(["comfortable", "compact"]),
|
|
156
|
+
defaultMode: "light",
|
|
157
|
+
defaultDensity: "comfortable",
|
|
158
|
+
swatch: Object.freeze({
|
|
159
|
+
background: "#faf9f7",
|
|
160
|
+
surface: "#f2f0ec",
|
|
161
|
+
foreground: "#111214",
|
|
162
|
+
accent: "#ce1126",
|
|
163
|
+
}),
|
|
164
|
+
}),
|
|
150
165
|
]);
|
|
151
166
|
function validateSkinMetadata(skin) {
|
|
152
167
|
if (!isSkinMetadata(skin)) {
|
package/dist/skin-tokens.js
CHANGED
|
@@ -387,4 +387,71 @@ export const BUILTIN_SKIN_TOKENS = Object.freeze({
|
|
|
387
387
|
"--mw-shadow-ink": "3px 3px 0 0 #0a0705",
|
|
388
388
|
"--mw-shadow-ink-lg": "6px 6px 0 0 #0a0705",
|
|
389
389
|
}),
|
|
390
|
+
"avatar-tactile": freezeSkinMode({
|
|
391
|
+
"--mw-paper": "#faf9f7",
|
|
392
|
+
"--mw-paper-raised": "#f2f0ec",
|
|
393
|
+
"--mw-ink": "#111214",
|
|
394
|
+
"--mw-ink-soft": "#4a4c52",
|
|
395
|
+
"--mw-ink-faint": "#66686e",
|
|
396
|
+
"--mw-muted": "#e6e2d8",
|
|
397
|
+
"--mw-primary": "#ce1126",
|
|
398
|
+
"--mw-primary-foreground": "#ffffff",
|
|
399
|
+
"--mw-accent": "#ce1126",
|
|
400
|
+
"--mw-accent-foreground": "#ffffff",
|
|
401
|
+
"--mw-on-accent": "#ffffff",
|
|
402
|
+
"--mw-focus": "#ce1126",
|
|
403
|
+
"--mw-magenta-readable": "#9e0b1c",
|
|
404
|
+
"--mw-cyan-readable": "#1e3a5f",
|
|
405
|
+
"--mw-yellow-readable": "#9a5800",
|
|
406
|
+
"--mw-violet-readable": "#4a4c52",
|
|
407
|
+
"--mw-success-readable": "#166534",
|
|
408
|
+
"--mw-warning-readable": "#9a5800",
|
|
409
|
+
"--mw-error-readable": "#9e0b1c",
|
|
410
|
+
"--mw-border": "#111214",
|
|
411
|
+
"--mw-border-strong": "#111214",
|
|
412
|
+
"--mw-border-subtle": "#a5a7ad",
|
|
413
|
+
"--mw-frame-width": "2px",
|
|
414
|
+
"--mw-comic-border-width": "2px",
|
|
415
|
+
"--mw-radius-xs": "0px",
|
|
416
|
+
"--mw-radius-sm": "0px",
|
|
417
|
+
"--mw-radius-md": "0px",
|
|
418
|
+
"--mw-radius-lg": "0px",
|
|
419
|
+
"--mw-shadow-ink": "4px 4px 0 0 #111214",
|
|
420
|
+
"--mw-shadow-ink-sm": "2px 2px 0 0 #111214",
|
|
421
|
+
"--mw-shadow-ink-lg": "6px 6px 0 0 #111214",
|
|
422
|
+
"--mw-shadow-comic": "4px 4px 0 0 #111214",
|
|
423
|
+
}, {
|
|
424
|
+
"--mw-paper": "#0f1012",
|
|
425
|
+
"--mw-paper-raised": "#18191d",
|
|
426
|
+
"--mw-ink": "#f7f6f4",
|
|
427
|
+
"--mw-ink-soft": "#c4c2ba",
|
|
428
|
+
"--mw-ink-faint": "#a5a7ad",
|
|
429
|
+
"--mw-muted": "#18191d",
|
|
430
|
+
"--mw-primary": "#e51932",
|
|
431
|
+
"--mw-primary-foreground": "#ffffff",
|
|
432
|
+
"--mw-accent": "#ff5a6a",
|
|
433
|
+
"--mw-accent-foreground": "#0f1012",
|
|
434
|
+
"--mw-on-accent": "#0f1012",
|
|
435
|
+
"--mw-focus": "#ff5a6a",
|
|
436
|
+
"--mw-magenta-readable": "#ff5a6a",
|
|
437
|
+
"--mw-cyan-readable": "#7dd3fc",
|
|
438
|
+
"--mw-yellow-readable": "#f5b942",
|
|
439
|
+
"--mw-violet-readable": "#c4c2ba",
|
|
440
|
+
"--mw-success-readable": "#4ade80",
|
|
441
|
+
"--mw-warning-readable": "#f5b942",
|
|
442
|
+
"--mw-error-readable": "#ff5a6a",
|
|
443
|
+
"--mw-border": "#f7f6f4",
|
|
444
|
+
"--mw-border-strong": "#f7f6f4",
|
|
445
|
+
"--mw-border-subtle": "#4a4c52",
|
|
446
|
+
"--mw-frame-width": "2px",
|
|
447
|
+
"--mw-comic-border-width": "2px",
|
|
448
|
+
"--mw-radius-xs": "0px",
|
|
449
|
+
"--mw-radius-sm": "0px",
|
|
450
|
+
"--mw-radius-md": "0px",
|
|
451
|
+
"--mw-radius-lg": "0px",
|
|
452
|
+
"--mw-shadow-ink": "4px 4px 0 0 #f7f6f4",
|
|
453
|
+
"--mw-shadow-ink-sm": "2px 2px 0 0 #f7f6f4",
|
|
454
|
+
"--mw-shadow-ink-lg": "6px 6px 0 0 #f7f6f4",
|
|
455
|
+
"--mw-shadow-comic": "4px 4px 0 0 #f7f6f4",
|
|
456
|
+
}),
|
|
390
457
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BuiltinSkinId, SkinDensity } from "./types.js";
|
|
2
2
|
import type { ThemeMode } from "./provider.js";
|
|
3
3
|
import type { MotionProfile } from "../motion/physics.js";
|
|
4
|
-
export type GenreDnaPresetId = "signal-riot-zine" | "shonen-anime" | "arcade-fighter" | "cozy-jrpg" | "saturday-cartoon" | "doodlebook-funky-grunge";
|
|
4
|
+
export type GenreDnaPresetId = "signal-riot-zine" | "shonen-anime" | "arcade-fighter" | "cozy-jrpg" | "saturday-cartoon" | "doodlebook-funky-grunge" | "avatar-tactile-bench";
|
|
5
5
|
export interface GenreDnaPreset {
|
|
6
6
|
readonly id: GenreDnaPresetId;
|
|
7
7
|
readonly label: string;
|
|
@@ -65,6 +65,17 @@ export const GENRE_DNA_PRESETS = Object.freeze([
|
|
|
65
65
|
motionProfile: "cartoon",
|
|
66
66
|
dnaAttribute: "doodlebook-funky-grunge",
|
|
67
67
|
}),
|
|
68
|
+
Object.freeze({
|
|
69
|
+
id: "avatar-tactile-bench",
|
|
70
|
+
label: "AVATAR Tactile Bench",
|
|
71
|
+
badge: "AVT",
|
|
72
|
+
description: "06°S editorial hardware instrument: Sang Saka Merah signal, Perak Kapur chalk, obsidian ink, archival paper, 22° Split-A bar, strict 0px radii.",
|
|
73
|
+
skin: "avatar-tactile",
|
|
74
|
+
mode: "light",
|
|
75
|
+
density: "comfortable",
|
|
76
|
+
motionProfile: "subtle",
|
|
77
|
+
dnaAttribute: "avatar-tactile-bench",
|
|
78
|
+
}),
|
|
68
79
|
]);
|
|
69
80
|
export function getGenreDnaPresetById(id) {
|
|
70
81
|
if (!id)
|
package/dist/themes/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type ColorMode = "light" | "dark";
|
|
2
2
|
export type ThemeMode = ColorMode | "high-contrast";
|
|
3
3
|
export type SkinDensity = "comfortable" | "compact";
|
|
4
|
-
export type BuiltinSkinId = "moonwitness-ink" | "moonwitness-compact" | "moonwitness-high-contrast" | "moonwitness-riot" | "cartoon-pop" | "arcade-neon" | "clean-motion" | "cozy-rpg" | "doodlebook";
|
|
4
|
+
export type BuiltinSkinId = "moonwitness-ink" | "moonwitness-compact" | "moonwitness-high-contrast" | "moonwitness-riot" | "cartoon-pop" | "arcade-neon" | "clean-motion" | "cozy-rpg" | "doodlebook" | "avatar-tactile";
|
|
5
5
|
export type SkinId = BuiltinSkinId | (string & {});
|
|
6
6
|
export interface SkinSwatchPreview {
|
|
7
7
|
readonly background: string;
|
package/dist/tokens.bundle.json
CHANGED
|
@@ -190,6 +190,27 @@
|
|
|
190
190
|
"foreground": "#17120c",
|
|
191
191
|
"accent": "#ffed00"
|
|
192
192
|
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"id": "avatar-tactile",
|
|
196
|
+
"label": "AVATAR Tactile",
|
|
197
|
+
"description": "06°S editorial hardware instrument: Sang Saka Merah signal, Perak Kapur chalk, obsidian ink, archival paper, and the 22° Split-A bar.",
|
|
198
|
+
"supportedModes": [
|
|
199
|
+
"light",
|
|
200
|
+
"dark"
|
|
201
|
+
],
|
|
202
|
+
"supportedDensities": [
|
|
203
|
+
"comfortable",
|
|
204
|
+
"compact"
|
|
205
|
+
],
|
|
206
|
+
"defaultMode": "light",
|
|
207
|
+
"defaultDensity": "comfortable",
|
|
208
|
+
"swatch": {
|
|
209
|
+
"background": "#faf9f7",
|
|
210
|
+
"surface": "#f2f0ec",
|
|
211
|
+
"foreground": "#111214",
|
|
212
|
+
"accent": "#ce1126"
|
|
213
|
+
}
|
|
193
214
|
}
|
|
194
215
|
],
|
|
195
216
|
"tokens": [
|
|
@@ -1664,6 +1685,76 @@
|
|
|
1664
1685
|
"--mw-shadow-ink": "3px 3px 0 0 #0a0705",
|
|
1665
1686
|
"--mw-shadow-ink-lg": "6px 6px 0 0 #0a0705"
|
|
1666
1687
|
}
|
|
1688
|
+
},
|
|
1689
|
+
"avatar-tactile": {
|
|
1690
|
+
"light": {
|
|
1691
|
+
"--mw-paper": "#faf9f7",
|
|
1692
|
+
"--mw-paper-raised": "#f2f0ec",
|
|
1693
|
+
"--mw-ink": "#111214",
|
|
1694
|
+
"--mw-ink-soft": "#4a4c52",
|
|
1695
|
+
"--mw-ink-faint": "#66686e",
|
|
1696
|
+
"--mw-muted": "#e6e2d8",
|
|
1697
|
+
"--mw-primary": "#ce1126",
|
|
1698
|
+
"--mw-primary-foreground": "#ffffff",
|
|
1699
|
+
"--mw-accent": "#ce1126",
|
|
1700
|
+
"--mw-accent-foreground": "#ffffff",
|
|
1701
|
+
"--mw-on-accent": "#ffffff",
|
|
1702
|
+
"--mw-focus": "#ce1126",
|
|
1703
|
+
"--mw-magenta-readable": "#9e0b1c",
|
|
1704
|
+
"--mw-cyan-readable": "#1e3a5f",
|
|
1705
|
+
"--mw-yellow-readable": "#9a5800",
|
|
1706
|
+
"--mw-violet-readable": "#4a4c52",
|
|
1707
|
+
"--mw-success-readable": "#166534",
|
|
1708
|
+
"--mw-warning-readable": "#9a5800",
|
|
1709
|
+
"--mw-error-readable": "#9e0b1c",
|
|
1710
|
+
"--mw-border": "#111214",
|
|
1711
|
+
"--mw-border-strong": "#111214",
|
|
1712
|
+
"--mw-border-subtle": "#a5a7ad",
|
|
1713
|
+
"--mw-frame-width": "2px",
|
|
1714
|
+
"--mw-comic-border-width": "2px",
|
|
1715
|
+
"--mw-radius-xs": "0px",
|
|
1716
|
+
"--mw-radius-sm": "0px",
|
|
1717
|
+
"--mw-radius-md": "0px",
|
|
1718
|
+
"--mw-radius-lg": "0px",
|
|
1719
|
+
"--mw-shadow-ink": "4px 4px 0 0 #111214",
|
|
1720
|
+
"--mw-shadow-ink-sm": "2px 2px 0 0 #111214",
|
|
1721
|
+
"--mw-shadow-ink-lg": "6px 6px 0 0 #111214",
|
|
1722
|
+
"--mw-shadow-comic": "4px 4px 0 0 #111214"
|
|
1723
|
+
},
|
|
1724
|
+
"dark": {
|
|
1725
|
+
"--mw-paper": "#0f1012",
|
|
1726
|
+
"--mw-paper-raised": "#18191d",
|
|
1727
|
+
"--mw-ink": "#f7f6f4",
|
|
1728
|
+
"--mw-ink-soft": "#c4c2ba",
|
|
1729
|
+
"--mw-ink-faint": "#a5a7ad",
|
|
1730
|
+
"--mw-muted": "#18191d",
|
|
1731
|
+
"--mw-primary": "#e51932",
|
|
1732
|
+
"--mw-primary-foreground": "#ffffff",
|
|
1733
|
+
"--mw-accent": "#ff5a6a",
|
|
1734
|
+
"--mw-accent-foreground": "#0f1012",
|
|
1735
|
+
"--mw-on-accent": "#0f1012",
|
|
1736
|
+
"--mw-focus": "#ff5a6a",
|
|
1737
|
+
"--mw-magenta-readable": "#ff5a6a",
|
|
1738
|
+
"--mw-cyan-readable": "#7dd3fc",
|
|
1739
|
+
"--mw-yellow-readable": "#f5b942",
|
|
1740
|
+
"--mw-violet-readable": "#c4c2ba",
|
|
1741
|
+
"--mw-success-readable": "#4ade80",
|
|
1742
|
+
"--mw-warning-readable": "#f5b942",
|
|
1743
|
+
"--mw-error-readable": "#ff5a6a",
|
|
1744
|
+
"--mw-border": "#f7f6f4",
|
|
1745
|
+
"--mw-border-strong": "#f7f6f4",
|
|
1746
|
+
"--mw-border-subtle": "#4a4c52",
|
|
1747
|
+
"--mw-frame-width": "2px",
|
|
1748
|
+
"--mw-comic-border-width": "2px",
|
|
1749
|
+
"--mw-radius-xs": "0px",
|
|
1750
|
+
"--mw-radius-sm": "0px",
|
|
1751
|
+
"--mw-radius-md": "0px",
|
|
1752
|
+
"--mw-radius-lg": "0px",
|
|
1753
|
+
"--mw-shadow-ink": "4px 4px 0 0 #f7f6f4",
|
|
1754
|
+
"--mw-shadow-ink-sm": "2px 2px 0 0 #f7f6f4",
|
|
1755
|
+
"--mw-shadow-ink-lg": "6px 6px 0 0 #f7f6f4",
|
|
1756
|
+
"--mw-shadow-comic": "4px 4px 0 0 #f7f6f4"
|
|
1757
|
+
}
|
|
1667
1758
|
}
|
|
1668
1759
|
}
|
|
1669
1760
|
}
|
|
@@ -597,3 +597,73 @@
|
|
|
597
597
|
--mw-shadow-comic: 5px 5px 0 0 #000000;
|
|
598
598
|
--mw-green: #39ff14;
|
|
599
599
|
}
|
|
600
|
+
|
|
601
|
+
[data-skin='avatar-tactile'] {
|
|
602
|
+
--mw-paper: #faf9f7;
|
|
603
|
+
--mw-paper-raised: #f2f0ec;
|
|
604
|
+
--mw-ink: #111214;
|
|
605
|
+
--mw-ink-soft: #4a4c52;
|
|
606
|
+
--mw-ink-faint: #66686e;
|
|
607
|
+
--mw-muted: #e6e2d8;
|
|
608
|
+
--mw-primary: #ce1126;
|
|
609
|
+
--mw-primary-foreground: #ffffff;
|
|
610
|
+
--mw-accent: #ce1126;
|
|
611
|
+
--mw-accent-foreground: #ffffff;
|
|
612
|
+
--mw-on-accent: #ffffff;
|
|
613
|
+
--mw-focus: #ce1126;
|
|
614
|
+
--mw-magenta-readable: #9e0b1c;
|
|
615
|
+
--mw-cyan-readable: #1e3a5f;
|
|
616
|
+
--mw-yellow-readable: #9a5800;
|
|
617
|
+
--mw-violet-readable: #4a4c52;
|
|
618
|
+
--mw-success-readable: #166534;
|
|
619
|
+
--mw-warning-readable: #9a5800;
|
|
620
|
+
--mw-error-readable: #9e0b1c;
|
|
621
|
+
--mw-border: #111214;
|
|
622
|
+
--mw-border-strong: #111214;
|
|
623
|
+
--mw-border-subtle: #a5a7ad;
|
|
624
|
+
--mw-frame-width: 2px;
|
|
625
|
+
--mw-comic-border-width: 2px;
|
|
626
|
+
--mw-radius-xs: 0px;
|
|
627
|
+
--mw-radius-sm: 0px;
|
|
628
|
+
--mw-radius-md: 0px;
|
|
629
|
+
--mw-radius-lg: 0px;
|
|
630
|
+
--mw-shadow-ink: 4px 4px 0 0 #111214;
|
|
631
|
+
--mw-shadow-ink-sm: 2px 2px 0 0 #111214;
|
|
632
|
+
--mw-shadow-ink-lg: 6px 6px 0 0 #111214;
|
|
633
|
+
--mw-shadow-comic: 4px 4px 0 0 #111214;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
[data-skin='avatar-tactile'].dark {
|
|
637
|
+
--mw-paper: #0f1012;
|
|
638
|
+
--mw-paper-raised: #18191d;
|
|
639
|
+
--mw-ink: #f7f6f4;
|
|
640
|
+
--mw-ink-soft: #c4c2ba;
|
|
641
|
+
--mw-ink-faint: #a5a7ad;
|
|
642
|
+
--mw-muted: #18191d;
|
|
643
|
+
--mw-primary: #e51932;
|
|
644
|
+
--mw-primary-foreground: #ffffff;
|
|
645
|
+
--mw-accent: #ff5a6a;
|
|
646
|
+
--mw-accent-foreground: #0f1012;
|
|
647
|
+
--mw-on-accent: #0f1012;
|
|
648
|
+
--mw-focus: #ff5a6a;
|
|
649
|
+
--mw-magenta-readable: #ff5a6a;
|
|
650
|
+
--mw-cyan-readable: #7dd3fc;
|
|
651
|
+
--mw-yellow-readable: #f5b942;
|
|
652
|
+
--mw-violet-readable: #c4c2ba;
|
|
653
|
+
--mw-success-readable: #4ade80;
|
|
654
|
+
--mw-warning-readable: #f5b942;
|
|
655
|
+
--mw-error-readable: #ff5a6a;
|
|
656
|
+
--mw-border: #f7f6f4;
|
|
657
|
+
--mw-border-strong: #f7f6f4;
|
|
658
|
+
--mw-border-subtle: #4a4c52;
|
|
659
|
+
--mw-frame-width: 2px;
|
|
660
|
+
--mw-comic-border-width: 2px;
|
|
661
|
+
--mw-radius-xs: 0px;
|
|
662
|
+
--mw-radius-sm: 0px;
|
|
663
|
+
--mw-radius-md: 0px;
|
|
664
|
+
--mw-radius-lg: 0px;
|
|
665
|
+
--mw-shadow-ink: 4px 4px 0 0 #f7f6f4;
|
|
666
|
+
--mw-shadow-ink-sm: 2px 2px 0 0 #f7f6f4;
|
|
667
|
+
--mw-shadow-ink-lg: 6px 6px 0 0 #f7f6f4;
|
|
668
|
+
--mw-shadow-comic: 4px 4px 0 0 #f7f6f4;
|
|
669
|
+
}
|
package/dist/tokens.w3c.json
CHANGED
|
@@ -1926,6 +1926,184 @@
|
|
|
1926
1926
|
"$value": "2px",
|
|
1927
1927
|
"$type": "string"
|
|
1928
1928
|
}
|
|
1929
|
+
},
|
|
1930
|
+
"avatar-tactile": {
|
|
1931
|
+
"swatch-background": {
|
|
1932
|
+
"$value": "#faf9f7",
|
|
1933
|
+
"$type": "color"
|
|
1934
|
+
},
|
|
1935
|
+
"swatch-surface": {
|
|
1936
|
+
"$value": "#f2f0ec",
|
|
1937
|
+
"$type": "color"
|
|
1938
|
+
},
|
|
1939
|
+
"swatch-foreground": {
|
|
1940
|
+
"$value": "#111214",
|
|
1941
|
+
"$type": "color"
|
|
1942
|
+
},
|
|
1943
|
+
"swatch-accent": {
|
|
1944
|
+
"$value": "#ce1126",
|
|
1945
|
+
"$type": "color"
|
|
1946
|
+
},
|
|
1947
|
+
"paper": {
|
|
1948
|
+
"$value": "#faf9f7",
|
|
1949
|
+
"$type": "color",
|
|
1950
|
+
"$description": "dark: #0f1012"
|
|
1951
|
+
},
|
|
1952
|
+
"paper-raised": {
|
|
1953
|
+
"$value": "#f2f0ec",
|
|
1954
|
+
"$type": "color",
|
|
1955
|
+
"$description": "dark: #18191d"
|
|
1956
|
+
},
|
|
1957
|
+
"ink": {
|
|
1958
|
+
"$value": "#111214",
|
|
1959
|
+
"$type": "color",
|
|
1960
|
+
"$description": "dark: #f7f6f4"
|
|
1961
|
+
},
|
|
1962
|
+
"ink-soft": {
|
|
1963
|
+
"$value": "#4a4c52",
|
|
1964
|
+
"$type": "color",
|
|
1965
|
+
"$description": "dark: #c4c2ba"
|
|
1966
|
+
},
|
|
1967
|
+
"ink-faint": {
|
|
1968
|
+
"$value": "#66686e",
|
|
1969
|
+
"$type": "color",
|
|
1970
|
+
"$description": "dark: #a5a7ad"
|
|
1971
|
+
},
|
|
1972
|
+
"muted": {
|
|
1973
|
+
"$value": "#e6e2d8",
|
|
1974
|
+
"$type": "color",
|
|
1975
|
+
"$description": "dark: #18191d"
|
|
1976
|
+
},
|
|
1977
|
+
"primary": {
|
|
1978
|
+
"$value": "#ce1126",
|
|
1979
|
+
"$type": "color",
|
|
1980
|
+
"$description": "dark: #e51932"
|
|
1981
|
+
},
|
|
1982
|
+
"primary-foreground": {
|
|
1983
|
+
"$value": "#ffffff",
|
|
1984
|
+
"$type": "color",
|
|
1985
|
+
"$description": "dark: #ffffff"
|
|
1986
|
+
},
|
|
1987
|
+
"accent": {
|
|
1988
|
+
"$value": "#ce1126",
|
|
1989
|
+
"$type": "color",
|
|
1990
|
+
"$description": "dark: #ff5a6a"
|
|
1991
|
+
},
|
|
1992
|
+
"accent-foreground": {
|
|
1993
|
+
"$value": "#ffffff",
|
|
1994
|
+
"$type": "color",
|
|
1995
|
+
"$description": "dark: #0f1012"
|
|
1996
|
+
},
|
|
1997
|
+
"on-accent": {
|
|
1998
|
+
"$value": "#ffffff",
|
|
1999
|
+
"$type": "color",
|
|
2000
|
+
"$description": "dark: #0f1012"
|
|
2001
|
+
},
|
|
2002
|
+
"focus": {
|
|
2003
|
+
"$value": "#ce1126",
|
|
2004
|
+
"$type": "color",
|
|
2005
|
+
"$description": "dark: #ff5a6a"
|
|
2006
|
+
},
|
|
2007
|
+
"magenta-readable": {
|
|
2008
|
+
"$value": "#9e0b1c",
|
|
2009
|
+
"$type": "color",
|
|
2010
|
+
"$description": "dark: #ff5a6a"
|
|
2011
|
+
},
|
|
2012
|
+
"cyan-readable": {
|
|
2013
|
+
"$value": "#1e3a5f",
|
|
2014
|
+
"$type": "color",
|
|
2015
|
+
"$description": "dark: #7dd3fc"
|
|
2016
|
+
},
|
|
2017
|
+
"yellow-readable": {
|
|
2018
|
+
"$value": "#9a5800",
|
|
2019
|
+
"$type": "color",
|
|
2020
|
+
"$description": "dark: #f5b942"
|
|
2021
|
+
},
|
|
2022
|
+
"violet-readable": {
|
|
2023
|
+
"$value": "#4a4c52",
|
|
2024
|
+
"$type": "color",
|
|
2025
|
+
"$description": "dark: #c4c2ba"
|
|
2026
|
+
},
|
|
2027
|
+
"success-readable": {
|
|
2028
|
+
"$value": "#166534",
|
|
2029
|
+
"$type": "color",
|
|
2030
|
+
"$description": "dark: #4ade80"
|
|
2031
|
+
},
|
|
2032
|
+
"warning-readable": {
|
|
2033
|
+
"$value": "#9a5800",
|
|
2034
|
+
"$type": "color",
|
|
2035
|
+
"$description": "dark: #f5b942"
|
|
2036
|
+
},
|
|
2037
|
+
"error-readable": {
|
|
2038
|
+
"$value": "#9e0b1c",
|
|
2039
|
+
"$type": "color",
|
|
2040
|
+
"$description": "dark: #ff5a6a"
|
|
2041
|
+
},
|
|
2042
|
+
"border": {
|
|
2043
|
+
"$value": "#111214",
|
|
2044
|
+
"$type": "color",
|
|
2045
|
+
"$description": "dark: #f7f6f4"
|
|
2046
|
+
},
|
|
2047
|
+
"border-strong": {
|
|
2048
|
+
"$value": "#111214",
|
|
2049
|
+
"$type": "color",
|
|
2050
|
+
"$description": "dark: #f7f6f4"
|
|
2051
|
+
},
|
|
2052
|
+
"border-subtle": {
|
|
2053
|
+
"$value": "#a5a7ad",
|
|
2054
|
+
"$type": "color",
|
|
2055
|
+
"$description": "dark: #4a4c52"
|
|
2056
|
+
},
|
|
2057
|
+
"frame-width": {
|
|
2058
|
+
"$value": "2px",
|
|
2059
|
+
"$type": "dimension",
|
|
2060
|
+
"$description": "dark: 2px"
|
|
2061
|
+
},
|
|
2062
|
+
"comic-border-width": {
|
|
2063
|
+
"$value": "2px",
|
|
2064
|
+
"$type": "dimension",
|
|
2065
|
+
"$description": "dark: 2px"
|
|
2066
|
+
},
|
|
2067
|
+
"radius-xs": {
|
|
2068
|
+
"$value": "0px",
|
|
2069
|
+
"$type": "dimension",
|
|
2070
|
+
"$description": "dark: 0px"
|
|
2071
|
+
},
|
|
2072
|
+
"radius-sm": {
|
|
2073
|
+
"$value": "0px",
|
|
2074
|
+
"$type": "dimension",
|
|
2075
|
+
"$description": "dark: 0px"
|
|
2076
|
+
},
|
|
2077
|
+
"radius-md": {
|
|
2078
|
+
"$value": "0px",
|
|
2079
|
+
"$type": "dimension",
|
|
2080
|
+
"$description": "dark: 0px"
|
|
2081
|
+
},
|
|
2082
|
+
"radius-lg": {
|
|
2083
|
+
"$value": "0px",
|
|
2084
|
+
"$type": "dimension",
|
|
2085
|
+
"$description": "dark: 0px"
|
|
2086
|
+
},
|
|
2087
|
+
"shadow-ink": {
|
|
2088
|
+
"$value": "4px 4px 0 0 #111214",
|
|
2089
|
+
"$type": "string",
|
|
2090
|
+
"$description": "dark: 4px 4px 0 0 #f7f6f4"
|
|
2091
|
+
},
|
|
2092
|
+
"shadow-ink-sm": {
|
|
2093
|
+
"$value": "2px 2px 0 0 #111214",
|
|
2094
|
+
"$type": "string",
|
|
2095
|
+
"$description": "dark: 2px 2px 0 0 #f7f6f4"
|
|
2096
|
+
},
|
|
2097
|
+
"shadow-ink-lg": {
|
|
2098
|
+
"$value": "6px 6px 0 0 #111214",
|
|
2099
|
+
"$type": "string",
|
|
2100
|
+
"$description": "dark: 6px 6px 0 0 #f7f6f4"
|
|
2101
|
+
},
|
|
2102
|
+
"shadow-comic": {
|
|
2103
|
+
"$value": "4px 4px 0 0 #111214",
|
|
2104
|
+
"$type": "string",
|
|
2105
|
+
"$description": "dark: 4px 4px 0 0 #f7f6f4"
|
|
2106
|
+
}
|
|
1929
2107
|
}
|
|
1930
2108
|
}
|
|
1931
2109
|
}
|
package/package.json
CHANGED
package/src/styles/tokens.css
CHANGED
|
@@ -825,6 +825,85 @@
|
|
|
825
825
|
--mw-green: #39ff14;
|
|
826
826
|
}
|
|
827
827
|
|
|
828
|
+
/* Skin: avatar-tactile (06°S editorial hardware instrument — Sang Saka Merah, Perak Kapur, Obsidian Ink, Archival Paper, 22° Split-A) */
|
|
829
|
+
[data-skin="avatar-tactile"],
|
|
830
|
+
[data-skin='avatar-tactile'] {
|
|
831
|
+
color-scheme: light;
|
|
832
|
+
--mw-paper: #faf9f7;
|
|
833
|
+
--mw-paper-raised: #f2f0ec;
|
|
834
|
+
--mw-ink: #111214;
|
|
835
|
+
--mw-ink-soft: #4a4c52;
|
|
836
|
+
--mw-ink-faint: #66686e;
|
|
837
|
+
--mw-muted: #e6e2d8;
|
|
838
|
+
--mw-primary: #ce1126;
|
|
839
|
+
--mw-primary-foreground: #ffffff;
|
|
840
|
+
--mw-accent: #ce1126;
|
|
841
|
+
--mw-accent-foreground: #ffffff;
|
|
842
|
+
--mw-on-accent: #ffffff;
|
|
843
|
+
--mw-focus: #ce1126;
|
|
844
|
+
--mw-magenta-readable: #9e0b1c;
|
|
845
|
+
--mw-cyan-readable: #1e3a5f;
|
|
846
|
+
--mw-yellow-readable: #9a5800;
|
|
847
|
+
--mw-violet-readable: #4a4c52;
|
|
848
|
+
--mw-success-readable: #166534;
|
|
849
|
+
--mw-warning-readable: #9a5800;
|
|
850
|
+
--mw-error-readable: #9e0b1c;
|
|
851
|
+
--mw-border: #111214;
|
|
852
|
+
--mw-border-strong: #111214;
|
|
853
|
+
--mw-border-subtle: #a5a7ad;
|
|
854
|
+
--mw-frame-width: 2px;
|
|
855
|
+
--mw-comic-border-width: 2px;
|
|
856
|
+
--mw-radius-xs: 0px;
|
|
857
|
+
--mw-radius-sm: 0px;
|
|
858
|
+
--mw-radius-md: 0px;
|
|
859
|
+
--mw-radius-lg: 0px;
|
|
860
|
+
--mw-shadow-ink: 4px 4px 0 0 #111214;
|
|
861
|
+
--mw-shadow-ink-sm: 2px 2px 0 0 #111214;
|
|
862
|
+
--mw-shadow-ink-lg: 6px 6px 0 0 #111214;
|
|
863
|
+
--mw-shadow-comic: 4px 4px 0 0 #111214;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
:root[data-theme="dark"] [data-skin="avatar-tactile"],
|
|
867
|
+
:root[data-theme="dark"] [data-skin='avatar-tactile'],
|
|
868
|
+
[data-skin="avatar-tactile"][data-theme="dark"],
|
|
869
|
+
[data-skin='avatar-tactile'][data-theme="dark"],
|
|
870
|
+
[data-skin="avatar-tactile"].dark,
|
|
871
|
+
[data-skin='avatar-tactile'].dark {
|
|
872
|
+
color-scheme: dark;
|
|
873
|
+
--mw-paper: #0f1012;
|
|
874
|
+
--mw-paper-raised: #18191d;
|
|
875
|
+
--mw-ink: #f7f6f4;
|
|
876
|
+
--mw-ink-soft: #c4c2ba;
|
|
877
|
+
--mw-ink-faint: #a5a7ad;
|
|
878
|
+
--mw-muted: #18191d;
|
|
879
|
+
--mw-primary: #e51932;
|
|
880
|
+
--mw-primary-foreground: #ffffff;
|
|
881
|
+
--mw-accent: #ff5a6a;
|
|
882
|
+
--mw-accent-foreground: #0f1012;
|
|
883
|
+
--mw-on-accent: #0f1012;
|
|
884
|
+
--mw-focus: #ff5a6a;
|
|
885
|
+
--mw-magenta-readable: #ff5a6a;
|
|
886
|
+
--mw-cyan-readable: #7dd3fc;
|
|
887
|
+
--mw-yellow-readable: #f5b942;
|
|
888
|
+
--mw-violet-readable: #c4c2ba;
|
|
889
|
+
--mw-success-readable: #4ade80;
|
|
890
|
+
--mw-warning-readable: #f5b942;
|
|
891
|
+
--mw-error-readable: #ff5a6a;
|
|
892
|
+
--mw-border: #f7f6f4;
|
|
893
|
+
--mw-border-strong: #f7f6f4;
|
|
894
|
+
--mw-border-subtle: #4a4c52;
|
|
895
|
+
--mw-frame-width: 2px;
|
|
896
|
+
--mw-comic-border-width: 2px;
|
|
897
|
+
--mw-radius-xs: 0px;
|
|
898
|
+
--mw-radius-sm: 0px;
|
|
899
|
+
--mw-radius-md: 0px;
|
|
900
|
+
--mw-radius-lg: 0px;
|
|
901
|
+
--mw-shadow-ink: 4px 4px 0 0 #f7f6f4;
|
|
902
|
+
--mw-shadow-ink-sm: 2px 2px 0 0 #f7f6f4;
|
|
903
|
+
--mw-shadow-ink-lg: 6px 6px 0 0 #f7f6f4;
|
|
904
|
+
--mw-shadow-comic: 4px 4px 0 0 #f7f6f4;
|
|
905
|
+
}
|
|
906
|
+
|
|
828
907
|
|
|
829
908
|
[data-density="compact"] {
|
|
830
909
|
--mw-space-2: 0.375rem;
|
|
@@ -908,6 +987,13 @@
|
|
|
908
987
|
--mw-dna-chromatic-x: 2px;
|
|
909
988
|
}
|
|
910
989
|
|
|
990
|
+
[data-dna="avatar-tactile-bench"] {
|
|
991
|
+
--mw-dna-skew: -22deg;
|
|
992
|
+
--mw-dna-halftone-opacity: 0.08;
|
|
993
|
+
--mw-dna-speedline-opacity: 0.12;
|
|
994
|
+
--mw-dna-chromatic-x: 1px;
|
|
995
|
+
}
|
|
996
|
+
|
|
911
997
|
@media (prefers-reduced-motion: reduce) {
|
|
912
998
|
:root {
|
|
913
999
|
--mw-motion-scale: 0;
|