Unfolded for shadcn/ui

Unfolded is a shadcn/ui theme built around a deep red primary color (#470a1a) with deep teal accents (#0a4738). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#470a1a) on a red-tinted background (#0f0508).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f0508black
Foreground
#000000black
#fbf8f9snow
Card
#fcfcfcsnow
#13070ablack
Card foreground
#000000black
#fdfcfcsnow
Popover
#ffffffwhite
#0f0508black
Popover foreground
#000000black
#fbf8f9snow
Primary
#470a1amaroon
#470a1amaroon
Primary foreground
#f094ablightpink
#f094ablightpink
Secondary
#0a4738darkslategray
#0a4738darkslategray
Secondary foreground
#3be3b9turquoise
#3be3b9turquoise
Muted
#d3e9e3gainsboro
#162c27darkslategray
Muted foreground
#414e4bdarkslategray
#b1bebbsilver
Accent
#0a4738darkslategray
#0a4738darkslategray
Accent foreground
#3be3b9turquoise
#3be3b9turquoise
Destructive
#821608maroon
#d9240dfirebrick
Destructive foreground
#fbc7c0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#470a1amaroon
#470a1amaroon

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 button7.16:1AAA
Secondary button6.49:1AA
Muted text6.83:1AA
Accent6.49:1AA
Destructive6.78:1AA
Dark mode
Text on background19.00:1AAA
Text on card19.33:1AAA
Primary button7.16:1AAA
Secondary button6.49:1AA
Muted text7.68:1AAA
Accent6.49:1AA
Destructive4.98:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.916 0.024 179.092);
  --muted-foreground: oklch(0.411 0.017 178.619);
  --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.266 0.091 11.917);
  --primary-foreground: oklch(0.767 0.113 3.913);
  --secondary: oklch(0.358 0.065 171.216);
  --secondary-foreground: oklch(0.822 0.147 171.53);
  --accent: oklch(0.358 0.065 171.216);
  --accent-foreground: oklch(0.822 0.147 171.53);
  --destructive: oklch(0.394 0.145 31.047);
  --destructive-foreground: oklch(0.874 0.061 27.057);
  --ring: oklch(0.266 0.091 11.917);
  --chart-1: oklch(0.266 0.091 11.917);
  --chart-2: oklch(0.358 0.065 171.216);
  --chart-3: oklch(0.358 0.065 171.216);
  --chart-4: oklch(0.402 0.074 170.878);
  --chart-5: oklch(0.267 0.093 12.506);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.021 1.085);
  --foreground: oklch(0.983 0.003 359.961);
  --muted: oklch(0.273 0.03 176.13);
  --muted-foreground: oklch(0.791 0.015 179.321);
  --popover: oklch(0.136 0.021 1.085);
  --popover-foreground: oklch(0.983 0.003 359.961);
  --card: oklch(0.148 0.024 2.735);
  --card-foreground: oklch(0.991 0.002 359.913);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.266 0.091 11.917);
  --primary-foreground: oklch(0.767 0.113 3.913);
  --secondary: oklch(0.358 0.065 171.216);
  --secondary-foreground: oklch(0.822 0.147 171.53);
  --accent: oklch(0.358 0.065 171.216);
  --accent-foreground: oklch(0.822 0.147 171.53);
  --destructive: oklch(0.569 0.215 30.872);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.266 0.091 11.917);
  --chart-1: oklch(0.266 0.091 11.917);
  --chart-2: oklch(0.358 0.065 171.216);
  --chart-3: oklch(0.358 0.065 171.216);
  --chart-4: oklch(0.402 0.074 170.878);
  --chart-5: oklch(0.267 0.093 12.506);
}