Polyester for shadcn/ui

Polyester is a shadcn/ui theme built around a vivid light red primary color (#ffb9a4) with muted light red accents (#e7e1df). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light red primary (#ffb9a4) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0d0502black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#090301black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#090301black
#ffffffwhite
Primary
#ffb9a4lightpink
#ffb9a4lightpink
Primary foreground
#701a01maroon
#701a01maroon
Secondary
#e7e1dfgainsboro
#191615black
Secondary foreground
#544540darkslategray
#b6adaadarkgray
Muted
#dfd5d3gainsboro
#2c2320darkslategray
Muted foreground
#70615cdimgray
#a3948frosybrown
Accent
#e7e1dfgainsboro
#191615black
Accent foreground
#544540darkslategray
#b6adaadarkgray
Destructive
#6b1d00maroon
#ff4f0forangered
Destructive foreground
#ffb89elightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ffb9a4lightpink
#ffb9a4lightpink

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card20.04:1AAA
Primary button6.91:1AA
Secondary button7.04:1AAA
Muted text4.11:1AA Large
Accent7.04:1AAA
Destructive7.00:1AAA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.91:1AA
Secondary button8.18:1AAA
Muted text5.24:1AA
Accent8.18:1AAA
Destructive3.28:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.022 48.053);
  --muted: oklch(0.881 0.011 37.684);
  --muted-foreground: oklch(0.505 0.022 37.606);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.11 0.019 48.753);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.11 0.019 48.753);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.845 0.087 37.62);
  --primary-foreground: oklch(0.361 0.123 35.916);
  --secondary: oklch(0.914 0.007 37.708);
  --secondary-foreground: oklch(0.404 0.022 37.595);
  --accent: oklch(0.914 0.007 37.708);
  --accent-foreground: oklch(0.404 0.022 37.595);
  --destructive: oklch(0.355 0.117 37.765);
  --destructive-foreground: oklch(0.842 0.09 40.83);
  --ring: oklch(0.845 0.087 37.62);
  --chart-1: oklch(0.845 0.087 37.62);
  --chart-2: oklch(0.914 0.007 37.708);
  --chart-3: oklch(0.914 0.007 37.708);
  --chart-4: oklch(0.937 0.005 37.717);
  --chart-5: oklch(0.845 0.089 37.624);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.266 0.015 37.593);
  --muted-foreground: oklch(0.677 0.02 37.631);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.845 0.087 37.62);
  --primary-foreground: oklch(0.361 0.123 35.916);
  --secondary: oklch(0.203 0.005 37.646);
  --secondary-foreground: oklch(0.754 0.012 37.672);
  --accent: oklch(0.203 0.005 37.646);
  --accent-foreground: oklch(0.754 0.012 37.672);
  --destructive: oklch(0.67 0.221 36.602);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0.087 37.62);
  --chart-1: oklch(0.845 0.087 37.62);
  --chart-2: oklch(0.203 0.005 37.646);
  --chart-3: oklch(0.203 0.005 37.646);
  --chart-4: oklch(0.236 0.006 37.639);
  --chart-5: oklch(0.845 0.089 37.624);
}