Plastic for shadcn/ui

Plastic is a shadcn/ui theme built around a light red primary color (#e4cbc9) with light cyan accents (#c9e1e4). The light mode uses a neutral background (#fefbfb). Dark mode keeps the light red primary (#e4cbc9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfbsnow
#000000black
Foreground
#000000black
#f8f6f6whitesmoke
Card
#fefbfbsnow
#000000black
Card foreground
#000000black
#f8f6f6whitesmoke
Popover
#fefbfbsnow
#000000black
Popover foreground
#000000black
#f8f6f6whitesmoke
Primary
#e4cbc9lightgrey
#e4cbc9lightgrey
Primary foreground
#512c29darkslategray
#512c29darkslategray
Secondary
#c9e1e4gainsboro
#c9e1e4gainsboro
Secondary foreground
#294e51darkslategray
#294e51darkslategray
Muted
#eef1f2whitesmoke
#0d1111black
Muted foreground
#616161dimgray
#9e9e9edarkgray
Accent
#c9e1e4gainsboro
#c9e1e4gainsboro
Accent foreground
#294e51darkslategray
#294e51darkslategray
Destructive
#8d330csaddlebrown
#ee733ftomato
Destructive foreground
#fbddd0bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e4cbc9lightgrey
#e4cbc9lightgrey

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card20.43:1AAA
Primary button7.84:1AAA
Secondary button6.69:1AA
Muted text5.46:1AA
Accent6.69:1AA
Destructive6.28:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button7.84:1AAA
Secondary button6.69:1AA
Muted text7.08:1AAA
Accent6.69:1AA
Destructive7.18:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 23.609);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.957 0.004 203.543);
  --muted-foreground: oklch(0.492 0 180);
  --popover: oklch(0.991 0.003 23.609);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.003 23.609);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.862 0.028 23.925);
  --primary-foreground: oklch(0.341 0.055 25.891);
  --secondary: oklch(0.894 0.026 203.336);
  --secondary-foreground: oklch(0.398 0.043 203.183);
  --accent: oklch(0.894 0.026 203.336);
  --accent-foreground: oklch(0.398 0.043 203.183);
  --destructive: oklch(0.445 0.131 40.06);
  --destructive-foreground: oklch(0.919 0.038 44.613);
  --ring: oklch(0.862 0.028 23.925);
  --chart-1: oklch(0.862 0.028 23.925);
  --chart-2: oklch(0.894 0.026 203.336);
  --chart-3: oklch(0.894 0.026 203.336);
  --chart-4: oklch(0.914 0.021 203.381);
  --chart-5: oklch(0.861 0.031 23.961);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.976 0.002 23.602);
  --muted: oklch(0.174 0.006 203.308);
  --muted-foreground: oklch(0.7 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.976 0.002 23.602);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.976 0.002 23.602);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.862 0.028 23.925);
  --primary-foreground: oklch(0.341 0.055 25.891);
  --secondary: oklch(0.894 0.026 203.336);
  --secondary-foreground: oklch(0.398 0.043 203.183);
  --accent: oklch(0.894 0.026 203.336);
  --accent-foreground: oklch(0.398 0.043 203.183);
  --destructive: oklch(0.693 0.166 42.352);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.862 0.028 23.925);
  --chart-1: oklch(0.862 0.028 23.925);
  --chart-2: oklch(0.894 0.026 203.336);
  --chart-3: oklch(0.894 0.026 203.336);
  --chart-4: oklch(0.914 0.021 203.381);
  --chart-5: oklch(0.861 0.031 23.961);
}