Insomnia is a shadcn/ui theme built around a red primary color (#87263d) with orange accents (#874026). The light mode uses a neutral background (#fefbfc). Dark mode keeps the red primary (#87263d) on a red-tinted background (#0b0406).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #0b0406black |
| Foreground | #090103black | #fdfcfcsnow |
| Card | #fefbfcsnow | #0b0406black |
| Card foreground | #090103black | #fdfcfcsnow |
| Popover | #fefbfcsnow | #0b0406black |
| Popover foreground | #090103black | #fdfcfcsnow |
| Primary | #87263dbrown | #87263dbrown |
| Primary foreground | #f8e7eblinen | #f8e7eblinen |
| Secondary | #87266dpurple | #87266dpurple |
| Secondary foreground | #f8e7f4lavenderblush | #f8e7f4lavenderblush |
| Muted | #e6ccdfgainsboro | #33192cdarkslategray |
| Muted foreground | #5c4757dimgray | #b8a3b2darkgray |
| Accent | #874026saddlebrown | #874026saddlebrown |
| Accent foreground | #f8ece7linen | #f8ece7linen |
| Destructive | #7d1f03maroon | #fa460forangered |
| Destructive foreground | #fdc5b4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #87263dbrown | #87263dbrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.06:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 7.40:1 | AAA |
| Secondary button | 6.99:1 | AA |
| Muted text | 5.62:1 | AA |
| Accent | 6.48:1 | AA |
| Destructive | 6.67:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 7.40:1 | AAA |
| Secondary button | 6.99:1 | AA |
| Muted text | 6.75:1 | AA |
| Accent | 6.48:1 | AA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Insomnia in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 1.05);
--foreground: oklch(0.1 0.027 0.993);
--muted: oklch(0.872 0.038 335.281);
--muted-foreground: oklch(0.426 0.038 335.997);
--popover: oklch(0.991 0.003 1.05);
--popover-foreground: oklch(0.1 0.027 0.993);
--card: oklch(0.991 0.003 1.05);
--card-foreground: oklch(0.1 0.027 0.993);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.427 0.132 10.99);
--primary-foreground: oklch(0.943 0.019 1.527);
--secondary: oklch(0.445 0.153 340.424);
--secondary-foreground: oklch(0.946 0.025 334.98);
--accent: oklch(0.459 0.105 40.096);
--accent-foreground: oklch(0.951 0.015 41.187);
--destructive: oklch(0.392 0.133 35.564);
--destructive-foreground: oklch(0.87 0.069 37.596);
--ring: oklch(0.427 0.132 10.99);
--chart-1: oklch(0.427 0.132 10.99);
--chart-2: oklch(0.445 0.153 340.424);
--chart-3: oklch(0.459 0.105 40.096);
--chart-4: oklch(0.473 0.164 340.485);
--chart-5: oklch(0.429 0.137 11.662);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.015 1.021);
--foreground: oklch(0.991 0.002 1.008);
--muted: oklch(0.259 0.051 337.73);
--muted-foreground: oklch(0.738 0.033 335.284);
--popover: oklch(0.123 0.015 1.021);
--popover-foreground: oklch(0.991 0.002 1.008);
--card: oklch(0.123 0.015 1.021);
--card-foreground: oklch(0.991 0.002 1.008);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.427 0.132 10.99);
--primary-foreground: oklch(0.943 0.019 1.527);
--secondary: oklch(0.445 0.153 340.424);
--secondary-foreground: oklch(0.946 0.025 334.98);
--accent: oklch(0.459 0.105 40.096);
--accent-foreground: oklch(0.951 0.015 41.187);
--destructive: oklch(0.653 0.223 34.977);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.427 0.132 10.99);
--chart-1: oklch(0.427 0.132 10.99);
--chart-2: oklch(0.445 0.153 340.424);
--chart-3: oklch(0.459 0.105 40.096);
--chart-4: oklch(0.473 0.164 340.485);
--chart-5: oklch(0.429 0.137 11.662);
}