Molding for shadcn/ui

Molding is a shadcn/ui theme built around an orange primary color (#e89368) with muted light orange accents (#e0d6d1). The light mode uses a neutral background (#fdfcfb). Dark mode keeps the orange primary (#e89368) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcfbsnow
#000000black
Foreground
#040201black
#fbfaf9snow
Card
#fcf9f8snow
#030303black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fdfcfbsnow
#000000black
Popover foreground
#040201black
#fbfaf9snow
Primary
#e89368darksalmon
#e89368darksalmon
Primary foreground
#1b0c04black
#1b0c04black
Secondary
#edeae8linen
#2c2826darkslategray
Secondary foreground
#5c4e47darkolivegreen
#c6c0besilver
Muted
#e0dddcgainsboro
#23211fblack
Muted foreground
#584941darkolivegreen
#beafa7darkgray
Accent
#e0d6d1gainsboro
#453b35darkslategray
Accent foreground
#4c3c34darkslategray
#dcd4d1lightgrey
Destructive
#ab1603firebrick
#e71e04red
Destructive foreground
#ffe4e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e89368darksalmon
#e89368darksalmon

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.06:1AAA
Primary button8.00:1AAA
Secondary button6.64:1AA
Muted text6.36:1AA
Accent7.36:1AAA
Destructive6.12:1AA
Dark mode
Text on background20.14:1AAA
Text on card20.19:1AAA
Primary button8.00:1AAA
Secondary button8.14:1AAA
Muted text7.57:1AAA
Accent7.48:1AAA
Destructive4.57:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 48.729);
  --foreground: oklch(0.091 0.01 56.446);
  --muted: oklch(0.9 0.003 48.712);
  --muted-foreground: oklch(0.418 0.024 48.115);
  --popover: oklch(0.992 0.002 48.729);
  --popover-foreground: oklch(0.091 0.01 56.446);
  --card: oklch(0.984 0.004 48.707);
  --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.742 0.119 46.914);
  --primary-foreground: oklch(0.172 0.031 50.734);
  --secondary: oklch(0.938 0.005 48.691);
  --secondary-foreground: oklch(0.436 0.022 48.189);
  --accent: oklch(0.883 0.013 48.579);
  --accent-foreground: oklch(0.37 0.027 47.982);
  --destructive: oklch(0.474 0.183 30.914);
  --destructive-foreground: oklch(0.94 0.029 26.676);
  --ring: oklch(0.742 0.119 46.914);
  --chart-1: oklch(0.742 0.119 46.914);
  --chart-2: oklch(0.938 0.005 48.691);
  --chart-3: oklch(0.883 0.013 48.579);
  --chart-4: oklch(0.962 0.003 48.715);
  --chart-5: oklch(0.743 0.123 46.811);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0.002 48.726);
  --muted: oklch(0.248 0.004 48.56);
  --muted-foreground: oklch(0.764 0.021 48.435);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.985 0.002 48.726);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 48.739);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.742 0.119 46.914);
  --primary-foreground: oklch(0.172 0.031 50.734);
  --secondary: oklch(0.28 0.007 48.473);
  --secondary-foreground: oklch(0.813 0.008 48.637);
  --accent: oklch(0.36 0.017 48.213);
  --accent-foreground: oklch(0.876 0.009 48.623);
  --destructive: oklch(0.592 0.231 30.639);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.742 0.119 46.914);
  --chart-1: oklch(0.742 0.119 46.914);
  --chart-2: oklch(0.28 0.007 48.473);
  --chart-3: oklch(0.36 0.017 48.213);
  --chart-4: oklch(0.31 0.008 48.461);
  --chart-5: oklch(0.743 0.123 46.811);
}