Traumatic is a shadcn/ui theme built around a green primary color (#87a758) with pink accents (#a75887). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the green primary (#87a758) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #030401black |
| Foreground | #0e1406black | #ffffffwhite |
| Card | #f8fcf3whitesmoke | #060703black |
| Card foreground | #0b1005black | #ffffffwhite |
| Popover | #fbfdf7snow | #030401black |
| Popover foreground | #0e1406black | #ffffffwhite |
| Primary | #87a758gray | #87a758gray |
| Primary foreground | #1b2112black | #1b2112black |
| Secondary | #5887a7steelblue | #5887a7steelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e0e4e6gainsboro | #191d1fblack |
| Muted foreground | #434b51darkslategray | #aeb7bcsilver |
| Accent | #a75887gray | #a75887gray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #942000darkred | #f03400orangered |
| Destructive foreground | #ffd3c7peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #87a758gray | #87a758gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.27:1 | AAA |
| Text on card | 18.55:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 3.84:1 | AA Large |
| Muted text | 6.92:1 | AA |
| Accent | 4.78:1 | AA |
| Destructive | 6.24:1 | AA |
| Text on background | 20.58:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 3.84:1 | AA Large |
| Muted text | 8.34:1 | AAA |
| Accent | 4.78:1 | AA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Traumatic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.009 124.473);
--foreground: oklch(0.179 0.029 126.265);
--muted: oklch(0.915 0.006 236.525);
--muted-foreground: oklch(0.409 0.015 236.997);
--popover: oklch(0.991 0.009 124.473);
--popover-foreground: oklch(0.179 0.029 126.265);
--card: oklch(0.986 0.013 124.539);
--card-foreground: oklch(0.163 0.025 125.299);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.686 0.112 127.034);
--primary-foreground: oklch(0.238 0.03 126.305);
--secondary: oklch(0.603 0.071 238.71);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.569 0.119 344.634);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.436 0.156 34.28);
--destructive-foreground: oklch(0.901 0.052 35.956);
--ring: oklch(0.686 0.112 127.034);
--chart-1: oklch(0.686 0.112 127.034);
--chart-2: oklch(0.603 0.071 238.71);
--chart-3: oklch(0.569 0.119 344.634);
--chart-4: oklch(0.628 0.066 238.397);
--chart-5: oklch(0.695 0.121 127.28);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.011 123.802);
--foreground: oklch(1 0 180);
--muted: oklch(0.227 0.008 236.968);
--muted-foreground: oklch(0.773 0.013 236.681);
--popover: oklch(0.099 0.011 123.802);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.014 123.802);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.686 0.112 127.034);
--primary-foreground: oklch(0.238 0.03 126.305);
--secondary: oklch(0.603 0.071 238.71);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.569 0.119 344.634);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.62 0.227 33.276);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.686 0.112 127.034);
--chart-1: oklch(0.686 0.112 127.034);
--chart-2: oklch(0.603 0.071 238.71);
--chart-3: oklch(0.569 0.119 344.634);
--chart-4: oklch(0.628 0.066 238.397);
--chart-5: oklch(0.695 0.121 127.28);
}