Unsung is a shadcn/ui theme built around a deep blue primary color (#11274b) with deep orange accents (#4b3511). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#11274b) on a blue-tinted background (#05070a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05070ablack |
| Foreground | #010409black | #f9fafbghostwhite |
| Card | #ffffffwhite | #05070ablack |
| Card foreground | #010409black | #f9fafbghostwhite |
| Popover | #ffffffwhite | #05070ablack |
| Popover foreground | #010409black | #f9fafbghostwhite |
| Primary | #11274bmidnightblue | #11274bmidnightblue |
| Primary foreground | #a4bfealightsteelblue | #a4bfealightsteelblue |
| Secondary | #4b3511darkolivegreen | #4b3511darkolivegreen |
| Secondary foreground | #eacfa4wheat | #eacfa4wheat |
| Muted | #e3dfd9gainsboro | #26221cblack |
| Muted foreground | #686155dimgray | #aaa397darkgray |
| Accent | #4b3511darkolivegreen | #4b3511darkolivegreen |
| Accent foreground | #eacfa4wheat | #eacfa4wheat |
| Destructive | #af1c08firebrick | #f4270borangered |
| Destructive foreground | #feeeecseashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #11274bmidnightblue | #11274bmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.53:1 | AAA |
| Text on card | 20.53:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 4.61:1 | AA |
| Accent | 7.71:1 | AAA |
| Destructive | 6.22:1 | AA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 7.71:1 | AAA |
| Destructive | 4.10:1 | AA Large |
Paste this into your globals.css to use Unsung in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.106 0.017 249.218);
--muted: oklch(0.905 0.009 79.914);
--muted-foreground: oklch(0.494 0.02 79.79);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.106 0.017 249.218);
--card: oklch(1 0 180);
--card-foreground: oklch(0.106 0.017 249.218);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.277 0.072 259.499);
--primary-foreground: oklch(0.799 0.069 259.835);
--secondary: oklch(0.345 0.059 76.131);
--secondary-foreground: oklch(0.867 0.065 79.489);
--accent: oklch(0.345 0.059 76.131);
--accent-foreground: oklch(0.867 0.065 79.489);
--destructive: oklch(0.486 0.184 30.895);
--destructive-foreground: oklch(0.961 0.018 26.574);
--ring: oklch(0.277 0.072 259.499);
--chart-1: oklch(0.277 0.072 259.499);
--chart-2: oklch(0.345 0.059 76.131);
--chart-3: oklch(0.345 0.059 76.131);
--chart-4: oklch(0.382 0.067 75.849);
--chart-5: oklch(0.276 0.075 259.518);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.01 254.798);
--foreground: oklch(0.984 0.002 259.936);
--muted: oklch(0.255 0.013 79.736);
--muted-foreground: oklch(0.718 0.019 79.865);
--popover: oklch(0.127 0.01 254.798);
--popover-foreground: oklch(0.984 0.002 259.936);
--card: oklch(0.127 0.01 254.798);
--card-foreground: oklch(0.984 0.002 259.936);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.277 0.072 259.499);
--primary-foreground: oklch(0.799 0.069 259.835);
--secondary: oklch(0.345 0.059 76.131);
--secondary-foreground: oklch(0.867 0.065 79.489);
--accent: oklch(0.345 0.059 76.131);
--accent-foreground: oklch(0.867 0.065 79.489);
--destructive: oklch(0.619 0.237 30.773);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.277 0.072 259.499);
--chart-1: oklch(0.277 0.072 259.499);
--chart-2: oklch(0.345 0.059 76.131);
--chart-3: oklch(0.345 0.059 76.131);
--chart-4: oklch(0.382 0.067 75.849);
--chart-5: oklch(0.276 0.075 259.518);
}