Single is a shadcn/ui theme built around a muted deep blue primary color (#151619) with muted deep yellow accents (#191815). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted deep blue primary (#151619) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #000000black |
| Foreground | #020308black | #f6f7f9whitesmoke |
| Card | #f6f8fdghostwhite | #030303black |
| Card foreground | #010204black | #f9f9fbghostwhite |
| Popover | #f6f8fdghostwhite | #030303black |
| Popover foreground | #010204black | #f9f9fbghostwhite |
| Primary | #151619black | #151619black |
| Primary foreground | #a8abb8darkgray | #a8abb8darkgray |
| Secondary | #191815black | #191815black |
| Secondary foreground | #b8b4a8darkgray | #b8b4a8darkgray |
| Muted | #e5e4e1gainsboro | #1e1d1ablack |
| Muted foreground | #6c6756dimgray | #a9a493darkgray |
| Accent | #191815black | #191815black |
| Accent foreground | #b8b4a8darkgray | #b8b4a8darkgray |
| Destructive | #5c240amaroon | #e15819chocolate |
| Destructive foreground | #f5bda3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #151619black | #151619black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.99:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 8.54:1 | AAA |
| Muted text | 4.45:1 | AA Large |
| Accent | 8.54:1 | AAA |
| Destructive | 7.41:1 | AAA |
| Text on background | 19.59:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 8.54:1 | AAA |
| Muted text | 6.74:1 | AA |
| Accent | 8.54:1 | AAA |
| Destructive | 3.73:1 | AA Large |
Paste this into your globals.css to use Single in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 273.822);
--foreground: oklch(0.102 0.017 265.834);
--muted: oklch(0.919 0.004 93.915);
--muted-foreground: oklch(0.513 0.026 94.325);
--popover: oklch(0.979 0.008 273.777);
--popover-foreground: oklch(0.081 0.014 265.834);
--card: oklch(0.979 0.008 273.777);
--card-foreground: oklch(0.081 0.014 265.834);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.199 0.007 273.415);
--primary-foreground: oklch(0.744 0.018 273.576);
--secondary: oklch(0.21 0.007 94.195);
--secondary-foreground: oklch(0.771 0.018 94.1);
--accent: oklch(0.21 0.007 94.195);
--accent-foreground: oklch(0.771 0.018 94.1);
--destructive: oklch(0.338 0.089 42.512);
--destructive-foreground: oklch(0.842 0.074 46.047);
--ring: oklch(0.199 0.007 273.415);
--chart-1: oklch(0.199 0.007 273.415);
--chart-2: oklch(0.21 0.007 94.195);
--chart-3: oklch(0.21 0.007 94.195);
--chart-4: oklch(0.245 0.009 94.223);
--chart-5: oklch(0.198 0.01 273.258);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.003 273.833);
--muted: oklch(0.231 0.006 94.124);
--muted-foreground: oklch(0.718 0.024 94.195);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.983 0.002 273.844);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.983 0.002 273.844);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.199 0.007 273.415);
--primary-foreground: oklch(0.744 0.018 273.576);
--secondary: oklch(0.21 0.007 94.195);
--secondary-foreground: oklch(0.771 0.018 94.1);
--accent: oklch(0.21 0.007 94.195);
--accent-foreground: oklch(0.771 0.018 94.1);
--destructive: oklch(0.633 0.184 41.049);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.199 0.007 273.415);
--chart-1: oklch(0.199 0.007 273.415);
--chart-2: oklch(0.21 0.007 94.195);
--chart-3: oklch(0.21 0.007 94.195);
--chart-4: oklch(0.245 0.009 94.223);
--chart-5: oklch(0.198 0.01 273.258);
}