Son of Obsidian is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted cyan accents (#445155). The light mode uses a cyan-tinted background (#22282a). Dark mode keeps the near-white primary (#ffffff) on a cyan-tinted background (#22282a).
| Token | Light | Dark |
|---|---|---|
| Background | #22282adarkslategray | #22282adarkslategray |
| Foreground | #f1f2f3whitesmoke | #f1f2f3whitesmoke |
| Card | #1e2325black | #1e2325black |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #1b2022black | #1b2022black |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #2b3336darkslategray | #2b3336darkslategray |
| Muted foreground | #a6b5b9darkgray | #a6b5b9darkgray |
| Accent | #445155darkslategray | #445155darkslategray |
| Accent foreground | #e3e7e8gainsboro | #e3e7e8gainsboro |
| Destructive | #fb0e0ered | #fb0e0ered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #323334darkslategray | #323334darkslategray |
| Input | #3a3b3bdarkslategray | #3a3b3bdarkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 13.28:1 | AAA |
| Text on card | 15.90:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.07:1 | AA |
| Accent | 6.62:1 | AA |
| Destructive | 4.05:1 | AA Large |
| Text on background | 13.28:1 | AAA |
| Text on card | 15.90:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.07:1 | AA |
| Accent | 6.62:1 | AA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Son of Obsidian in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.273 0.01 219.841);
--foreground: oklch(0.961 0.002 247.84);
--muted: oklch(0.315 0.013 219.908);
--muted-foreground: oklch(0.763 0.017 219.696);
--popover: oklch(0.24 0.008 219.816);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.251 0.009 219.825);
--card-foreground: oklch(1 0 180);
--border: oklch(0.321 0.001 219.534);
--input: oklch(0.351 0.001 219.534);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.424 0.017 219.908);
--accent-foreground: oklch(0.925 0.005 219.546);
--destructive: oklch(0.624 0.252 28.874);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.424 0.017 219.908);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.273 0.01 219.841);
--foreground: oklch(0.961 0.002 247.84);
--muted: oklch(0.315 0.013 219.908);
--muted-foreground: oklch(0.763 0.017 219.696);
--popover: oklch(0.24 0.008 219.816);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.251 0.009 219.825);
--card-foreground: oklch(1 0 180);
--border: oklch(0.321 0.001 219.534);
--input: oklch(0.351 0.001 219.534);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.424 0.017 219.908);
--accent-foreground: oklch(0.925 0.005 219.546);
--destructive: oklch(0.624 0.252 28.874);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.424 0.017 219.908);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}