Molasses for shadcn/ui

Molasses is a shadcn/ui theme built around a deep orange primary color (#492e22) with deep cyan accents (#223d49). The light mode uses a neutral background (#fefcfb). Dark mode keeps the deep orange primary (#492e22) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefcfbsnow
#000000black
Foreground
#040201black
#fbf9f9snow
Card
#fefcfbsnow
#000000black
Card foreground
#040201black
#fbf9f9snow
Popover
#fefcfbsnow
#000000black
Popover foreground
#040201black
#fbf9f9snow
Primary
#492e22darkslategray
#492e22darkslategray
Primary foreground
#e0c8bdlightgrey
#e0c8bdlightgrey
Secondary
#223d49darkslategray
#223d49darkslategray
Secondary foreground
#bdd5e0lightblue
#bdd5e0lightblue
Muted
#eff3f5whitesmoke
#0a0e10black
Muted foreground
#3b4245darkslategray
#bac1c4silver
Accent
#223d49darkslategray
#223d49darkslategray
Accent foreground
#bdd5e0lightblue
#bdd5e0lightblue
Destructive
#c50c02firebrick
#fd1d12red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#492e22darkslategray
#492e22darkslategray

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button7.72:1AAA
Secondary button7.54:1AAA
Muted text9.19:1AAA
Accent7.54:1AAA
Destructive6.13:1AA
Dark mode
Text on background20.02:1AAA
Text on card20.02:1AAA
Primary button7.72:1AAA
Secondary button7.54:1AAA
Muted text10.64:1AAA
Accent7.54:1AAA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 46.831);
  --foreground: oklch(0.091 0.009 54.1);
  --muted: oklch(0.963 0.005 226.922);
  --muted-foreground: oklch(0.372 0.011 227.245);
  --popover: oklch(0.992 0.002 46.831);
  --popover-foreground: oklch(0.091 0.009 54.1);
  --card: oklch(0.992 0.002 46.831);
  --card-foreground: oklch(0.091 0.009 54.1);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.332 0.044 45.63);
  --primary-foreground: oklch(0.85 0.031 46.48);
  --secondary: oklch(0.343 0.039 229.252);
  --secondary-foreground: oklch(0.859 0.03 227.335);
  --accent: oklch(0.343 0.039 229.252);
  --accent-foreground: oklch(0.859 0.03 227.335);
  --destructive: oklch(0.52 0.209 29.684);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.332 0.044 45.63);
  --chart-1: oklch(0.332 0.044 45.63);
  --chart-2: oklch(0.343 0.039 229.252);
  --chart-3: oklch(0.343 0.039 229.252);
  --chart-4: oklch(0.374 0.043 229.343);
  --chart-5: oklch(0.332 0.048 45.512);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0.002 46.834);
  --muted: oklch(0.159 0.008 227.585);
  --muted-foreground: oklch(0.807 0.009 226.995);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.985 0.002 46.834);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.985 0.002 46.834);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.332 0.044 45.63);
  --primary-foreground: oklch(0.85 0.031 46.48);
  --secondary: oklch(0.343 0.039 229.252);
  --secondary-foreground: oklch(0.859 0.03 227.335);
  --accent: oklch(0.343 0.039 229.252);
  --accent-foreground: oklch(0.859 0.03 227.335);
  --destructive: oklch(0.631 0.248 29.446);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.332 0.044 45.63);
  --chart-1: oklch(0.332 0.044 45.63);
  --chart-2: oklch(0.343 0.039 229.252);
  --chart-3: oklch(0.343 0.039 229.252);
  --chart-4: oklch(0.374 0.043 229.343);
  --chart-5: oklch(0.332 0.048 45.512);
}