Dame for shadcn/ui

Dame is a shadcn/ui theme built around a vivid deep blue primary color (#031a2a) with vivid deep orange accents (#2a1403). The light mode uses a neutral background (#f6fafd). Dark mode keeps the vivid deep blue primary (#031a2a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f6fafdghostwhite
#000000black
Foreground
#03080cblack
#fcfdfdwhite
Card
#f6fafdghostwhite
#000000black
Card foreground
#03080cblack
#fcfdfdwhite
Popover
#f6fafdghostwhite
#000000black
Popover foreground
#03080cblack
#fcfdfdwhite
Primary
#031a2ablack
#031a2ablack
Primary foreground
#6dbbf3lightskyblue
#6dbbf3lightskyblue
Secondary
#2a1403black
#2a1403black
Secondary foreground
#f3a56dsandybrown
#f3a56dsandybrown
Muted
#e7d9d0gainsboro
#2f2218black
Muted foreground
#534b46darkslategray
#b9b1acdarkgray
Accent
#2a1403black
#2a1403black
Accent foreground
#f3a56dsandybrown
#f3a56dsandybrown
Destructive
#6b0c05maroon
#f42010red
Destructive foreground
#fbada7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#031a2ablack
#031a2ablack

Contrast

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

Light mode
Text on background19.24:1AAA
Text on card19.24:1AAA
Primary button8.46:1AAA
Secondary button8.67:1AAA
Muted text6.19:1AA
Accent8.67:1AAA
Destructive6.92:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button8.46:1AAA
Secondary button8.67:1AAA
Muted text7.30:1AAA
Accent8.67:1AAA
Destructive4.16:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.006 238.448);
  --foreground: oklch(0.131 0.014 231.945);
  --muted: oklch(0.895 0.02 58.048);
  --muted-foreground: oklch(0.42 0.014 57.889);
  --popover: oklch(0.984 0.006 238.448);
  --popover-foreground: oklch(0.131 0.014 231.945);
  --card: oklch(0.984 0.006 238.448);
  --card-foreground: oklch(0.131 0.014 231.945);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.21 0.044 242.353);
  --primary-foreground: oklch(0.764 0.112 241.366);
  --secondary: oklch(0.219 0.047 55.318);
  --secondary-foreground: oklch(0.786 0.118 55.623);
  --accent: oklch(0.219 0.047 55.318);
  --accent-foreground: oklch(0.786 0.118 55.623);
  --destructive: oklch(0.339 0.129 29.886);
  --destructive-foreground: oklch(0.821 0.093 23.815);
  --ring: oklch(0.21 0.044 242.353);
  --chart-1: oklch(0.21 0.044 242.353);
  --chart-2: oklch(0.219 0.047 55.318);
  --chart-3: oklch(0.219 0.047 55.318);
  --chart-4: oklch(0.258 0.058 53.024);
  --chart-5: oklch(0.21 0.045 242.382);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 238.376);
  --muted: oklch(0.264 0.027 56.756);
  --muted-foreground: oklch(0.767 0.012 58.14);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 238.376);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 238.376);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.21 0.044 242.353);
  --primary-foreground: oklch(0.764 0.112 241.366);
  --secondary: oklch(0.219 0.047 55.318);
  --secondary-foreground: oklch(0.786 0.118 55.623);
  --accent: oklch(0.219 0.047 55.318);
  --accent-foreground: oklch(0.786 0.118 55.623);
  --destructive: oklch(0.616 0.24 29.75);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.21 0.044 242.353);
  --chart-1: oklch(0.21 0.044 242.353);
  --chart-2: oklch(0.219 0.047 55.318);
  --chart-3: oklch(0.219 0.047 55.318);
  --chart-4: oklch(0.258 0.058 53.024);
  --chart-5: oklch(0.21 0.045 242.382);
}