Arthur is a shadcn/ui theme built around a neutral gray primary color (#93969a) with neutral gray accents (#94939a). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the neutral gray primary (#93969a) on a neutral background (#030507).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #030507black |
| Foreground | #010204black | #f6f7f9whitesmoke |
| Card | #fbfcfewhite | #030507black |
| Card foreground | #010204black | #f6f7f9whitesmoke |
| Popover | #fbfcfewhite | #030507black |
| Popover foreground | #010204black | #f6f7f9whitesmoke |
| Primary | #93969alightslategray | #93969alightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #93999adarkgray | #93999adarkgray |
| Secondary foreground | #000000black | #000000black |
| Muted | #d5e2e2gainsboro | #1d2a2adarkslategray |
| Muted foreground | #5d6565dimgray | #9aa2a2darkgray |
| Accent | #94939alightslategray | #94939alightslategray |
| Accent foreground | #000000black | #000000black |
| Destructive | #bb3a07firebrick | #f14b09orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #93969alightslategray | #93969alightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 7.29:1 | AAA |
| Muted text | 4.48:1 | AA Large |
| Accent | 6.90:1 | AA |
| Destructive | 5.64:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 7.29:1 | AAA |
| Muted text | 5.68:1 | AA |
| Accent | 6.90:1 | AA |
| Destructive | 3.65:1 | AA Large |
Paste this into your globals.css to use Arthur in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 251.47);
--foreground: oklch(0.088 0.011 242.456);
--muted: oklch(0.902 0.014 199.396);
--muted-foreground: oklch(0.499 0.009 199.357);
--popover: oklch(0.992 0.002 251.47);
--popover-foreground: oklch(0.088 0.011 242.456);
--card: oklch(0.992 0.002 251.47);
--card-foreground: oklch(0.088 0.011 242.456);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.673 0.006 251.522);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.679 0.007 199.466);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.666 0.009 287.684);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.533 0.173 37.399);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.673 0.006 251.522);
--chart-1: oklch(0.673 0.006 251.522);
--chart-2: oklch(0.679 0.007 199.466);
--chart-3: oklch(0.666 0.009 287.684);
--chart-4: oklch(0.704 0.006 199.481);
--chart-5: oklch(0.671 0.012 251.591);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.113 0.008 246.18);
--foreground: oklch(0.976 0.003 251.475);
--muted: oklch(0.273 0.018 198.816);
--muted-foreground: oklch(0.705 0.009 199.441);
--popover: oklch(0.113 0.008 246.18);
--popover-foreground: oklch(0.976 0.003 251.475);
--card: oklch(0.113 0.008 246.18);
--card-foreground: oklch(0.976 0.003 251.475);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.673 0.006 251.522);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.679 0.007 199.466);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.666 0.009 287.684);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.643 0.212 36.974);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.673 0.006 251.522);
--chart-1: oklch(0.673 0.006 251.522);
--chart-2: oklch(0.679 0.007 199.466);
--chart-3: oklch(0.666 0.009 287.684);
--chart-4: oklch(0.704 0.006 199.481);
--chart-5: oklch(0.671 0.012 251.591);
}