Exemplary for shadcn/ui

Exemplary is a shadcn/ui theme built around a near-black primary color (#0a0805) with muted light orange accents (#e0d9d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#0a0805) on an orange-tinted background (#0d0a07).

Color palette

TokenLightDark
Background
#ffffffwhite
#0d0a07black
Foreground
#120a03black
#faf7f5whitesmoke
Card
#ffffffwhite
#0d0a07black
Card foreground
#120a03black
#faf7f5whitesmoke
Popover
#ffffffwhite
#0d0a07black
Popover foreground
#120a03black
#faf7f5whitesmoke
Primary
#0a0805black
#0a0805black
Primary foreground
#bca285rosybrown
#bca285rosybrown
Secondary
#edebe8linen
#282420black
Secondary foreground
#5b5248darkolivegreen
#c4bdb5silver
Muted
#ede3d9antiquewhite
#261c12black
Muted foreground
#544d45darkolivegreen
#bab3abdarkgray
Accent
#e0d9d1gainsboro
#42382fdarkslategray
Accent foreground
#4d4033darkslategray
#d9d1c9lightgrey
Destructive
#cf5717chocolate
#ea7d43coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0a0805black
#0a0805black

Contrast

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

Light mode
Text on background19.61:1AAA
Text on card19.61:1AAA
Primary button8.24:1AAA
Secondary button6.41:1AA
Muted text6.58:1AA
Accent7.16:1AAA
Destructive4.18:1AA Large
Dark mode
Text on background18.47:1AAA
Text on card18.47:1AAA
Primary button8.24:1AAA
Secondary button8.30:1AAA
Muted text8.01:1AAA
Accent7.54:1AAA
Destructive7.53:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.154 0.024 75.005);
  --muted: oklch(0.922 0.018 69.45);
  --muted-foreground: oklch(0.424 0.016 69.233);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.154 0.024 75.005);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.154 0.024 75.005);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.135 0.008 73.694);
  --primary-foreground: oklch(0.727 0.05 68.782);
  --secondary: oklch(0.94 0.004 69.606);
  --secondary-foreground: oklch(0.444 0.02 69.131);
  --accent: oklch(0.889 0.013 69.498);
  --accent-foreground: oklch(0.381 0.027 68.73);
  --destructive: oklch(0.603 0.167 43.634);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.135 0.008 73.694);
  --chart-1: oklch(0.135 0.008 73.694);
  --chart-2: oklch(0.94 0.004 69.606);
  --chart-3: oklch(0.889 0.013 69.498);
  --chart-4: oklch(0.963 0.003 69.623);
  --chart-5: oklch(0.135 0.008 74.111);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.009 71.398);
  --foreground: oklch(0.978 0.004 69.609);
  --muted: oklch(0.237 0.025 68.039);
  --muted-foreground: oklch(0.77 0.014 69.466);
  --popover: oklch(0.149 0.009 71.398);
  --popover-foreground: oklch(0.978 0.004 69.609);
  --card: oklch(0.149 0.009 71.398);
  --card-foreground: oklch(0.978 0.004 69.609);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.135 0.008 73.694);
  --primary-foreground: oklch(0.727 0.05 68.782);
  --secondary: oklch(0.262 0.009 69.264);
  --secondary-foreground: oklch(0.802 0.013 69.484);
  --accent: oklch(0.349 0.021 68.922);
  --accent-foreground: oklch(0.866 0.014 69.489);
  --destructive: oklch(0.703 0.152 46.97);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.135 0.008 73.694);
  --chart-1: oklch(0.135 0.008 73.694);
  --chart-2: oklch(0.262 0.009 69.264);
  --chart-3: oklch(0.349 0.021 68.922);
  --chart-4: oklch(0.294 0.011 69.241);
  --chart-5: oklch(0.135 0.008 74.111);
}