🛠️ Agent Activation Instructions
Apply the [designer] skill whenever the user's request involves:
- New View Creation: Use a 3-column dashboard layout:
[Sidebar (Nav) | Main Content | Command Center (Quick Actions)]. Usebg-backgroundfor the app base andbg-cardfor elevated panels. - Data Visualization: Default to Primary-on-Surface (Amber/Copper on Charcoal) using circular progress rings (
variant-steampunk-gauge) or high-contrast numeric cards. - Component Styling: Use
border-border(1px),bg-card, androunded-sm(steampunk favors sharper, 2-4px corners over soft ones). - Technical Metadata: Display physical specs (Scale, Road Number, DCC Address) using the "Three-Column Footer" pattern—
text-muted-foregrounduppercase labels overtext-foregroundmonospaced values. - Svelte 5 Patterns: Utilize
{#snippet}for repeatable UI elements like Table Rows or Metadata Badges to ensure theme consistency.
🚦 Decision Logic (The "Theme-Variable" Check)
CRITICAL: Never use hex codes (e.g., #D48A42). Map all intent to Tailwind 4 theme variables:
- Is it a Brand Action? Use
bg-primaryandtext-primary-foreground. - Is it a Secondary Detail? Use
text-muted-foregroundandfont-mono(JetBrains Mono) for numbers. - Is it Interactive? Apply
variant-steampunk-leverfor buttons to trigger the mechanical press effect. - Is it a Container? Use
variant-steampunk-rivetedfor main dashboard panels to apply corner rivets.
1. The "Dynamic Accent" Rule
The action color (--primary) adapts based on the active data-theme.
- Active States: Use
bg-primary/15for sidebar highlights with a2pxsolidborder-primaryon the left. - Buttons: * Primary:
bg-primary text-primary-foreground(Solid brass/copper).- Secondary:
border-primary text-primary hover:bg-primary/10.
- Secondary:
- Mechanical Feel: Use
transition-all duration-150 ease-outto mimic physical switchgear.
2. Layout & Information Hierarchy
- The "Card in Card" Look: Use
bg-cardfor main containers. For sub-grouping (e.g., "Yard Statistics"), use an innerdivwithbg-background/50and aborder-border. - Technical Specs: Labels must be
text-[10px] uppercase tracking-tighter text-muted-foreground. Values must betext-sm font-mono text-foreground. - Status Badges: Use the "Pill" style snippet. Position them
absolute top-2 right-2on images usingbg-background/80with aborder-primary.
3. Empty States & Feedback
- Center Aligned: Keep empty states perfectly centered in their container.
- Monochromatic Icons: Use 2px stroke icons (Lucide or similar) in
text-muted-foreground. - Toast/Signals: Use
.toast-signalfor background errors, ensuring theborder-primaryorborder-warningis visible.
🎨 Design Tokens (Tailwind 4 Variable Mapping)
- Background & Surface:
- Light Theme:
bg-backgroundis parchment (#f2ead3);bg-cardis aged paper (#eaddbc). - Dark Theme:
bg-backgroundis charcoal (#1a1a1a);bg-cardis deep iron (#242424).
- Light Theme:
- Primary (The Brass/Copper): - Use
bg-primaryfor action buttons. In light theme, ensure text istext-primary-foreground(usually white or deep brown) for legibility. - Typography (Non-Negotiable):
- Headings:
font-bebas uppercase tracking-widest. - Data/Numbers:
font-mono(JetBrains Mono). - Labels:
text-[10px] uppercase text-muted-foreground font-bold.
- Headings:
🛠️ Component-Specific Instructions
1. Model Cards (Svelte Snippet)
- Header: Brand name in
font-bebas text-muted-foreground. - Image: Contained in a
border-b border-borderframe. - Footer: A 3-column flex/grid. Labels:
text-[10px] text-muted-foreground. Values:text-xs font-mono.
2. Dashboard Gauges
- Circular Progress: Use
stroke-primaryfor the active value andstroke-muted/20for the background track. - Typography: Numerical values inside gauges must be
font-mono.
3. Interactive Inputs
- Fields: Use
bg-backgroundwithborder-border. - Focus State: On focus, use
ring-1 ring-primaryandborder-primary. - Toggle/Valve: Apply the
.variant-steampunk-valveclass for checkbox/switch inputs.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.