Fit Trapped Darkness is a shadcn/ui theme built around a vivid deep blue primary color (#071931) with vivid deep green accents (#193107). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid deep blue primary (#071931) on a neutral background (#020508).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #020508black |
| Foreground | #050910black | #ffffffwhite |
| Card | #fcfcfdwhite | #020508black |
| Card foreground | #050910black | #ffffffwhite |
| Popover | #fcfcfdwhite | #020508black |
| Popover foreground | #050910black | #ffffffwhite |
| Primary | #071931black | #071931black |
| Primary foreground | #7daeedskyblue | #7daeedskyblue |
| Secondary | #310719black | #310719black |
| Secondary foreground | #ed7daehotpink | #ed7daehotpink |
| Muted | #f4ebefwhitesmoke | #140b0fblack |
| Muted foreground | #453b3fdarkslategray | #c4babfsilver |
| Accent | #193107black | #193107black |
| Accent foreground | #75e123yellowgreen | #75e123yellowgreen |
| Destructive | #c9160dfirebrick | #f23f36tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e6e8ealavender | #191c1fblack |
| Input | #e6e8ealavender | #191c1fblack |
| Ring | #071931black | #071931black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 6.92:1 | AA |
| Muted text | 9.23:1 | AAA |
| Accent | 8.42:1 | AAA |
| Destructive | 5.80:1 | AA |
| Text on background | 20.45:1 | AAA |
| Text on card | 20.45:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 6.92:1 | AA |
| Muted text | 10.26:1 | AAA |
| Accent | 8.42:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Fit Trapped Darkness in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 254.962);
--foreground: oklch(0.14 0.016 250.508);
--muted: oklch(0.949 0.011 349.048);
--muted-foreground: oklch(0.363 0.016 349.914);
--popover: oklch(0.992 0.002 254.962);
--popover-foreground: oklch(0.14 0.016 250.508);
--card: oklch(0.992 0.002 254.962);
--card-foreground: oklch(0.14 0.016 250.508);
--border: oklch(0.929 0.004 254.978);
--input: oklch(0.929 0.004 254.978);
--primary: oklch(0.214 0.054 255.897);
--primary-foreground: oklch(0.74 0.107 255.459);
--secondary: oklch(0.216 0.071 358.373);
--secondary-foreground: oklch(0.729 0.148 354.04);
--accent: oklch(0.284 0.073 134.571);
--accent-foreground: oklch(0.813 0.231 135.878);
--destructive: oklch(0.533 0.209 29.426);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.214 0.054 255.897);
--chart-1: oklch(0.214 0.054 255.897);
--chart-2: oklch(0.216 0.071 358.373);
--chart-3: oklch(0.284 0.073 134.571);
--chart-4: oklch(0.249 0.085 359.396);
--chart-5: oklch(0.214 0.056 255.835);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.013 246.471);
--foreground: oklch(1 0 180);
--muted: oklch(0.163 0.017 351.472);
--muted-foreground: oklch(0.799 0.013 349.18);
--popover: oklch(0.11 0.013 246.471);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.11 0.013 246.471);
--card-foreground: oklch(1 0 180);
--border: oklch(0.224 0.007 255.104);
--input: oklch(0.224 0.007 255.104);
--primary: oklch(0.214 0.054 255.897);
--primary-foreground: oklch(0.74 0.107 255.459);
--secondary: oklch(0.216 0.071 358.373);
--secondary-foreground: oklch(0.729 0.148 354.04);
--accent: oklch(0.284 0.073 134.571);
--accent-foreground: oklch(0.813 0.231 135.878);
--destructive: oklch(0.636 0.217 28.131);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.214 0.054 255.897);
--chart-1: oklch(0.214 0.054 255.897);
--chart-2: oklch(0.216 0.071 358.373);
--chart-3: oklch(0.284 0.073 134.571);
--chart-4: oklch(0.249 0.085 359.396);
--chart-5: oklch(0.214 0.056 255.835);
}