Exemplary for shadcn/ui

Exemplary is a shadcn/ui theme built around a vivid light purple primary color (#f49aef) with muted light purple accents (#dbc7da). The light mode uses a neutral background (#fcf7fc). Dark mode keeps the vivid light purple primary (#f49aef) on a purple-tinted background (#0a050a).

Color palette

TokenLightDark
Background
#fcf7fcsnow
#0a050ablack
Foreground
#080208black
#f9f5f9whitesmoke
Card
#fcf7fcsnow
#0a050ablack
Card foreground
#080208black
#f9f5f9whitesmoke
Popover
#fcf7fcsnow
#0a050ablack
Popover foreground
#080208black
#f9f5f9whitesmoke
Primary
#f49aefviolet
#f49aefviolet
Primary foreground
#53094findigo
#53094findigo
Secondary
#eee8edlavender
#212121black
Secondary foreground
#5e455ddimgray
#bababasilver
Muted
#f2eef2whitesmoke
#110d0dblack
Muted foreground
#503f4fdarkslategray
#c0afafsilver
Accent
#dbc7dathistle
#3d3333darkslategray
Accent foreground
#442c43darkslategray
#d5cdcdlightgrey
Destructive
#d52a0bfirebrick
#f34020orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f49aefviolet
#f49aefviolet

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button7.04:1AAA
Secondary button6.97:1AA
Muted text8.41:1AAA
Accent7.83:1AAA
Destructive5.04:1AA
Dark mode
Text on background18.70:1AAA
Text on card18.70:1AAA
Primary button7.04:1AAA
Secondary button8.28:1AAA
Muted text9.17:1AAA
Accent7.80:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.008 327.113);
  --foreground: oklch(0.108 0.026 328.507);
  --muted: oklch(0.952 0.007 327.107);
  --muted-foreground: oklch(0.391 0.035 327.834);
  --popover: oklch(0.983 0.008 327.113);
  --popover-foreground: oklch(0.108 0.026 328.507);
  --card: oklch(0.983 0.008 327.113);
  --card-foreground: oklch(0.108 0.026 328.507);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.805 0.151 328.632);
  --primary-foreground: oklch(0.313 0.131 330.512);
  --secondary: oklch(0.936 0.01 327.138);
  --secondary-foreground: oklch(0.427 0.049 328.044);
  --accent: oklch(0.852 0.033 327.386);
  --accent-foreground: oklch(0.332 0.05 328.336);
  --destructive: oklch(0.565 0.209 31.791);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.805 0.151 328.632);
  --chart-1: oklch(0.805 0.151 328.632);
  --chart-2: oklch(0.936 0.01 327.138);
  --chart-3: oklch(0.852 0.033 327.386);
  --chart-4: oklch(0.96 0.006 327.099);
  --chart-5: oklch(0.804 0.157 328.685);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.015 327.824);
  --foreground: oklch(0.975 0.007 327.1);
  --muted: oklch(0.165 0.007 17.919);
  --muted-foreground: oklch(0.769 0.02 17.59);
  --popover: oklch(0.128 0.015 327.824);
  --popover-foreground: oklch(0.975 0.007 327.1);
  --card: oklch(0.128 0.015 327.824);
  --card-foreground: oklch(0.975 0.007 327.1);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.805 0.151 328.632);
  --primary-foreground: oklch(0.313 0.131 330.512);
  --secondary: oklch(0.248 0 173.29);
  --secondary-foreground: oklch(0.789 0 171.254);
  --accent: oklch(0.332 0.015 17.907);
  --accent-foreground: oklch(0.855 0.009 17.336);
  --destructive: oklch(0.637 0.22 32.272);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.805 0.151 328.632);
  --chart-1: oklch(0.805 0.151 328.632);
  --chart-2: oklch(0.248 0 173.29);
  --chart-3: oklch(0.332 0.015 17.907);
  --chart-4: oklch(0.28 0 180);
  --chart-5: oklch(0.804 0.157 328.685);
}