Traumatic is a shadcn/ui theme built around a muted green primary color (#537b51) with muted red accents (#7b5153). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#537b51) on a green-tinted background (#051004).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #051004black |
| Foreground | #051504black | #f9fbf9mintcream |
| Card | #ffffffwhite | #051004black |
| Card foreground | #051504black | #f9fbf9mintcream |
| Popover | #ffffffwhite | #051004black |
| Popover foreground | #051504black | #f9fbf9mintcream |
| Primary | #537b51dimgray | #537b51dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #51537bdarkslateblue | #51537bdarkslateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eff0f5whitesmoke | #0a0a10black |
| Muted foreground | #58585adimgray | #a5a5a7darkgray |
| Accent | #7b5153dimgray | #7b5153dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a92b04firebrick | #f43e06orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #537b51dimgray | #537b51dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.82:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 4.83:1 | AA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 6.23:1 | AA |
| Accent | 6.68:1 | AA |
| Destructive | 6.92:1 | AA |
| Text on background | 18.62:1 | AAA |
| Text on card | 18.62:1 | AAA |
| Primary button | 4.83:1 | AA |
| Secondary button | 7.27:1 | AAA |
| Muted text | 8.01:1 | AAA |
| Accent | 6.68:1 | AA |
| Destructive | 3.80:1 | AA Large |
Paste this into your globals.css to use Traumatic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.176 0.042 141.852);
--muted: oklch(0.956 0.007 282.982);
--muted-foreground: oklch(0.463 0.003 283.008);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.176 0.042 141.852);
--card: oklch(1 0 180);
--card-foreground: oklch(0.176 0.042 141.852);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.543 0.079 142.838);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.459 0.065 280.354);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.482 0.058 15.074);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.486 0.168 34.891);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.543 0.079 142.838);
--chart-1: oklch(0.543 0.079 142.838);
--chart-2: oklch(0.459 0.065 280.354);
--chart-3: oklch(0.482 0.058 15.074);
--chart-4: oklch(0.482 0.069 280.325);
--chart-5: oklch(0.548 0.09 142.741);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.158 0.033 141.917);
--foreground: oklch(0.985 0.002 143.625);
--muted: oklch(0.149 0.011 281.741);
--muted-foreground: oklch(0.722 0.002 283.05);
--popover: oklch(0.158 0.033 141.917);
--popover-foreground: oklch(0.985 0.002 143.625);
--card: oklch(0.158 0.033 141.917);
--card-foreground: oklch(0.985 0.002 143.625);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.543 0.079 142.838);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.459 0.065 280.354);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.482 0.058 15.074);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.635 0.224 34.312);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.543 0.079 142.838);
--chart-1: oklch(0.543 0.079 142.838);
--chart-2: oklch(0.459 0.065 280.354);
--chart-3: oklch(0.482 0.058 15.074);
--chart-4: oklch(0.482 0.069 280.325);
--chart-5: oklch(0.548 0.09 142.741);
}