Income for shadcn/ui

Income is a shadcn/ui theme built around a yellow primary color (#a69526) with blue accents (#2637a6). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the yellow primary (#a69526) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fdfcf7snow
#040301black
Foreground
#0c0b03black
#fdfdfcwhite
Card
#fdfcf7snow
#040301black
Card foreground
#0c0b03black
#fdfdfcwhite
Popover
#fdfcf7snow
#040301black
Popover foreground
#0c0b03black
#fdfdfcwhite
Primary
#a69526darkgoldenrod
#a69526darkgoldenrod
Primary foreground
#000000black
#000000black
Secondary
#2637a6darkslateblue
#2637a6darkslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dcdde5gainsboro
#1a1b23black
Muted foreground
#3d3e42darkslategray
#bdbdc2silver
Accent
#2637a6darkslateblue
#2637a6darkslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#5d0b09maroon
#e91f1ccrimson
Destructive foreground
#f6a4a2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a69526darkgoldenrod
#a69526darkgoldenrod

Contrast

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

Light mode
Text on background19.17:1AAA
Text on card19.17:1AAA
Primary button6.96:1AA
Secondary button9.64:1AAA
Muted text7.89:1AAA
Accent9.64:1AAA
Destructive7.10:1AAA
Dark mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button6.96:1AA
Secondary button9.64:1AAA
Muted text9.14:1AAA
Accent9.64:1AAA
Destructive4.50:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.006 99.435);
  --foreground: oklch(0.147 0.019 102.46);
  --muted: oklch(0.899 0.011 279.157);
  --muted-foreground: oklch(0.364 0.008 279.02);
  --popover: oklch(0.99 0.006 99.435);
  --popover-foreground: oklch(0.147 0.019 102.46);
  --card: oklch(0.99 0.006 99.435);
  --card-foreground: oklch(0.147 0.019 102.46);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.666 0.126 100.079);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.403 0.178 269.379);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.403 0.178 269.379);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.309 0.114 27.821);
  --destructive-foreground: oklch(0.798 0.098 20.546);
  --ring: oklch(0.666 0.126 100.079);
  --chart-1: oklch(0.666 0.126 100.079);
  --chart-2: oklch(0.403 0.178 269.379);
  --chart-3: oklch(0.403 0.178 269.379);
  --chart-4: oklch(0.423 0.189 269.274);
  --chart-5: oklch(0.674 0.13 99.951);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.01 102.275);
  --foreground: oklch(0.994 0.002 99.364);
  --muted: oklch(0.225 0.016 278.205);
  --muted-foreground: oklch(0.8 0.006 279.223);
  --popover: oklch(0.1 0.01 102.275);
  --popover-foreground: oklch(0.994 0.002 99.364);
  --card: oklch(0.1 0.01 102.275);
  --card-foreground: oklch(0.994 0.002 99.364);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.666 0.126 100.079);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.403 0.178 269.379);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.403 0.178 269.379);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.596 0.23 28.472);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.666 0.126 100.079);
  --chart-1: oklch(0.666 0.126 100.079);
  --chart-2: oklch(0.403 0.178 269.379);
  --chart-3: oklch(0.403 0.178 269.379);
  --chart-4: oklch(0.423 0.189 269.274);
  --chart-5: oklch(0.674 0.13 99.951);
}