Polished for shadcn/ui

Polished is a shadcn/ui theme built around a deep pink primary color (#44122d) with muted light pink accents (#e6e0e3). The light mode uses a neutral background (#fbf8fa). Dark mode keeps the deep pink primary (#44122d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbf8fasnow
#000000black
Foreground
#10040bblack
#faf4f8whitesmoke
Card
#fbf8fasnow
#000000black
Card foreground
#10040bblack
#faf4f8whitesmoke
Popover
#fbf8fasnow
#000000black
Popover foreground
#10040bblack
#faf4f8whitesmoke
Primary
#44122ddarkslategray
#44122ddarkslategray
Primary foreground
#e6a2c7plum
#e6a2c7plum
Secondary
#e6e0e3gainsboro
#1c1217black
Secondary foreground
#52424adarkslategray
#c0a0b1darkgray
Muted
#f7edf3whitesmoke
#12080dblack
Muted foreground
#6d5462dimgray
#ab929frosybrown
Accent
#e6e0e3gainsboro
#1c1217black
Accent foreground
#52424adarkslategray
#c0a0b1darkgray
Destructive
#b8380afirebrick
#f34e12orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#44122ddarkslategray
#44122ddarkslategray

Contrast

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

Light mode
Text on background19.12:1AAA
Text on card19.12:1AAA
Primary button7.53:1AAA
Secondary button7.20:1AAA
Muted text5.94:1AA
Accent7.20:1AAA
Destructive5.80:1AA
Dark mode
Text on background19.36:1AAA
Text on card19.36:1AAA
Primary button7.53:1AAA
Secondary button7.74:1AAA
Muted text6.89:1AA
Accent7.74:1AAA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 343.547);
  --foreground: oklch(0.136 0.027 345.471);
  --muted: oklch(0.956 0.012 343.767);
  --muted-foreground: oklch(0.477 0.039 345.378);
  --popover: oklch(0.983 0.004 343.547);
  --popover-foreground: oklch(0.136 0.027 345.471);
  --card: oklch(0.983 0.004 343.547);
  --card-foreground: oklch(0.136 0.027 345.471);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.277 0.084 350.972);
  --primary-foreground: oklch(0.789 0.093 346.193);
  --secondary: oklch(0.912 0.008 343.663);
  --secondary-foreground: oklch(0.399 0.026 345.02);
  --accent: oklch(0.912 0.008 343.663);
  --accent-foreground: oklch(0.399 0.026 345.02);
  --destructive: oklch(0.526 0.172 36.862);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.277 0.084 350.972);
  --chart-1: oklch(0.277 0.084 350.972);
  --chart-2: oklch(0.912 0.008 343.663);
  --chart-3: oklch(0.912 0.008 343.663);
  --chart-4: oklch(0.936 0.006 343.599);
  --chart-5: oklch(0.278 0.087 351.381);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.974 0.008 343.645);
  --muted: oklch(0.151 0.02 346.213);
  --muted-foreground: oklch(0.685 0.035 344.692);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.974 0.008 343.645);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.974 0.008 343.645);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.277 0.084 350.972);
  --primary-foreground: oklch(0.789 0.093 346.193);
  --secondary: oklch(0.198 0.018 345.557);
  --secondary-foreground: oklch(0.74 0.044 344.863);
  --accent: oklch(0.198 0.018 345.557);
  --accent-foreground: oklch(0.74 0.044 344.863);
  --destructive: oklch(0.648 0.21 36.946);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.277 0.084 350.972);
  --chart-1: oklch(0.277 0.084 350.972);
  --chart-2: oklch(0.198 0.018 345.557);
  --chart-3: oklch(0.198 0.018 345.557);
  --chart-4: oklch(0.229 0.023 345.777);
  --chart-5: oklch(0.278 0.087 351.381);
}