Dame for shadcn/ui

Dame is a shadcn/ui theme built around a violet primary color (#a73bce) with teal accents (#3bcea7). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#a73bce) on a neutral background (#060308).

Color palette

TokenLightDark
Background
#fdfbfewhite
#060308black
Foreground
#000000black
#fbf8fcghostwhite
Card
#fbf7fdghostwhite
#09040bblack
Card foreground
#000000black
#fdfcfdwhite
Popover
#fdfbfewhite
#060308black
Popover foreground
#000000black
#fbf8fcghostwhite
Primary
#a73bcedarkorchid
#a73bcedarkorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cea73bgoldenrod
#cea73bgoldenrod
Secondary foreground
#31270cblack
#31270cblack
Muted
#f1efe9linen
#16140eblack
Muted foreground
#656053dimgray
#aca79adarkgray
Accent
#3bcea7lightseagreen
#3bcea7lightseagreen
Accent foreground
#0c3127darkslategray
#0c3127darkslategray
Destructive
#a52612firebrick
#eb5d47tomato
Destructive foreground
#fdefedseashell
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a73bcedarkorchid
#a73bcedarkorchid

Contrast

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

Light mode
Text on background20.40:1AAA
Text on card19.81:1AAA
Primary button5.04:1AA
Secondary button6.45:1AA
Muted text5.44:1AA
Accent7.12:1AAA
Destructive6.48:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.83:1AAA
Primary button5.04:1AA
Secondary button6.45:1AA
Muted text7.69:1AAA
Accent7.12:1AAA
Destructive6.18:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.005 317.178);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.952 0.008 90.181);
  --muted-foreground: oklch(0.49 0.022 90.383);
  --popover: oklch(0.99 0.005 317.178);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.009 317.167);
  --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.569 0.224 315.382);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.744 0.13 88.337);
  --secondary-foreground: oklch(0.278 0.044 89.243);
  --accent: oklch(0.765 0.135 170.77);
  --accent-foreground: oklch(0.284 0.045 172.14);
  --destructive: oklch(0.475 0.166 31.637);
  --destructive-foreground: oklch(0.962 0.016 28.021);
  --ring: oklch(0.569 0.224 315.382);
  --chart-1: oklch(0.569 0.224 315.382);
  --chart-2: oklch(0.744 0.13 88.337);
  --chart-3: oklch(0.765 0.135 170.77);
  --chart-4: oklch(0.76 0.125 88.919);
  --chart-5: oklch(0.571 0.232 315.21);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.02 318.818);
  --foreground: oklch(0.983 0.005 317.177);
  --muted: oklch(0.19 0.011 90.422);
  --muted-foreground: oklch(0.73 0.02 90.304);
  --popover: oklch(0.107 0.02 318.818);
  --popover-foreground: oklch(0.983 0.005 317.177);
  --card: oklch(0.122 0.023 318.663);
  --card-foreground: oklch(0.991 0.003 317.183);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.569 0.224 315.382);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.744 0.13 88.337);
  --secondary-foreground: oklch(0.278 0.044 89.243);
  --accent: oklch(0.765 0.135 170.77);
  --accent-foreground: oklch(0.284 0.045 172.14);
  --destructive: oklch(0.658 0.18 31.119);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.569 0.224 315.382);
  --chart-1: oklch(0.569 0.224 315.382);
  --chart-2: oklch(0.744 0.13 88.337);
  --chart-3: oklch(0.765 0.135 170.77);
  --chart-4: oklch(0.76 0.125 88.919);
  --chart-5: oklch(0.571 0.232 315.21);
}