Plastic for shadcn/ui

Plastic is a shadcn/ui theme built around a muted light teal primary color (#ecf4f1) with muted light cyan accents (#ecf2f4). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light teal primary (#ecf4f1) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020e0ablack
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#010906black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#020e0ablack
#ffffffwhite
Primary
#ecf4f1whitesmoke
#ecf4f1whitesmoke
Primary foreground
#1a2d27darkslategray
#1a2d27darkslategray
Secondary
#ecf4edwhitesmoke
#ecf4edwhitesmoke
Secondary foreground
#1a2d1dblack
#1a2d1dblack
Muted
#daecddgainsboro
#132516black
Muted foreground
#475249darkslategray
#adb8afdarkgray
Accent
#ecf2f4whitesmoke
#ecf2f4whitesmoke
Accent foreground
#1a2a2ddarkslategray
#1a2a2ddarkslategray
Destructive
#6c1e04maroon
#e74008orangered
Destructive foreground
#fcbca6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ecf4f1whitesmoke
#ecf4f1whitesmoke

Contrast

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

Light mode
Text on background19.63:1AAA
Text on card19.70:1AAA
Primary button12.93:1AAA
Secondary button13.00:1AAA
Muted text6.60:1AA
Accent13.17:1AAA
Destructive7.04:1AAA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button12.93:1AAA
Secondary button13.00:1AAA
Muted text7.87:1AAA
Accent13.17:1AAA
Destructive4.07: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.147 0.023 173.671);
  --muted: oklch(0.925 0.027 150.419);
  --muted-foreground: oklch(0.426 0.02 150.161);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.147 0.023 173.671);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.127 0.02 174.894);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.96 0.009 174.297);
  --primary-foreground: oklch(0.28 0.028 171.191);
  --secondary: oklch(0.959 0.013 150.64);
  --secondary-foreground: oklch(0.276 0.039 148.67);
  --accent: oklch(0.958 0.008 211.038);
  --accent-foreground: oklch(0.273 0.022 211.441);
  --destructive: oklch(0.359 0.116 36.906);
  --destructive-foreground: oklch(0.848 0.08 39.219);
  --ring: oklch(0.96 0.009 174.297);
  --chart-1: oklch(0.96 0.009 174.297);
  --chart-2: oklch(0.959 0.013 150.64);
  --chart-3: oklch(0.958 0.008 211.038);
  --chart-4: oklch(0.979 0.006 150.733);
  --chart-5: oklch(0.96 0.011 174.265);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.243 0.036 148.532);
  --muted-foreground: oklch(0.771 0.017 150.511);
  --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.96 0.009 174.297);
  --primary-foreground: oklch(0.28 0.028 171.191);
  --secondary: oklch(0.959 0.013 150.64);
  --secondary-foreground: oklch(0.276 0.039 148.67);
  --accent: oklch(0.958 0.008 211.038);
  --accent-foreground: oklch(0.273 0.022 211.441);
  --destructive: oklch(0.616 0.211 35.34);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.96 0.009 174.297);
  --chart-1: oklch(0.96 0.009 174.297);
  --chart-2: oklch(0.959 0.013 150.64);
  --chart-3: oklch(0.958 0.008 211.038);
  --chart-4: oklch(0.979 0.006 150.733);
  --chart-5: oklch(0.96 0.011 174.265);
}