Polish Tessera web canvas: multi-tab vault UI

Vault ring scene, orbits editor, wormhole pairing, decay presets,
reconstitute grace UI, shared components, and API wiring per SPEC.
This commit is contained in:
Tessera Agent
2026-11-09 10:23:57 +00:00
parent a5ffb2c1b4
commit 1a67876f19
23 changed files with 1302 additions and 347 deletions

View File

@@ -0,0 +1,26 @@
import type { ButtonHTMLAttributes } from "react";
const variants = {
primary:
"bg-wormhole-violet/25 text-star-100 border-wormhole-violet/40 hover:bg-wormhole-violet/35",
ghost: "bg-space-800/60 text-star-200 border-space-700 hover:bg-space-800",
danger: "bg-orbit-red/15 text-orbit-red border-orbit-red/35 hover:bg-orbit-red/25",
success: "bg-orbit-green/15 text-orbit-green border-orbit-green/35 hover:bg-orbit-green/25",
warn: "bg-orbit-amber/15 text-orbit-amber border-orbit-amber/40 hover:bg-orbit-amber/25",
};
export function Button({
variant = "ghost",
className = "",
...props
}: ButtonHTMLAttributes<HTMLButtonElement> & {
variant?: keyof typeof variants;
}) {
return (
<button
type="button"
className={`px-4 py-2.5 rounded-xl text-sm font-medium border transition-colors disabled:opacity-40 ${variants[variant]} ${className}`}
{...props}
/>
);
}