Few for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.16:1AAA
Text on card20.08:1AAA
Primary button9.95:1AAA
Secondary button9.70:1AAA
Muted text5.13:1AA
Accent6.13:1AA
Destructive4.90:1AA
Dark mode
Text on background18.78:1AAA
Text on card18.75:1AAA
Primary button9.95:1AAA
Secondary button9.70:1AAA
Muted text7.35:1AAA
Accent6.13:1AA
Destructive3.89:1AA Large

CSS variables

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);
}