First is a shadcn/ui theme built around a neutral gray primary color (#9c9b9d) with neutral gray accents (#9d9b9c). The light mode uses a neutral background (#fcf8fc). Dark mode keeps the neutral gray primary (#9c9b9d) on a neutral background (#040104).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fcsnow | #040104black |
| Foreground | #080109black | #fbf8fcghostwhite |
| Card | #fcf8fcsnow | #040104black |
| Card foreground | #080109black | #fbf8fcghostwhite |
| Popover | #fcf8fcsnow | #040104black |
| Popover foreground | #080109black | #fbf8fcghostwhite |
| Primary | #9c9b9ddarkgray | #9c9b9ddarkgray |
| Primary foreground | #030303black | #030303black |
| Secondary | #9b9b9ddarkgray | #9b9b9ddarkgray |
| Secondary foreground | #030303black | #030303black |
| Muted | #d8d5dcgainsboro | #26232adarkslategray |
| Muted foreground | #47424cdarkslategray | #b7b3bdsilver |
| Accent | #9d9b9cdarkgray | #9d9b9cdarkgray |
| Accent foreground | #030303black | #030303black |
| Destructive | #cf2802firebrick | #f72f02orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9c9b9ddarkgray | #9c9b9ddarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 6.74:1 | AA |
| Accent | 7.42:1 | AAA |
| Destructive | 5.31:1 | AA |
| Text on background | 19.68:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 7.53:1 | AAA |
| Accent | 7.42:1 | AAA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use First in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.006 324.165);
--foreground: oklch(0.105 0.033 326.303);
--muted: oklch(0.878 0.01 306.284);
--muted-foreground: oklch(0.389 0.018 305.849);
--popover: oklch(0.983 0.006 324.165);
--popover-foreground: oklch(0.105 0.033 326.303);
--card: oklch(0.983 0.006 324.165);
--card-foreground: oklch(0.105 0.033 326.303);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.69 0.004 324.16);
--primary-foreground: oklch(0.092 0 324.16);
--secondary: oklch(0.689 0.003 306.372);
--secondary-foreground: oklch(0.092 0 306.448);
--accent: oklch(0.69 0.003 342.717);
--accent-foreground: oklch(0.092 0 342.618);
--destructive: oklch(0.553 0.206 32.472);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.69 0.004 324.16);
--chart-1: oklch(0.69 0.004 324.16);
--chart-2: oklch(0.689 0.003 306.372);
--chart-3: oklch(0.69 0.003 342.717);
--chart-4: oklch(0.714 0.003 306.379);
--chart-5: oklch(0.687 0.014 324.251);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.015 325.373);
--foreground: oklch(0.983 0.006 324.164);
--muted: oklch(0.262 0.013 305.774);
--muted-foreground: oklch(0.772 0.015 306.182);
--popover: oklch(0.087 0.015 325.373);
--popover-foreground: oklch(0.983 0.006 324.164);
--card: oklch(0.087 0.015 325.373);
--card-foreground: oklch(0.983 0.006 324.164);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.69 0.004 324.16);
--primary-foreground: oklch(0.092 0 324.16);
--secondary: oklch(0.689 0.003 306.372);
--secondary-foreground: oklch(0.092 0 306.448);
--accent: oklch(0.69 0.003 342.717);
--accent-foreground: oklch(0.092 0 342.618);
--destructive: oklch(0.631 0.236 32.242);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.69 0.004 324.16);
--chart-1: oklch(0.69 0.004 324.16);
--chart-2: oklch(0.689 0.003 306.372);
--chart-3: oklch(0.69 0.003 342.717);
--chart-4: oklch(0.714 0.003 306.379);
--chart-5: oklch(0.687 0.014 324.251);
}