Con for shadcn/ui

Con is a shadcn/ui theme built around a yellow primary color (#d3c6ab) with violet accents (#c6abd3). The light mode uses a neutral background (#fefdfb). Dark mode keeps the yellow primary (#d3c6ab) on a yellow-tinted background (#0b0904).

Color palette

TokenLightDark
Background
#fefdfbsnow
#0b0904black
Foreground
#040301black
#fbfaf9snow
Card
#fcfbf8snow
#0f0c06black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fcfbf8snow
#0f0c06black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#d3c6absilver
#d3c6absilver
Primary foreground
#322b1adarkslategray
#322b1adarkslategray
Secondary
#abd3c6lightsteelblue
#abd3c6lightsteelblue
Secondary foreground
#1a322bdarkslategray
#1a322bdarkslategray
Muted
#d0e2dcgainsboro
#1d2f29darkslategray
Muted foreground
#3a4b45darkslategray
#b4c5c0silver
Accent
#c6abd3thistle
#c6abd3thistle
Accent foreground
#2b1a32darkslategray
#2b1a32darkslategray
Destructive
#a33c05saddlebrown
#f85f0dorangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d3c6absilver
#d3c6absilver

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.26:1AAA
Primary button8.34:1AAA
Secondary button8.39:1AAA
Muted text6.84:1AA
Accent7.88:1AAA
Destructive6.52:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.21:1AAA
Primary button8.34:1AAA
Secondary button8.39:1AAA
Muted text7.82:1AAA
Accent7.88:1AAA
Destructive6.60:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 86.015);
  --foreground: oklch(0.098 0.011 91.414);
  --muted: oklch(0.897 0.02 174.944);
  --muted-foreground: oklch(0.396 0.024 173.74);
  --popover: oklch(0.988 0.004 86.024);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.004 86.024);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.831 0.039 86.092);
  --primary-foreground: oklch(0.291 0.029 85.76);
  --secondary: oklch(0.835 0.045 173.931);
  --secondary-foreground: oklch(0.295 0.033 171.694);
  --accent: oklch(0.779 0.063 315.089);
  --accent-foreground: oklch(0.252 0.049 314.549);
  --destructive: oklch(0.496 0.147 41.847);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.831 0.039 86.092);
  --chart-1: oklch(0.831 0.039 86.092);
  --chart-2: oklch(0.835 0.045 173.931);
  --chart-3: oklch(0.779 0.063 315.089);
  --chart-4: oklch(0.855 0.04 174.184);
  --chart-5: oklch(0.834 0.043 86.086);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.012 90.396);
  --foreground: oklch(0.986 0.002 86.015);
  --muted: oklch(0.288 0.025 172.692);
  --muted-foreground: oklch(0.81 0.02 174.867);
  --popover: oklch(0.155 0.014 87.954);
  --popover-foreground: oklch(0.993 0.001 86.011);
  --card: oklch(0.155 0.014 87.954);
  --card-foreground: oklch(0.993 0.001 86.011);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.831 0.039 86.092);
  --primary-foreground: oklch(0.291 0.029 85.76);
  --secondary: oklch(0.835 0.045 173.931);
  --secondary-foreground: oklch(0.295 0.033 171.694);
  --accent: oklch(0.779 0.063 315.089);
  --accent-foreground: oklch(0.252 0.049 314.549);
  --destructive: oklch(0.676 0.202 41.548);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.831 0.039 86.092);
  --chart-1: oklch(0.831 0.039 86.092);
  --chart-2: oklch(0.835 0.045 173.931);
  --chart-3: oklch(0.779 0.063 315.089);
  --chart-4: oklch(0.855 0.04 174.184);
  --chart-5: oklch(0.834 0.043 86.086);
}