---
name: dmaven-warm-fusion
description: >-
  Comprehensive guide and design system rules for DMaven Design System (Warm Fusion).
  Combines Neo-Brutalist tactile physics with Swiss typographic warmth for rich multi-color brands.
  Includes 12-step Radix semantic color tokens, Tailwind CSS presets, complete React + Radix UI component library, Phosphor Icons, and strict guardrails.
  Two intensities: Full (default) and Subtle (the same system at a lower volume). Use the Subtle rules when asked for "Warm Fusion Subtle".
---

# DMaven Design System · Warm Fusion (`dmaven-warm-fusion`)

The **DMaven Design System** is an intentional, high-contrast design language and component architecture born from the fusion of **Neo-Brutalist structural physics** and **Swiss typographic warmth**, engineered specifically for expressive, multi-color brand identities.

> **Intensity.** Warm Fusion has two intensities: **Full** (default, described in sections 1–5) and **Subtle** (section 6). If the user asks for "Warm Fusion Subtle", or for a calm, professional Warm Fusion look, follow section 6. Set `<html data-wf-intensity="full|subtle">`.

---

## 1. The Design Genesis & Philosophy

### A. The Neo-Brutalist Outset (The Bone)
- **Tactile Physics**: Crisp 2.5px ink borders (`var(--slate-12)` / `#001F51`), hard 5px × 5px drop shadows with zero blur, and physical press micro-interactions (`translate(2px, 2px)` on active/hover).
- **Structural Confidence**: High visual clarity, bold monospace badges, distinct section boundaries, and truth to screen.

### B. The Swiss Style Warmth (The Soul)
- **Organic Grounds**: Replaces cold sterile pure whites/grays with warm organic cream backgrounds (`var(--sand-1)`, `var(--sand-2)`).
- **Human Typographic Scale**: High-character display headers (`Bricolage Grotesque`), ultra-legible modern body type (`Instrument Sans`), precise data badges (`Space Mono`), and classical Arabic script (`Amiri`).
- **Warm Rounded Curves**: Generous rounded corners (16px / 22px) and pill chips that soften brutalist rigidity into an inviting, approachable artifact.

### C. Multi-Color Brand Harmony
- Engineered specifically for brands with rich multi-color palettes (Deep Navy, Sacred Terra, Emerald Growth, Warm Gold, Brilliant Blue), ensuring high vibrancy without visual clutter.

---

## 2. Radix UI 12-Step Semantic Color Token Standard

DMaven Warm Fusion uses the standard **Radix UI 12-step color scale** (`@radix-ui/colors`) mapped to semantic roles:

```
Step 1–2:  Ground / App Canvases & Section Washes
Step 3–5:  Interactive Surfaces, Tints & Card Hover/Active States
Step 6–8:  UI Borders & Focus Rings
Step 9–10: Solid Backgrounds & Primary CTAs (High Contrast)
Step 11:   Muted / Secondary Text
Step 12:   High-Contrast Ink & Brutalist 2.5px Structural Borders
```

### Semantic Token Mapping Table
| Token Variable | Radix Color Token | Value (Light) | Semantic Role |
| :--- | :--- | :--- | :--- |
| `--wf-ground` | `var(--sand-2)` | `#F9F6F0` | App canvas background |
| `--wf-ground-2` | `var(--sand-3)` | `#F1ECE0` | Raised section wash |
| `--wf-surface` | `#FFFFFF` / `var(--sand-1)` | `#FFFFFF` | Card & modal surface |
| `--wf-ink` / `--wf-border` | `var(--slate-12)` | `#001F51` | Primary ink & 2.5px brutalist border |
| `--wf-ink-2` | `var(--slate-11)` | `#27456D` | Secondary body text |
| `--wf-muted` | `var(--sand-11)` | `#5E5646` | Muted captions & metadata |
| `--wf-terra` | `var(--orange-9)` | `#FB5707` | Primary CTA & energy accent |
| `--wf-terra-deep` | `var(--orange-10)` | `#D44200` | CTA active / hover state |
| `--wf-green` | `var(--grass-9)` | `#1BC67F` | Emerald growth & success indicator |
| `--wf-green-dark` | `var(--grass-11)` | `#006634` | Dark green ink & badges |
| `--wf-gold` | `var(--amber-9)` | `#FFCB66` | Warm gold & prestige highlight |
| `--wf-blue` | `var(--blue-9)` | `#3B86FE` | Brilliant blue info & links |
| `--wf-danger` | `var(--crimson-9)` | `#E11D48` | Danger actions & error states |

---

## 3. Official System Icon Standard: Phosphor Icons
- **Official Icon Family**: **Phosphor Icons** (`@phosphor-icons/react`, `@phosphor-icons/web`).
- **Default Weight**: `bold` (matches the 2.5px brutalist border weight and geometric character).
- **Never use emojis** for UI navigation or buttons. Always use Phosphor Icons:
  ```tsx
  import { ArrowRight, CheckCircle, Warning, XCircle, Info, Sparkle, SlidersHorizontal } from "@phosphor-icons/react";
  // Usage:
  <ArrowRight weight="bold" className="w-5 h-5" />
  ```

---

## 4. Complete React + Radix Component Library

Install package:
```bash
npm install @designmaven/design-system @phosphor-icons/react
```

### Component 1: `Button`
Tactile physical button with zero text wrapping, brutalist borders, and click offset physics.
```tsx
import { Button } from "@designmaven/design-system";
import { Sparkle, ArrowRight } from "@phosphor-icons/react";

<Button variant="primary" size="md">
  <Sparkle weight="bold" /> Start Assessment <ArrowRight weight="bold" />
</Button>
<Button variant="secondary">Cancel</Button>
<Button variant="danger">Delete Workspace</Button>
```

### Component 2: `Card`
Tactile card with hard drop shadow and optional hover lift micro-interaction.
```tsx
import { Card, Badge } from "@designmaven/design-system";

<Card variant="surface" interactive>
  <Badge variant="terra">Active Batch</Badge>
  <h3 className="font-display font-bold text-lg text-ink mt-2">Tactile Card Container</h3>
  <p className="font-body text-sm text-ink-2 mt-1">Swiss warmth fused with crisp structural boundaries.</p>
</Card>
```

### Component 3: `Badge` / `Tag`
High-contrast monospace pill tag for categories, status badges, and metadata.
```tsx
import { Badge } from "@designmaven/design-system";
import { CheckCircle } from "@phosphor-icons/react";

<Badge variant="terra">New Release</Badge>
<Badge variant="green"><CheckCircle weight="bold" /> 100% Verified</Badge>
<Badge variant="gold">Premium</Badge>
<Badge variant="neutral">Draft</Badge>
```

### Component 4: `Dialog` / `Modal` & `Drawer`
Centered dialog on desktop with hard 8px shadow; docks automatically to the bottom edge with a drag handle on mobile viewports ($\le 680\text{px}$).
```tsx
import { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, Button } from "@designmaven/design-system";

<Dialog>
  <DialogTrigger asChild>
    <Button variant="primary">Open Dialog</Button>
  </DialogTrigger>
  <DialogContent>
    <DialogHeader>
      <DialogTitle>Adaptive Modal & Drawer</DialogTitle>
      <DialogDescription>
        Renders as a floating centered modal on desktop and docks seamlessly as a tactile bottom sheet on mobile screens.
      </DialogDescription>
    </DialogHeader>
    <div className="flex justify-end gap-2 mt-4">
      <Button variant="secondary">Dismiss</Button>
      <Button variant="primary">Confirm Action</Button>
    </div>
  </DialogContent>
</Dialog>
```

### Component 5: `Toast` (Signature Feedback Notification)
Monospace status pill header with clear colored indicator and conversational copy.
```tsx
import { Toast, useToast } from "@designmaven/design-system";

const { toast } = useToast();

// Success
toast({
  type: "success", // Header: "✓ SUCCESS · #1BC67F"
  title: "Profile updated successfully!",
  description: "Your brand tokens have been synchronized across all views."
});

// Error
toast({
  type: "error", // Header: "× ERROR · #E11D48"
  title: "Connection timeout",
  description: "Could not reach the database. Please check your credentials."
});
```

### Component 6: `Input`, `Select`, `Textarea`
Tactile input controls with generous padding, right-aligned dropdown chevrons, and high-contrast focus rings.
```tsx
import { Input, Select, Textarea } from "@designmaven/design-system";

<Input label="Workspace Name" placeholder="e.g. BrilliantRoots Production" />
<Select label="Color Preset" options={[{ label: "Warm Fusion", value: "classic" }]} />
<Textarea label="Custom Guardrails" rows={4} />
```

### Component 7: `Tabs`, `Accordion`, `Switch`
Accessible Radix primitives styled with tactile DMaven borders and active pill states.
```tsx
import { Tabs, TabsList, TabsTrigger, TabsContent, Accordion, Switch } from "@designmaven/design-system";
```

---

## 5. Strict System Guardrails

1. **Icons**: Exclusively use **Phosphor Icons** (weight: `bold` or `regular`). Never use system emojis or mismatched icon sets.
2. **Shadows**: Never use soft, blurred shadows. Always use hard offset drop shadows (`5px 5px 0 var(--wf-border)`).
3. **Ink & Borders**: Default to Deep Navy `var(--slate-12)` (`#001F51`). Never use pure `#000000` black unless explicitly configured.
4. **Button Wrapping**: Always enforce `white-space: nowrap !important;` on buttons and action chips. Text must never break into two awkward lines inside a button.
5. **Mobile-first Drawer / Modal standard**:
   - On screens $\le 680\text{px}$, modals **must** dock to `bottom: 0` as a bottom-sheet drawer with a tactile drag handle (`.wf-modal-handle`), zero lateral offset, and safe-area padding.
   - On desktop screens ($> 680\text{px}$), modals render as centered dialogs with a solid 8px × 8px drop shadow.
6. **Minimum Touch Target**: All interactive elements must maintain a minimum tap target of 44px × 44px on mobile viewports.
7. **Tactile Button Press**: Interactive buttons must animate with physical feedback on active:
   `transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--wf-border);`.

---

## 6. Intensity: Warm Fusion Subtle

Subtle is the same Warm Fusion system at a lower volume: the same orange, the same warmth and the same tactile hard edges, used quietly. It is not a separate theme and not a cut-down copy. It is a token layer on top of Full.

### When to choose it
- Choose **Subtle** for portfolios, consulting, finance, B2B products, documentation, and anything that should look calm and professional.
- Choose **Full** (the default) for learning products, launches, campaigns and playful brands.
- If the user says "Warm Fusion Subtle", use Subtle. If they just say "Warm Fusion", use Full.

### How to turn it on
- CSS: load `tokens.css`, then set `<html data-wf-intensity="subtle">`. Light and dark both work (`.dark` or `data-theme="dark"`).
- Tailwind: `presets: [require("./tailwind.preset.js").subtle]`. The `subtle:` and `full:` variants respond to the attribute.
- Never fork components for Subtle. Every component reads tokens; Subtle only changes token values.

### Colour: neutral paper, one orange accent
| Token | Light | Dark | Use |
| :--- | :--- | :--- | :--- |
| `--wf-ground` (paper) | `#F4F3EF` | `#151515` | Page sheet |
| `--wf-surface` (raised) | `#FFFFFF` | `#1C1C1C` | Inputs, panels |
| `--wf-ground-2` (sunk) | `#ECEAE4` | `#1F1F1F` | Wells, code, quiet chips |
| `--wf-hairline` | `#DDDAD2` | `#2A2A2A` | All inner borders and row rules |
| `--wf-edge` | `#141414` | `#000000` | The one hard edge (sheet, dialog, nav, primary button) |
| `--wf-ink` | `#141414` | `#F2F0EA` | Text |
| `--wf-ink-2` | `#57544E` | `#A7A39B` | Secondary text |
| `--wf-muted` (faint labels) | `#6A665E` | `#908C84` | Mono labels, captions |
| `--wf-terra` | `#FB5707` | `#FB5707` | Orange **fills only** |
| `--wf-terra-text` | `#B83B00` | `#FF7A33` | Small orange text |
| `--wf-terra-display` | `#D94600` | `#FF7A33` | Large orange text (Doto accent) |
| `--wf-terra-tint` | `#FCE4D6` | `#3A1A08` | Highlighted cells |
| `--wf-forest` (emphasis band) | `#121212` | `#0D0D0D` | Dark bands |

Rules:
1. **One accent colour only.** Drop the multi-colour brand balance: no green, gold or blue as brand colour. Green and red appear only to mean success and error.
2. **Orange fills only small things:** small squares and markers, the active-nav notch, and the primary button's hover shadow. Never a large orange fill, never an orange button.
3. Orange text uses `--wf-terra-text` (small) or `--wf-terra-display` (24px and larger only).

### Type
- Headings: **Space Grotesk 500**, letter-spacing −0.03em.
- Body: **Geist 400/500**, 15–16px.
- Labels: **Geist Mono** 10–11px, uppercase, tracking 0.12em, in `--wf-muted`.
- Accent: **Doto** (dot-matrix) for one word or one stat number at most, in orange.
- Fewer weights and less contrast between sizes than Full. No 800 weights.

### Shape and layout
- One content **sheet**: 1.5px near-black edge, 6px radius, 6px hard offset shadow, sitting on a grainy orange ground.
- Dialogs: 8px radius, same edge and 6px shadow. Floating nav: 4px radius, 4px shadow, an orange notch on the active item.
- Content sits in **ruled rows** with **numbered gutters** (76px desktop, 34px phone): 1px hairlines between rows, dashed dividers inside lists.
- Buttons are **flat ink blocks** (2px radius). On hover they lift 2px with a 4px **orange** offset shadow.
- Hard shadows appear on the sheet, dialogs, the nav and the primary button only. Everything else (cards, tags, inputs, toasts, secondary buttons) is flat with hairlines.

### Texture and gradients
- Behind the sheet: an orange ground with SVG fractal-noise grain at about 0.3 opacity, multiply blend.
- One slow radial **flare** (orange, peach and red blobs) only at the very bottom of a page or footer, masked to fade in.
- **No gradients on components.**

### Motion
- Springs: stiffness 420 / damping 36 for UI, 260 / 30 for page transitions (CSS approximation: `--wf-spring-ui`, `--wf-spring-page`).
- Page enter: slide up 28px with a 4px blur-in; children staggered by 0.03s.
- Dialogs scale from 0.97 to 1.
- Small hover motions only. Respect `prefers-reduced-motion` everywhere. Sound is off by default.

### Accessibility
- All text passes WCAG AA in light and dark: body and labels 4.5:1 or more, large dot-matrix accents 3:1 or more.
- `#D94600` is below 4.5:1 on the paper, so it is only for large display text. Small orange text uses `#B83B00` (light) or `#FF7A33` (dark).

### Subtle guardrails
1. Never call it "extracted" or "lite". It is **Subtle**: the same system at a lower volume.
2. One orange accent; no multi-colour UI.
3. One hard edge per surface level: sheet, dialog, nav, primary button. Nothing else gets a shadow.
4. No gradients on components; the grain and the bottom flare are the only textures.
5. Doto appears at most once per view.
6. Dropdowns keep the custom chevron, inset from the right edge.
