Traumatic is a shadcn/ui theme built around a muted yellow primary color (#878473) with muted blue accents (#737687). The light mode uses a neutral background (#fefdfb). Dark mode keeps the muted yellow primary (#878473) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #000000black |
| Foreground | #171403black | #fdfdfcwhite |
| Card | #fefdfbsnow | #000000black |
| Card foreground | #171403black | #fdfdfcwhite |
| Popover | #fefdfbsnow | #000000black |
| Popover foreground | #171403black | #fdfdfcwhite |
| Primary | #878473gray | #878473gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #737687slategray | #737687slategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d6d8e6gainsboro | #191b29black |
| Muted foreground | #5a5d72dimgray | #8d90a5lightslategray |
| Accent | #737687slategray | #737687slategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #892f0bsaddlebrown | #d94a12chocolate |
| Destructive foreground | #fbd9cbbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #878473gray | #878473gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.17:1 | AAA |
| Text on card | 18.17:1 | AAA |
| Primary button | 5.57:1 | AA |
| Secondary button | 4.49:1 | AA Large |
| Muted text | 4.56:1 | AA |
| Accent | 4.49:1 | AA Large |
| Destructive | 6.43:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 5.57:1 | AA |
| Secondary button | 4.49:1 | AA Large |
| Muted text | 5.40:1 | AA |
| Accent | 4.49:1 | AA Large |
| Destructive | 4.25:1 | AA Large |
Paste this into your globals.css to use Traumatic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 98.355);
--foreground: oklch(0.189 0.033 100.608);
--muted: oklch(0.885 0.019 277.991);
--muted-foreground: oklch(0.485 0.034 277.211);
--popover: oklch(0.995 0.003 98.355);
--popover-foreground: oklch(0.189 0.033 100.608);
--card: oklch(0.995 0.003 98.355);
--card-foreground: oklch(0.189 0.033 100.608);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.611 0.025 98.856);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.569 0.026 277.605);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.569 0.026 277.605);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.433 0.13 38.902);
--destructive-foreground: oklch(0.909 0.042 42.78);
--ring: oklch(0.611 0.025 98.856);
--chart-1: oklch(0.611 0.025 98.856);
--chart-2: oklch(0.569 0.026 277.605);
--chart-3: oklch(0.569 0.026 277.605);
--chart-4: oklch(0.595 0.025 277.661);
--chart-5: oklch(0.619 0.034 99.014);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 98.343);
--muted: oklch(0.228 0.028 276.261);
--muted-foreground: oklch(0.659 0.031 277.589);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.002 98.343);
--card: oklch(0 0 0);
--card-foreground: oklch(0.994 0.002 98.343);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.611 0.025 98.856);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.569 0.026 277.605);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.569 0.026 277.605);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.602 0.189 38.226);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.611 0.025 98.856);
--chart-1: oklch(0.611 0.025 98.856);
--chart-2: oklch(0.569 0.026 277.605);
--chart-3: oklch(0.569 0.026 277.605);
--chart-4: oklch(0.595 0.025 277.661);
--chart-5: oklch(0.619 0.034 99.014);
}