Silver for shadcn/ui

Silver is a shadcn/ui theme built around a vivid pink primary color (#a20234) with vivid teal accents (#02a26f). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid pink primary (#a20234) on a pink-tinted background (#0b0507).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0507black
Foreground
#100508black
#f9f5f7whitesmoke
Card
#fcfcfcsnow
#0e0609black
Card foreground
#0c0406black
#fbf8f9snow
Popover
#fcfcfcsnow
#0e0609black
Popover foreground
#0c0406black
#fbf8f9snow
Primary
#a20234firebrick
#a20234firebrick
Primary foreground
#ffd7e3mistyrose
#ffd7e3mistyrose
Secondary
#02a26fdarkcyan
#02a26fdarkcyan
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eef1f0whitesmoke
#0e1110black
Muted foreground
#4f5956darkslategray
#a6b0addarkgray
Accent
#02a26fdarkcyan
#02a26fdarkcyan
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#911d08darkred
#e32d0dorangered
Destructive foreground
#fcd6cfbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a20234firebrick
#a20234firebrick

Contrast

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

Light mode
Text on background20.05:1AAA
Text on card19.84:1AAA
Primary button6.22:1AA
Secondary button3.29:1AA Large
Muted text6.39:1AA
Accent3.29:1AA Large
Destructive6.59:1AA
Dark mode
Text on background18.74:1AAA
Text on card18.95:1AAA
Primary button6.22:1AA
Secondary button3.29:1AA Large
Muted text8.53:1AAA
Accent3.29:1AA Large
Destructive4.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.135 0.023 356.92);
  --muted: oklch(0.956 0.004 175.509);
  --muted-foreground: oklch(0.455 0.014 174.711);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.122 0.02 355.504);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.122 0.02 355.504);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.453 0.18 14.864);
  --primary-foreground: oklch(0.915 0.047 357.062);
  --secondary: oklch(0.628 0.137 162.19);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.628 0.137 162.19);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.428 0.154 32.068);
  --destructive-foreground: oklch(0.906 0.044 29.72);
  --ring: oklch(0.453 0.18 14.864);
  --chart-1: oklch(0.453 0.18 14.864);
  --chart-2: oklch(0.628 0.137 162.19);
  --chart-3: oklch(0.628 0.137 162.19);
  --chart-4: oklch(0.671 0.147 162.036);
  --chart-5: oklch(0.456 0.183 15.452);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.014 355.435);
  --foreground: oklch(0.974 0.005 355.761);
  --muted: oklch(0.173 0.005 174.698);
  --muted-foreground: oklch(0.748 0.012 175.133);
  --popover: oklch(0.138 0.017 356.629);
  --popover-foreground: oklch(0.983 0.003 355.712);
  --card: oklch(0.138 0.017 356.629);
  --card-foreground: oklch(0.983 0.003 355.712);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.453 0.18 14.864);
  --primary-foreground: oklch(0.915 0.047 357.062);
  --secondary: oklch(0.628 0.137 162.19);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.628 0.137 162.19);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.592 0.219 31.81);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.453 0.18 14.864);
  --chart-1: oklch(0.453 0.18 14.864);
  --chart-2: oklch(0.628 0.137 162.19);
  --chart-3: oklch(0.628 0.137 162.19);
  --chart-4: oklch(0.671 0.147 162.036);
  --chart-5: oklch(0.456 0.183 15.452);
}