Polished for shadcn/ui

Polished is a shadcn/ui theme built around a vivid deep orange primary color (#372606) with vivid deep blue accents (#061737). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid deep orange primary (#372606) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#040301black
Foreground
#0d0903black
#ffffffwhite
Card
#fcfaf8snow
#080602black
Card foreground
#080602black
#ffffffwhite
Popover
#fdfdfcwhite
#040301black
Popover foreground
#0d0903black
#ffffffwhite
Primary
#372606black
#372606black
Primary foreground
#e8a221goldenrod
#e8a221goldenrod
Secondary
#061737black
#061737black
Secondary foreground
#7ea6f1cornflowerblue
#7ea6f1cornflowerblue
Muted
#d0d6e2gainsboro
#1d232fdarkslategray
Muted foreground
#57595bdimgray
#a4a5a8darkgray
Accent
#061737black
#061737black
Accent foreground
#7ea6f1cornflowerblue
#7ea6f1cornflowerblue
Destructive
#d84a0echocolate
#f0530forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#372606black
#372606black

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button6.65:1AA
Secondary button7.25:1AAA
Muted text4.81:1AA
Accent7.25:1AAA
Destructive4.27:1AA Large
Dark mode
Text on background20.62:1AAA
Text on card20.25:1AAA
Primary button6.65:1AA
Secondary button7.25:1AAA
Muted text6.36:1AA
Accent7.25:1AAA
Destructive3.54: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.993 0.002 83.056);
  --foreground: oklch(0.142 0.019 89.191);
  --muted: oklch(0.875 0.018 263.007);
  --muted-foreground: oklch(0.463 0.004 263.037);
  --popover: oklch(0.993 0.002 83.056);
  --popover-foreground: oklch(0.142 0.019 89.191);
  --card: oklch(0.987 0.003 83.058);
  --card-foreground: oklch(0.124 0.016 90.071);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.283 0.053 78.937);
  --primary-foreground: oklch(0.762 0.152 76.249);
  --secondary: oklch(0.213 0.067 260.958);
  --secondary-foreground: oklch(0.727 0.119 262.183);
  --accent: oklch(0.213 0.067 260.958);
  --accent-foreground: oklch(0.727 0.119 262.183);
  --destructive: oklch(0.6 0.187 38.827);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.283 0.053 78.937);
  --chart-1: oklch(0.283 0.053 78.937);
  --chart-2: oklch(0.213 0.067 260.958);
  --chart-3: oklch(0.213 0.067 260.958);
  --chart-4: oklch(0.242 0.081 261.263);
  --chart-5: oklch(0.285 0.054 78.71);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.01 88.869);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.257 0.024 262.64);
  --muted-foreground: oklch(0.722 0.004 263.045);
  --popover: oklch(0.097 0.01 88.869);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.122 0.013 88.869);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.283 0.053 78.937);
  --primary-foreground: oklch(0.762 0.152 76.249);
  --secondary: oklch(0.213 0.067 260.958);
  --secondary-foreground: oklch(0.727 0.119 262.183);
  --accent: oklch(0.213 0.067 260.958);
  --accent-foreground: oklch(0.727 0.119 262.183);
  --destructive: oklch(0.649 0.204 38.677);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.283 0.053 78.937);
  --chart-1: oklch(0.283 0.053 78.937);
  --chart-2: oklch(0.213 0.067 260.958);
  --chart-3: oklch(0.213 0.067 260.958);
  --chart-4: oklch(0.242 0.081 261.263);
  --chart-5: oklch(0.285 0.054 78.71);
}