Pinto for shadcn/ui

Pinto is a shadcn/ui theme built around a muted yellow primary color (#928c72) with muted purple accents (#8c7292). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the muted yellow primary (#928c72) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#040301black
Foreground
#120f03black
#fbfaf9snow
Card
#fdfdfcwhite
#040301black
Card foreground
#120f03black
#fbfaf9snow
Popover
#fdfdfcwhite
#040301black
Popover foreground
#120f03black
#fbfaf9snow
Primary
#928c72gray
#928c72gray
Primary foreground
#000000black
#000000black
Secondary
#72928clightslategray
#72928clightslategray
Secondary foreground
#000000black
#000000black
Muted
#edf2f1whitesmoke
#0d1211black
Muted foreground
#424343darkslategray
#bcbdbdsilver
Accent
#8c7292gray
#8c7292gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c14b0bchocolate
#f37430tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#928c72gray
#928c72gray

Contrast

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

Light mode
Text on background18.83:1AAA
Text on card18.83:1AAA
Primary button6.20:1AA
Secondary button6.22:1AA
Muted text8.78:1AAA
Accent4.26:1AA Large
Destructive4.92:1AA
Dark mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button6.20:1AA
Secondary button6.22:1AA
Muted text10.05:1AAA
Accent4.26:1AA Large
Destructive7.35:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 95.056);
  --foreground: oklch(0.167 0.027 97.982);
  --muted: oklch(0.957 0.005 183.041);
  --muted-foreground: oklch(0.381 0.002 183.053);
  --popover: oklch(0.994 0.002 95.056);
  --popover-foreground: oklch(0.167 0.027 97.982);
  --card: oklch(0.994 0.002 95.056);
  --card-foreground: oklch(0.167 0.027 97.982);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.638 0.038 95.612);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.634 0.038 181.46);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.588 0.057 319.465);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.564 0.165 42.236);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.638 0.038 95.612);
  --chart-1: oklch(0.638 0.038 95.612);
  --chart-2: oklch(0.634 0.038 181.46);
  --chart-3: oklch(0.588 0.057 319.465);
  --chart-4: oklch(0.658 0.035 181.641);
  --chart-5: oklch(0.645 0.046 95.688);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.011 98.79);
  --foreground: oklch(0.986 0.002 95.054);
  --muted: oklch(0.175 0.007 181.974);
  --muted-foreground: oklch(0.798 0.002 183.132);
  --popover: oklch(0.099 0.011 98.79);
  --popover-foreground: oklch(0.986 0.002 95.054);
  --card: oklch(0.099 0.011 98.79);
  --card-foreground: oklch(0.986 0.002 95.054);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.638 0.038 95.612);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.634 0.038 181.46);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.588 0.057 319.465);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.699 0.175 45.443);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.638 0.038 95.612);
  --chart-1: oklch(0.638 0.038 95.612);
  --chart-2: oklch(0.634 0.038 181.46);
  --chart-3: oklch(0.588 0.057 319.465);
  --chart-4: oklch(0.658 0.035 181.641);
  --chart-5: oklch(0.645 0.046 95.688);
}