Plastic for shadcn/ui

Plastic is a shadcn/ui theme built around a vivid green primary color (#72f8ae) with vivid pink accents (#f872bc). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#72f8ae) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#72f8aeaquamarine
#72f8aeaquamarine
Primary foreground
#033619darkgreen
#033619darkgreen
Secondary
#f872bchotpink
#f872bchotpink
Secondary foreground
#36031fblack
#36031fblack
Muted
#f7eef3whitesmoke
#11080dblack
Muted foreground
#584b52darkslategray
#b4a7aedarkgray
Accent
#f872bchotpink
#f872bchotpink
Accent foreground
#36031fblack
#36031fblack
Destructive
#ac0d02darkred
#fd4235tomato
Destructive foreground
#ffe3e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#72f8aeaquamarine
#72f8aeaquamarine

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button10.21:1AAA
Secondary button6.82:1AA
Muted text7.25:1AAA
Accent6.82:1AA
Destructive6.17:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button10.21:1AAA
Secondary button6.82:1AA
Muted text8.51:1AAA
Accent6.82:1AA
Destructive3.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.957 0.011 342.904);
  --muted-foreground: oklch(0.429 0.021 343.767);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.886 0.158 156.806);
  --primary-foreground: oklch(0.291 0.072 153.232);
  --secondary: oklch(0.733 0.183 348.39);
  --secondary-foreground: oklch(0.221 0.086 352.454);
  --accent: oklch(0.733 0.183 348.39);
  --accent-foreground: oklch(0.221 0.086 352.454);
  --destructive: oklch(0.471 0.188 29.994);
  --destructive-foreground: oklch(0.937 0.031 22.612);
  --ring: oklch(0.886 0.158 156.806);
  --chart-1: oklch(0.886 0.158 156.806);
  --chart-2: oklch(0.733 0.183 348.39);
  --chart-3: oklch(0.733 0.183 348.39);
  --chart-4: oklch(0.756 0.164 347.592);
  --chart-5: oklch(0.89 0.163 156.621);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.152 0.018 345.148);
  --muted-foreground: oklch(0.741 0.018 343.205);
  --popover: oklch(0 0 0);
  --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.886 0.158 156.806);
  --primary-foreground: oklch(0.291 0.072 153.232);
  --secondary: oklch(0.733 0.183 348.39);
  --secondary-foreground: oklch(0.221 0.086 352.454);
  --accent: oklch(0.733 0.183 348.39);
  --accent-foreground: oklch(0.221 0.086 352.454);
  --destructive: oklch(0.657 0.224 28.88);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.886 0.158 156.806);
  --chart-1: oklch(0.886 0.158 156.806);
  --chart-2: oklch(0.733 0.183 348.39);
  --chart-3: oklch(0.733 0.183 348.39);
  --chart-4: oklch(0.756 0.164 347.592);
  --chart-5: oklch(0.89 0.163 156.621);
}