Traumatic is a shadcn/ui theme built around a muted deep yellow primary color (#4d4e41) with muted deep purple accents (#4e414d). The light mode uses a neutral background (#fefefb). Dark mode keeps the muted deep yellow primary (#4d4e41) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #070703black |
| Foreground | #000000black | #fafaf9snow |
| Card | #fcfcf7snow | #0b0b04black |
| Card foreground | #000000black | #fdfdfcwhite |
| Popover | #fefefbwhite | #070703black |
| Popover foreground | #000000black | #fafaf9snow |
| Primary | #4d4e41darkslategray | #4d4e41darkslategray |
| Primary foreground | #e3e3degainsboro | #e3e3degainsboro |
| Secondary | #414d4edarkslategray | #414d4edarkslategray |
| Secondary foreground | #dee3e3gainsboro | #dee3e3gainsboro |
| Muted | #d1e5e6gainsboro | #192d2edarkslategray |
| Muted foreground | #3d4d4ddarkslategray | #b2c2c2silver |
| Accent | #4e414ddarkslategray | #4e414ddarkslategray |
| Accent foreground | #e3dee3gainsboro | #e3dee3gainsboro |
| Destructive | #8c290dsaddlebrown | #e94416orangered |
| Destructive foreground | #fbdad0bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4d4e41darkslategray | #4d4e41darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.73:1 | AAA |
| Text on card | 20.46:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 6.73:1 | AA |
| Muted text | 6.78:1 | AA |
| Accent | 7.23:1 | AAA |
| Destructive | 6.59:1 | AA |
| Text on background | 19.28:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 6.57:1 | AA |
| Secondary button | 6.73:1 | AA |
| Muted text | 7.78:1 | AAA |
| Accent | 7.23:1 | AAA |
| Destructive | 3.96: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 107.999);
--foreground: oklch(0 0 0);
--muted: oklch(0.907 0.021 199.295);
--muted-foreground: oklch(0.405 0.02 198.982);
--popover: oklch(0.995 0.003 107.999);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.006 108.059);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.419 0.021 108.823);
--primary-foreground: oklch(0.915 0.007 108.088);
--secondary: oklch(0.411 0.016 199.111);
--secondary-foreground: oklch(0.912 0.006 199.52);
--accent: oklch(0.393 0.027 327.11);
--accent-foreground: oklch(0.905 0.009 326.63);
--destructive: oklch(0.431 0.139 35.253);
--destructive-foreground: oklch(0.912 0.039 35.944);
--ring: oklch(0.419 0.021 108.823);
--chart-1: oklch(0.419 0.021 108.823);
--chart-2: oklch(0.411 0.016 199.111);
--chart-3: oklch(0.393 0.027 327.11);
--chart-4: oklch(0.44 0.017 199.104);
--chart-5: oklch(0.425 0.027 109.077);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.015 109.563);
--foreground: oklch(0.986 0.001 107.965);
--muted: oklch(0.282 0.026 198.576);
--muted-foreground: oklch(0.802 0.018 199.315);
--popover: oklch(0.128 0.015 109.563);
--popover-foreground: oklch(0.986 0.001 107.965);
--card: oklch(0.147 0.017 109.633);
--card-foreground: oklch(0.993 0.001 107.952);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.419 0.021 108.823);
--primary-foreground: oklch(0.915 0.007 108.088);
--secondary: oklch(0.411 0.016 199.111);
--secondary-foreground: oklch(0.912 0.006 199.52);
--accent: oklch(0.393 0.027 327.11);
--accent-foreground: oklch(0.905 0.009 326.63);
--destructive: oklch(0.623 0.209 34.813);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.419 0.021 108.823);
--chart-1: oklch(0.419 0.021 108.823);
--chart-2: oklch(0.411 0.016 199.111);
--chart-3: oklch(0.393 0.027 327.11);
--chart-4: oklch(0.44 0.017 199.104);
--chart-5: oklch(0.425 0.027 109.077);
}