Silver for shadcn/ui

Silver is a shadcn/ui theme built around a vivid light red primary color (#fbafa7) with vivid light cyan accents (#a7f3fb). The light mode uses a neutral background (#fdf7f6). Dark mode keeps the vivid light red primary (#fbafa7) on a red-tinted background (#0b0504).

Color palette

TokenLightDark
Background
#fdf7f6snow
#0b0504black
Foreground
#090202black
#fbf9f9snow
Card
#fdf7f6snow
#0b0504black
Card foreground
#090202black
#fbf9f9snow
Popover
#fdf7f6snow
#0b0504black
Popover foreground
#090202black
#fbf9f9snow
Primary
#fbafa7lightpink
#fbafa7lightpink
Primary foreground
#6c0f04maroon
#6c0f04maroon
Secondary
#a7f3fbpaleturquoise
#a7f3fbpaleturquoise
Secondary foreground
#00090ablack
#00090ablack
Muted
#dfebeclavender
#131f20black
Muted foreground
#465153darkslategray
#acb7b9darkgray
Accent
#a7f3fbpaleturquoise
#a7f3fbpaleturquoise
Accent foreground
#00090ablack
#00090ablack
Destructive
#702c0asaddlebrown
#eb6d2dchocolate
Destructive foreground
#f8cbb4peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fbafa7lightpink
#fbafa7lightpink

Contrast

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

Light mode
Text on background19.43:1AAA
Text on card19.43:1AAA
Primary button6.92:1AA
Secondary button16.14:1AAA
Muted text6.72:1AA
Accent16.14:1AAA
Destructive6.89:1AA
Dark mode
Text on background19.31:1AAA
Text on card19.31:1AAA
Primary button6.92:1AA
Secondary button16.14:1AAA
Muted text8.22:1AAA
Accent16.14:1AAA
Destructive6.75:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.007 25.046);
  --foreground: oklch(0.105 0.019 31.847);
  --muted: oklch(0.931 0.013 204.885);
  --muted-foreground: oklch(0.427 0.014 204.777);
  --popover: oklch(0.981 0.007 25.046);
  --popover-foreground: oklch(0.105 0.019 31.847);
  --card: oklch(0.981 0.007 25.046);
  --card-foreground: oklch(0.105 0.019 31.847);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.825 0.091 26.255);
  --primary-foreground: oklch(0.343 0.127 30.825);
  --secondary: oklch(0.917 0.075 204.702);
  --secondary-foreground: oklch(0.127 0.02 201.158);
  --accent: oklch(0.917 0.075 204.702);
  --accent-foreground: oklch(0.127 0.02 201.158);
  --destructive: oklch(0.386 0.105 43.033);
  --destructive-foreground: oklch(0.875 0.06 48.016);
  --ring: oklch(0.825 0.091 26.255);
  --chart-1: oklch(0.825 0.091 26.255);
  --chart-2: oklch(0.917 0.075 204.702);
  --chart-3: oklch(0.917 0.075 204.702);
  --chart-4: oklch(0.93 0.064 204.685);
  --chart-5: oklch(0.824 0.094 26.311);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.015 29.13);
  --foreground: oklch(0.984 0.002 25.004);
  --muted: oklch(0.228 0.018 204.691);
  --muted-foreground: oklch(0.772 0.012 204.874);
  --popover: oklch(0.124 0.015 29.13);
  --popover-foreground: oklch(0.984 0.002 25.004);
  --card: oklch(0.124 0.015 29.13);
  --card-foreground: oklch(0.984 0.002 25.004);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.825 0.091 26.255);
  --primary-foreground: oklch(0.343 0.127 30.825);
  --secondary: oklch(0.917 0.075 204.702);
  --secondary-foreground: oklch(0.127 0.02 201.158);
  --accent: oklch(0.917 0.075 204.702);
  --accent-foreground: oklch(0.127 0.02 201.158);
  --destructive: oklch(0.677 0.174 43.981);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.825 0.091 26.255);
  --chart-1: oklch(0.825 0.091 26.255);
  --chart-2: oklch(0.917 0.075 204.702);
  --chart-3: oklch(0.917 0.075 204.702);
  --chart-4: oklch(0.93 0.064 204.685);
  --chart-5: oklch(0.824 0.094 26.311);
}