Contributor for shadcn/ui

Contributor is a shadcn/ui theme built around an orange primary color (#daa252) with muted orange accents (#c3beb7). The light mode uses a neutral background (#fdfaf7). Dark mode keeps the orange primary (#daa252) on an orange-tinted background (#0c0804).

Color palette

TokenLightDark
Background
#fdfaf7snow
#0c0804black
Foreground
#040301black
#f9f8f5whitesmoke
Card
#fcf8f2floralwhite
#100b05black
Card foreground
#000000black
#fbfaf8snow
Popover
#fcf8f2floralwhite
#100b05black
Popover foreground
#000000black
#fbfaf8snow
Primary
#daa252sandybrown
#daa252sandybrown
Primary foreground
#000000black
#000000black
Secondary
#cecccalightgrey
#3c352adarkslategray
Secondary foreground
#353331darkslategray
#d5cec3lightgrey
Muted
#f2eee9linen
#16130dblack
Muted foreground
#494641darkslategray
#bebbb6silver
Accent
#c3beb7silver
#5c4d38darkolivegreen
Accent foreground
#272420black
#eae4dcgainsboro
Destructive
#75320bsaddlebrown
#ee8244coral
Destructive foreground
#f8d0b9peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#daa252sandybrown
#daa252sandybrown

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button9.26:1AAA
Secondary button7.87:1AAA
Muted text8.11:1AAA
Accent8.33:1AAA
Destructive6.66:1AA
Dark mode
Text on background18.77:1AAA
Text on card18.78:1AAA
Primary button9.26:1AAA
Secondary button7.78:1AAA
Muted text9.69:1AAA
Accent6.47:1AA
Destructive7.92:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 76.625);
  --foreground: oklch(0.097 0.013 85.039);
  --muted: oklch(0.95 0.008 76.613);
  --muted-foreground: oklch(0.394 0.009 76.527);
  --popover: oklch(0.981 0.009 76.61);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.009 76.61);
  --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.75 0.117 73.495);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.847 0.004 76.632);
  --secondary-foreground: oklch(0.323 0.005 76.579);
  --accent: oklch(0.803 0.011 76.584);
  --accent-foreground: oklch(0.263 0.008 76.48);
  --destructive: oklch(0.402 0.106 45.616);
  --destructive-foreground: oklch(0.887 0.055 51.787);
  --ring: oklch(0.75 0.117 73.495);
  --chart-1: oklch(0.75 0.117 73.495);
  --chart-2: oklch(0.847 0.004 76.632);
  --chart-3: oklch(0.803 0.011 76.584);
  --chart-4: oklch(0.87 0.003 76.635);
  --chart-5: oklch(0.754 0.122 73.205);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.015 82.879);
  --foreground: oklch(0.979 0.004 76.634);
  --muted: oklch(0.188 0.012 76.162);
  --muted-foreground: oklch(0.793 0.008 76.606);
  --popover: oklch(0.153 0.017 79.577);
  --popover-foreground: oklch(0.986 0.003 76.64);
  --card: oklch(0.153 0.017 79.577);
  --card-foreground: oklch(0.986 0.003 76.64);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.75 0.117 73.495);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.332 0.021 76.155);
  --secondary-foreground: oklch(0.853 0.017 76.549);
  --accent: oklch(0.429 0.038 75.784);
  --accent-foreground: oklch(0.921 0.012 76.587);
  --destructive: oklch(0.716 0.152 48.547);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.75 0.117 73.495);
  --chart-1: oklch(0.75 0.117 73.495);
  --chart-2: oklch(0.332 0.021 76.155);
  --chart-3: oklch(0.429 0.038 75.784);
  --chart-4: oklch(0.363 0.024 76.134);
  --chart-5: oklch(0.754 0.122 73.205);
}