Traumatic is a shadcn/ui theme built around a vivid light blue primary color (#bbdffb) with vivid light green accents (#dffbbb). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid light blue primary (#bbdffb) on a blue-tinted background (#060b0f).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #060b0fblack |
| Foreground | #010304black | #f8fafbghostwhite |
| Card | #f7fafdghostwhite | #070d13black |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #f7fafdghostwhite | #070d13black |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #bbdffbpaleturquoise | #bbdffbpaleturquoise |
| Primary foreground | #07487emidnightblue | #07487emidnightblue |
| Secondary | #fbbbdfpink | #fbbbdfpink |
| Secondary foreground | #7e0748purple | #7e0748purple |
| Muted | #f2e3eblinen | #1c0d15black |
| Muted foreground | #67565fdimgray | #a998a1darkgray |
| Accent | #dffbbbpalegoldenrod | #dffbbbpalegoldenrod |
| Accent foreground | #111d02black | #111d02black |
| Destructive | #631708maroon | #d93312firebrick |
| Destructive foreground | #f8b3a5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bbdffbpaleturquoise | #bbdffbpaleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 6.61:1 | AA |
| Muted text | 5.52:1 | AA |
| Accent | 15.57:1 | AAA |
| Destructive | 7.22:1 | AAA |
| Text on background | 18.91:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 6.61:1 | AA |
| Muted text | 6.88:1 | AA |
| Accent | 15.57:1 | AAA |
| Destructive | 4.74:1 | AA |
Paste this into your globals.css to use Traumatic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 242.228);
--foreground: oklch(0.09 0.011 233.359);
--muted: oklch(0.93 0.02 343.13);
--muted-foreground: oklch(0.473 0.026 343.936);
--popover: oklch(0.984 0.005 242.263);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.984 0.005 242.263);
--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.886 0.055 243.044);
--primary-foreground: oklch(0.396 0.108 250.236);
--secondary: oklch(0.861 0.086 344.927);
--secondary-foreground: oklch(0.39 0.155 355.587);
--accent: oklch(0.953 0.089 127.689);
--accent-foreground: oklch(0.212 0.053 129.366);
--destructive: oklch(0.333 0.111 33.089);
--destructive-foreground: oklch(0.828 0.083 31.578);
--ring: oklch(0.886 0.055 243.044);
--chart-1: oklch(0.886 0.055 243.044);
--chart-2: oklch(0.861 0.086 344.927);
--chart-3: oklch(0.953 0.089 127.689);
--chart-4: oklch(0.89 0.067 344.377);
--chart-5: oklch(0.886 0.057 243.075);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.013 239.733);
--foreground: oklch(0.984 0.003 242.229);
--muted: oklch(0.184 0.03 346.284);
--muted-foreground: oklch(0.698 0.024 343.437);
--popover: oklch(0.156 0.016 242.306);
--popover-foreground: oklch(0.992 0.001 242.211);
--card: oklch(0.156 0.016 242.306);
--card-foreground: oklch(0.992 0.001 242.211);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.886 0.055 243.044);
--primary-foreground: oklch(0.396 0.108 250.236);
--secondary: oklch(0.861 0.086 344.927);
--secondary-foreground: oklch(0.39 0.155 355.587);
--accent: oklch(0.953 0.089 127.689);
--accent-foreground: oklch(0.212 0.053 129.366);
--destructive: oklch(0.579 0.206 32.614);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.886 0.055 243.044);
--chart-1: oklch(0.886 0.055 243.044);
--chart-2: oklch(0.861 0.086 344.927);
--chart-3: oklch(0.953 0.089 127.689);
--chart-4: oklch(0.89 0.067 344.377);
--chart-5: oklch(0.886 0.057 243.075);
}