Black Magic Owl is a shadcn/ui theme built around a muted violet primary color (#514856) with muted teal accents (#485651). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#514856) on a neutral background (#030104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030104black |
| Foreground | #0c0212black | #fdfcfdwhite |
| Card | #fbf7fdghostwhite | #030104black |
| Card foreground | #0c0212black | #fdfcfdwhite |
| Popover | #fbf7fdghostwhite | #030104black |
| Popover foreground | #0c0212black | #fdfcfdwhite |
| Primary | #514856darkslategray | #514856darkslategray |
| Primary foreground | #e9e6ealavender | #e9e6ealavender |
| Secondary | #565148darkolivegreen | #565148darkolivegreen |
| Secondary foreground | #eae9e6linen | #eae9e6linen |
| Muted | #eee9e2linen | #1d1811black |
| Muted foreground | #696359dimgray | #a6a096darkgray |
| Accent | #485651darkslategray | #485651darkslategray |
| Accent foreground | #e6eae9lavender | #e6eae9lavender |
| Destructive | #a51603darkred | #fe2c10orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e4dfe7gainsboro | #1d1820black |
| Input | #e4dfe7gainsboro | #1d1820black |
| Ring | #514956darkslategray | #514856darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.32:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 6.50:1 | AA |
| Muted text | 4.93:1 | AA |
| Accent | 6.34:1 | AA |
| Destructive | 7.75:1 | AAA |
| Text on background | 20.30:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 6.50:1 | AA |
| Muted text | 6.78:1 | AA |
| Accent | 6.34:1 | AA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Black Magic Owl in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.045 313.382);
--muted: oklch(0.937 0.011 79.912);
--muted-foreground: oklch(0.501 0.017 79.832);
--popover: oklch(0.98 0.01 312.919);
--popover-foreground: oklch(0.124 0.045 313.382);
--card: oklch(0.98 0.01 312.919);
--card-foreground: oklch(0.124 0.045 313.382);
--border: oklch(0.91 0.012 312.897);
--input: oklch(0.91 0.012 312.897);
--primary: oklch(0.415 0.026 312.564);
--primary-foreground: oklch(0.928 0.006 312.94);
--secondary: oklch(0.436 0.016 79.817);
--secondary-foreground: oklch(0.933 0.004 79.927);
--accent: oklch(0.44 0.02 170.219);
--accent-foreground: oklch(0.934 0.005 171.44);
--destructive: oklch(0.461 0.178 30.948);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.419 0.024 312.597);
--chart-1: oklch(0.415 0.026 312.564);
--chart-2: oklch(0.587 0.127 68.657);
--chart-3: oklch(0.549 0.114 161.452);
--chart-4: oklch(0.465 0.141 39.587);
--chart-5: oklch(0.599 0.273 321.509);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.017 314.705);
--foreground: oklch(0.991 0.002 312.972);
--muted: oklch(0.213 0.015 79.541);
--muted-foreground: oklch(0.708 0.015 79.881);
--popover: oklch(0.083 0.017 314.705);
--popover-foreground: oklch(0.991 0.002 312.972);
--card: oklch(0.083 0.017 314.705);
--card-foreground: oklch(0.991 0.002 312.972);
--border: oklch(0.219 0.017 312.467);
--input: oklch(0.219 0.017 312.467);
--primary: oklch(0.415 0.026 312.564);
--primary-foreground: oklch(0.928 0.006 312.94);
--secondary: oklch(0.436 0.016 79.817);
--secondary-foreground: oklch(0.933 0.004 79.927);
--accent: oklch(0.44 0.02 170.219);
--accent-foreground: oklch(0.934 0.005 171.44);
--destructive: oklch(0.64 0.243 30.864);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.415 0.026 312.564);
--chart-1: oklch(0.415 0.026 312.564);
--chart-2: oklch(0.436 0.016 79.817);
--chart-3: oklch(0.44 0.02 170.219);
--chart-4: oklch(0.465 0.017 79.814);
--chart-5: oklch(0.412 0.034 312.417);
}