Rouge 2 is a shadcn/ui theme built around a neutral gray primary color (#a2a3a9) with deep indigo accents (#30325a). The light mode uses an indigo-tinted background (#151628). Dark mode keeps the neutral gray primary (#a2a3a9) on an indigo-tinted background (#151628).
| Token | Light | Dark |
|---|---|---|
| Background | #151628black | #151628black |
| Foreground | #a2a3a9darkgray | #a2a3a9darkgray |
| Card | #121321black | #121321black |
| Card foreground | #afb0b6darkgray | #afb0b6darkgray |
| Popover | #10111eblack | #10111eblack |
| Popover foreground | #bdbdc2silver | #bdbdc2silver |
| Primary | #a2a3a9darkgray | #a2a3a9darkgray |
| Primary foreground | #0c0c0dblack | #0c0c0dblack |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #24242edarkslategray | #24242edarkslategray |
| Muted foreground | #9e9fb3darkgray | #9e9fb3darkgray |
| Accent | #30325adarkslategray | #30325adarkslategray |
| Accent foreground | #d4d5e8gainsboro | #d4d5e8gainsboro |
| Destructive | #f35d3ftomato | #f35d3ftomato |
| Destructive foreground | #000000black | #000000black |
| Border | #232434darkslategray | #232434darkslategray |
| Input | #292a3ddarkslategray | #292a3ddarkslategray |
| Ring | #a2a3a9darkgray | #a2a3a9darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.07:1 | AAA |
| Text on card | 8.53:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.88:1 | AA |
| Accent | 8.35:1 | AAA |
| Destructive | 6.44:1 | AA |
| Text on background | 7.07:1 | AAA |
| Text on card | 8.53:1 | AAA |
| Primary button | 7.77:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.88:1 | AA |
| Accent | 8.35:1 | AAA |
| Destructive | 6.44:1 | AA |
Paste this into your globals.css to use Rouge 2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.21 0.034 280.694);
--foreground: oklch(0.717 0.009 280.13);
--muted: oklch(0.265 0.017 282.777);
--muted-foreground: oklch(0.708 0.029 283.245);
--popover: oklch(0.183 0.027 281.088);
--popover-foreground: oklch(0.8 0.006 279.223);
--card: oklch(0.192 0.029 280.942);
--card-foreground: oklch(0.759 0.008 280.171);
--border: oklch(0.265 0.031 281.75);
--input: oklch(0.292 0.035 281.645);
--primary: oklch(0.717 0.009 280.13);
--primary-foreground: oklch(0.156 0.002 280.138);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.336 0.068 279.75);
--accent-foreground: oklch(0.878 0.026 283.447);
--destructive: oklch(0.669 0.19 33.182);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.717 0.009 280.13);
--chart-1: oklch(0.717 0.009 280.13);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.336 0.068 279.75);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.711 0.016 279.97);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.21 0.034 280.694);
--foreground: oklch(0.717 0.009 280.13);
--muted: oklch(0.265 0.017 282.777);
--muted-foreground: oklch(0.708 0.029 283.245);
--popover: oklch(0.183 0.027 281.088);
--popover-foreground: oklch(0.8 0.006 279.223);
--card: oklch(0.192 0.029 280.942);
--card-foreground: oklch(0.759 0.008 280.171);
--border: oklch(0.265 0.031 281.75);
--input: oklch(0.292 0.035 281.645);
--primary: oklch(0.717 0.009 280.13);
--primary-foreground: oklch(0.156 0.002 280.138);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.336 0.068 279.75);
--accent-foreground: oklch(0.878 0.026 283.447);
--destructive: oklch(0.669 0.19 33.182);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.717 0.009 280.13);
--chart-1: oklch(0.717 0.009 280.13);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.336 0.068 279.75);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(0.711 0.016 279.97);
}