Metallic for shadcn/ui

Metallic is a shadcn/ui theme built around a vivid light red primary color (#f8b9c4) with muted light red accents (#e3ddde). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the vivid light red primary (#f8b9c4) on a red-tinted background (#0e0607).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#0e0607black
Foreground
#040101black
#f9f6f7whitesmoke
Card
#fdfcfcsnow
#0e0607black
Card foreground
#040101black
#f9f6f7whitesmoke
Popover
#fdfcfcsnow
#0e0607black
Popover foreground
#040101black
#f9f6f7whitesmoke
Primary
#f8b9c4lightpink
#f8b9c4lightpink
Primary foreground
#750b1cmaroon
#750b1cmaroon
Secondary
#e3dddegainsboro
#231a1cblack
Secondary foreground
#4f4043darkslategray
#c2aeb1silver
Muted
#efdcdfmistyrose
#231013black
Muted foreground
#454545darkslategray
#bababasilver
Accent
#e3dddegainsboro
#231a1cblack
Accent foreground
#4f4043darkslategray
#c2aeb1silver
Destructive
#bf3c08firebrick
#e6480aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8b9c4lightpink
#f8b9c4lightpink

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button6.99:1AA
Secondary button7.32:1AAA
Muted text7.28:1AAA
Accent7.32:1AAA
Destructive5.44:1AA
Dark mode
Text on background18.64:1AAA
Text on card18.64:1AAA
Primary button6.99:1AA
Secondary button8.06:1AAA
Muted text9.37:1AAA
Accent8.06:1AAA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 5.5);
  --foreground: oklch(0.081 0.018 6.239);
  --muted: oklch(0.91 0.022 6.062);
  --muted-foreground: oklch(0.39 0 165.964);
  --popover: oklch(0.991 0.002 5.5);
  --popover-foreground: oklch(0.081 0.018 6.239);
  --card: oklch(0.991 0.002 5.5);
  --card-foreground: oklch(0.081 0.018 6.239);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.847 0.075 7.694);
  --primary-foreground: oklch(0.361 0.136 20.337);
  --secondary: oklch(0.904 0.007 5.644);
  --secondary-foreground: oklch(0.388 0.02 6.769);
  --accent: oklch(0.904 0.007 5.644);
  --accent-foreground: oklch(0.388 0.02 6.769);
  --destructive: oklch(0.542 0.176 37.481);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.847 0.075 7.694);
  --chart-1: oklch(0.847 0.075 7.694);
  --chart-2: oklch(0.904 0.007 5.644);
  --chart-3: oklch(0.904 0.007 5.644);
  --chart-4: oklch(0.928 0.005 5.59);
  --chart-5: oklch(0.846 0.077 7.782);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.017 6.653);
  --foreground: oklch(0.976 0.003 5.52);
  --muted: oklch(0.202 0.033 9.735);
  --muted-foreground: oklch(0.789 0 171.254);
  --popover: oklch(0.137 0.017 6.653);
  --popover-foreground: oklch(0.976 0.003 5.52);
  --card: oklch(0.137 0.017 6.653);
  --card-foreground: oklch(0.976 0.003 5.52);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.847 0.075 7.694);
  --primary-foreground: oklch(0.361 0.136 20.337);
  --secondary: oklch(0.23 0.014 6.977);
  --secondary-foreground: oklch(0.768 0.023 6.233);
  --accent: oklch(0.23 0.014 6.977);
  --accent-foreground: oklch(0.768 0.023 6.233);
  --destructive: oklch(0.622 0.203 37.181);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.847 0.075 7.694);
  --chart-1: oklch(0.847 0.075 7.694);
  --chart-2: oklch(0.23 0.014 6.977);
  --chart-3: oklch(0.23 0.014 6.977);
  --chart-4: oklch(0.261 0.017 7.085);
  --chart-5: oklch(0.846 0.077 7.782);
}