Few is a shadcn/ui theme built around a vivid light yellow primary color (#fefbe6) with vivid light purple accents (#fbe6fe). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light yellow primary (#fefbe6) on a yellow-tinted background (#0b0a05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0a05black |
| Foreground | #080702black | #f9f9f5whitesmoke |
| Card | #fcfcfcsnow | #0e0d06black |
| Card foreground | #040401black | #fbfbf9snow |
| Popover | #fcfcfcsnow | #0e0d06black |
| Popover foreground | #040401black | #fbfbf9snow |
| Primary | #fefbe6oldlace | #fefbe6oldlace |
| Primary foreground | #4a4003darkolivegreen | #4a4003darkolivegreen |
| Secondary | #e6fefblightcyan | #e6fefblightcyan |
| Secondary foreground | #034a40darkslategray | #034a40darkslategray |
| Muted | #e2eeeclavender | #111d1bblack |
| Muted foreground | #526663dimgray | #99adabdarkgray |
| Accent | #fbe6felavenderblush | #fbe6felavenderblush |
| Accent foreground | #9606acdarkmagenta | #9606acdarkmagenta |
| Destructive | #e20b03red | #fc241dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fefbe6oldlace | #fefbe6oldlace |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 9.95:1 | AAA |
| Secondary button | 9.70:1 | AAA |
| Muted text | 5.13:1 | AA |
| Accent | 6.13:1 | AA |
| Destructive | 4.90:1 | AA |
| Text on background | 18.78:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 9.95:1 | AAA |
| Secondary button | 9.70:1 | AAA |
| Muted text | 7.35:1 | AAA |
| Accent | 6.13:1 | AA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Few in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.128 0.016 102.749);
--muted: oklch(0.939 0.012 187.424);
--muted-foreground: oklch(0.492 0.025 186.472);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.101 0.012 102.749);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.101 0.012 102.749);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.985 0.027 99.731);
--primary-foreground: oklch(0.371 0.075 99.55);
--secondary: oklch(0.979 0.025 187.112);
--secondary-foreground: oklch(0.367 0.065 180.375);
--accent: oklch(0.95 0.038 321.703);
--accent-foreground: oklch(0.49 0.23 321.043);
--destructive: oklch(0.576 0.233 29.42);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.985 0.027 99.731);
--chart-1: oklch(0.985 0.027 99.731);
--chart-2: oklch(0.979 0.025 187.112);
--chart-3: oklch(0.95 0.038 321.703);
--chart-4: oklch(0.992 0.01 187.497);
--chart-5: oklch(0.986 0.028 99.742);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.014 101.953);
--foreground: oklch(0.981 0.005 99.41);
--muted: oklch(0.218 0.017 185.736);
--muted-foreground: oklch(0.732 0.023 186.97);
--popover: oklch(0.159 0.016 101.077);
--popover-foreground: oklch(0.987 0.003 99.387);
--card: oklch(0.159 0.016 101.077);
--card-foreground: oklch(0.987 0.003 99.387);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.985 0.027 99.731);
--primary-foreground: oklch(0.371 0.075 99.55);
--secondary: oklch(0.979 0.025 187.112);
--secondary-foreground: oklch(0.367 0.065 180.375);
--accent: oklch(0.95 0.038 321.703);
--accent-foreground: oklch(0.49 0.23 321.043);
--destructive: oklch(0.633 0.244 28.871);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.985 0.027 99.731);
--chart-1: oklch(0.985 0.027 99.731);
--chart-2: oklch(0.979 0.025 187.112);
--chart-3: oklch(0.95 0.038 321.703);
--chart-4: oklch(0.992 0.01 187.497);
--chart-5: oklch(0.986 0.028 99.742);
}