Molding for shadcn/ui

Molding is a shadcn/ui theme built around a vivid teal primary color (#66f5dd) with vivid yellow accents (#f5dd66). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#66f5dd) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#051512black
#f6f9f8whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#051512black
#f6f9f8whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#051512black
#f6f9f8whitesmoke
Primary
#66f5ddaquamarine
#66f5ddaquamarine
Primary foreground
#022620black
#022620black
Secondary
#dd66f5orchid
#dd66f5orchid
Secondary foreground
#200226black
#200226black
Muted
#e6dfe7gainsboro
#1f1820black
Muted foreground
#544e55darkslategray
#b0aab1darkgray
Accent
#f5dd66khaki
#f5dd66khaki
Accent foreground
#262002black
#262002black
Destructive
#812708saddlebrown
#e1430eorangered
Destructive foreground
#fbcfc1peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#66f5ddaquamarine
#66f5ddaquamarine

Contrast

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

Light mode
Text on background18.70:1AAA
Text on card18.70:1AAA
Primary button12.06:1AAA
Secondary button6.63:1AA
Muted text6.18:1AA
Accent11.97:1AAA
Destructive6.64:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button12.06:1AAA
Secondary button6.63:1AA
Muted text7.63:1AAA
Accent11.97:1AAA
Destructive4.18:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.179 0.023 182.008);
  --muted: oklch(0.911 0.013 320.553);
  --muted-foreground: oklch(0.433 0.013 320.577);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.179 0.023 182.008);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.179 0.023 182.008);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.886 0.129 180.393);
  --primary-foreground: oklch(0.243 0.042 179.181);
  --secondary: oklch(0.708 0.227 320.669);
  --secondary-foreground: oklch(0.182 0.078 320.769);
  --accent: oklch(0.895 0.141 98.103);
  --accent-foreground: oklch(0.245 0.047 98.162);
  --destructive: oklch(0.409 0.13 36.726);
  --destructive-foreground: oklch(0.889 0.054 39.262);
  --ring: oklch(0.886 0.129 180.393);
  --chart-1: oklch(0.886 0.129 180.393);
  --chart-2: oklch(0.708 0.227 320.669);
  --chart-3: oklch(0.895 0.141 98.103);
  --chart-4: oklch(0.731 0.208 320.728);
  --chart-5: oklch(0.892 0.132 180.236);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.003 185.378);
  --muted: oklch(0.221 0.018 320.651);
  --muted-foreground: oklch(0.745 0.011 320.554);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.979 0.003 185.378);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.979 0.003 185.378);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.886 0.129 180.393);
  --primary-foreground: oklch(0.243 0.042 179.181);
  --secondary: oklch(0.708 0.227 320.669);
  --secondary-foreground: oklch(0.182 0.078 320.769);
  --accent: oklch(0.895 0.141 98.103);
  --accent-foreground: oklch(0.245 0.047 98.162);
  --destructive: oklch(0.609 0.202 35.964);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.886 0.129 180.393);
  --chart-1: oklch(0.886 0.129 180.393);
  --chart-2: oklch(0.708 0.227 320.669);
  --chart-3: oklch(0.895 0.141 98.103);
  --chart-4: oklch(0.731 0.208 320.728);
  --chart-5: oklch(0.892 0.132 180.236);
}