Restyle the UI: instrument-panel palette, type system, and a signal accent
Replaces the default shadcn grayscale/Geist look with a deliberate identity built around the product's own subject - a control panel for running scripts and watching their output live: - Type: Bricolage Grotesque for page/card titles (via the existing --font-heading token, used with restraint), IBM Plex Sans for UI body text, IBM Plex Mono for technical data (run IDs, commands, timestamps, status labels) - all self-hosted at build time via next/font/google, no runtime CDN dependency for a self-hosted tool. - Color: a cool graphite ink/paper base with a warm brass signal accent in both themes. The brass tone doubles as the "running" status color, so an active run literally lights the UI up with the brand color. New --status-* tokens give queued/running/succeeded/failed/cancelled/ warn a single source of truth instead of ad-hoc Tailwind color classes. - Structural language: small tracked-out uppercase mono labels mark technical fields (Command, Variables, Triggered by...) consistently; the live-output terminal gets an instrument-bezel frame (header bar + panel) instead of floating loose above the xterm canvas. Layout/IA is unchanged throughout - this is a token- and detail-level pass, not a restructuring. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,13 +3,13 @@ import type { RunStatus } from "@/lib/db/schema";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const styles: Record<RunStatus, string> = {
|
||||
queued: "bg-muted text-muted-foreground",
|
||||
running: "bg-blue-500/15 text-blue-600 dark:text-blue-400",
|
||||
succeeded: "bg-emerald-500/15 text-emerald-600 dark:text-emerald-400",
|
||||
failed: "bg-destructive/15 text-destructive",
|
||||
cancelled: "bg-muted text-muted-foreground",
|
||||
timed_out: "bg-amber-500/15 text-amber-600 dark:text-amber-400",
|
||||
interrupted: "bg-amber-500/15 text-amber-600 dark:text-amber-400",
|
||||
queued: "bg-status-queued/12 text-status-queued",
|
||||
running: "bg-status-running/15 text-status-running",
|
||||
succeeded: "bg-status-succeeded/12 text-status-succeeded",
|
||||
failed: "bg-status-failed/12 text-status-failed",
|
||||
cancelled: "bg-status-cancelled/12 text-status-cancelled",
|
||||
timed_out: "bg-status-warn/12 text-status-warn",
|
||||
interrupted: "bg-status-warn/12 text-status-warn",
|
||||
};
|
||||
|
||||
export const runStatusLabels: Record<RunStatus, string> = {
|
||||
@@ -25,12 +25,18 @@ export const runStatusLabels: Record<RunStatus, string> = {
|
||||
export function RunStatusBadge({ status }: { status: RunStatus }) {
|
||||
return (
|
||||
<Badge
|
||||
className={cn("border-transparent font-medium", styles[status])}
|
||||
className={cn(
|
||||
"gap-1.5 border-transparent font-mono text-[0.7rem] font-medium tracking-wide uppercase",
|
||||
styles[status],
|
||||
)}
|
||||
variant="outline"
|
||||
>
|
||||
{status === "running" && (
|
||||
<span className="mr-1 inline-block size-1.5 animate-pulse rounded-full bg-current" />
|
||||
)}
|
||||
<span
|
||||
className={cn(
|
||||
"size-1.5 shrink-0 rounded-full bg-current",
|
||||
status === "running" && "animate-pulse",
|
||||
)}
|
||||
/>
|
||||
{runStatusLabels[status]}
|
||||
</Badge>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user