Pupil is a shadcn/ui theme built around a muted light yellow primary color (#d9d7ce) with muted light green accents (#d6d9ce). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light yellow primary (#d9d7ce) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030302black |
| Foreground | #000000black | #fcfbf8snow |
| Card | #fcfcfcsnow | #070603black |
| Card foreground | #000000black | #fdfdfbsnow |
| Popover | #fcfcfcsnow | #070603black |
| Popover foreground | #000000black | #fdfdfbsnow |
| Primary | #d9d7celightgrey | #d9d7celightgrey |
| Primary foreground | #423f33darkslategray | #423f33darkslategray |
| Secondary | #d9d1celightgrey | #d9d1celightgrey |
| Secondary foreground | #423733darkslategray | #423733darkslategray |
| Muted | #eee2ddantiquewhite | #221611black |
| Muted foreground | #755f57dimgray | #a8928arosybrown |
| Accent | #d6d9celightgrey | #d6d9celightgrey |
| Accent foreground | #3e4233darkslategray | #3e4233darkslategray |
| Destructive | #6b1201maroon | #fe512ftomato |
| Destructive foreground | #ffaf9flightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d9d7celightgrey | #d9d7celightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 4.68:1 | AA |
| Accent | 7.23:1 | AAA |
| Destructive | 6.95:1 | AA |
| Text on background | 19.92:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 7.66:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 7.23:1 | AAA |
| Destructive | 6.44:1 | AA |
Paste this into your globals.css to use Pupil in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.921 0.015 42.99);
--muted-foreground: oklch(0.506 0.032 42.692);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.878 0.012 94.012);
--primary-foreground: oklch(0.367 0.02 94.353);
--secondary: oklch(0.867 0.01 43.027);
--secondary-foreground: oklch(0.348 0.017 42.763);
--accent: oklch(0.881 0.016 119.609);
--accent-foreground: oklch(0.371 0.026 120.515);
--destructive: oklch(0.343 0.125 33.36);
--destructive-foreground: oklch(0.825 0.097 31.73);
--ring: oklch(0.878 0.012 94.012);
--chart-1: oklch(0.878 0.012 94.012);
--chart-2: oklch(0.867 0.01 43.027);
--chart-3: oklch(0.881 0.016 119.609);
--chart-4: oklch(0.891 0.008 43.047);
--chart-5: oklch(0.88 0.015 94.043);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.008 96.926);
--foreground: oklch(0.988 0.004 93.911);
--muted: oklch(0.214 0.022 42.504);
--muted-foreground: oklch(0.678 0.029 42.801);
--popover: oklch(0.123 0.01 96.926);
--popover-foreground: oklch(0.994 0.002 93.888);
--card: oklch(0.123 0.01 96.926);
--card-foreground: oklch(0.994 0.002 93.888);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.878 0.012 94.012);
--primary-foreground: oklch(0.367 0.02 94.353);
--secondary: oklch(0.867 0.01 43.027);
--secondary-foreground: oklch(0.348 0.017 42.763);
--accent: oklch(0.881 0.016 119.609);
--accent-foreground: oklch(0.371 0.026 120.515);
--destructive: oklch(0.672 0.214 33.164);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.878 0.012 94.012);
--chart-1: oklch(0.878 0.012 94.012);
--chart-2: oklch(0.867 0.01 43.027);
--chart-3: oklch(0.881 0.016 119.609);
--chart-4: oklch(0.891 0.008 43.047);
--chart-5: oklch(0.88 0.015 94.043);
}