Interest for shadcn/ui

Interest is a shadcn/ui theme built around a muted light yellow primary color (#e2e0d5) with neutral gray accents (#e3e2de). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light yellow primary (#e2e0d5) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#ffffffwhite
#040401black
Foreground
#100e04black
#ffffffwhite
Card
#ffffffwhite
#040401black
Card foreground
#100e04black
#ffffffwhite
Popover
#ffffffwhite
#040401black
Popover foreground
#100e04black
#ffffffwhite
Primary
#e2e0d5gainsboro
#e2e0d5gainsboro
Primary foreground
#4f4b36darkolivegreen
#4f4b36darkolivegreen
Secondary
#e3e2degainsboro
#343432darkslategray
Secondary foreground
#4c4b42darkslategray
#cdcdcblightgrey
Muted
#ebe8d5antiquewhite
#2a2614black
Muted foreground
#5b5a57dimgray
#a8a7a4darkgray
Accent
#e3e2degainsboro
#343432darkslategray
Accent foreground
#4c4b42darkslategray
#cdcdcblightgrey
Destructive
#86280esaddlebrown
#d43f16chocolate
Destructive foreground
#fad6ccbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e2e0d5gainsboro
#e2e0d5gainsboro

Contrast

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

Light mode
Text on background19.32:1AAA
Text on card19.32:1AAA
Primary button6.62:1AA
Secondary button6.76:1AA
Muted text5.60:1AA
Accent6.76:1AA
Destructive6.70:1AA
Dark mode
Text on background20.56:1AAA
Text on card20.56:1AAA
Primary button6.62:1AA
Secondary button7.85:1AAA
Muted text6.28:1AA
Accent7.85:1AAA
Destructive4.62:1AA

CSS variables

Paste this into your globals.css to use Interest in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.164 0.021 100.615);
  --muted: oklch(0.929 0.025 98.683);
  --muted-foreground: oklch(0.469 0.005 98.463);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.164 0.021 100.615);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.164 0.021 100.615);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.905 0.016 98.556);
  --primary-foreground: oklch(0.411 0.034 99.276);
  --secondary: oklch(0.912 0.005 98.394);
  --secondary-foreground: oklch(0.411 0.014 98.768);
  --accent: oklch(0.912 0.005 98.394);
  --accent-foreground: oklch(0.411 0.014 98.768);
  --destructive: oklch(0.419 0.133 35.427);
  --destructive-foreground: oklch(0.904 0.042 35.945);
  --ring: oklch(0.905 0.016 98.556);
  --chart-1: oklch(0.905 0.016 98.556);
  --chart-2: oklch(0.912 0.005 98.394);
  --chart-3: oklch(0.912 0.005 98.394);
  --chart-4: oklch(0.934 0.004 98.373);
  --chart-5: oklch(0.907 0.018 98.591);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.013 102.065);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.268 0.032 99.485);
  --muted-foreground: oklch(0.728 0.004 98.402);
  --popover: oklch(0.102 0.013 102.065);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.102 0.013 102.065);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.905 0.016 98.556);
  --primary-foreground: oklch(0.411 0.034 99.276);
  --secondary: oklch(0.324 0.003 98.45);
  --secondary-foreground: oklch(0.847 0.002 98.358);
  --accent: oklch(0.324 0.003 98.45);
  --accent-foreground: oklch(0.847 0.002 98.358);
  --destructive: oklch(0.583 0.192 35.051);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.905 0.016 98.556);
  --chart-1: oklch(0.905 0.016 98.556);
  --chart-2: oklch(0.324 0.003 98.45);
  --chart-3: oklch(0.324 0.003 98.45);
  --chart-4: oklch(0.354 0.003 98.453);
  --chart-5: oklch(0.907 0.018 98.591);
}