Unfolded for shadcn/ui

Unfolded is a shadcn/ui theme built around a yellow primary color (#eaec93) with green accents (#beec93). The light mode uses a neutral background (#fefefb). Dark mode keeps the yellow primary (#eaec93) on a neutral background (#070703).

Color palette

TokenLightDark
Background
#fefefbwhite
#070703black
Foreground
#0d0d02black
#fcfcf8snow
Card
#fefefbwhite
#070703black
Card foreground
#0d0d02black
#fcfcf8snow
Popover
#fefefbwhite
#070703black
Popover foreground
#0d0d02black
#fcfcf8snow
Primary
#eaec93khaki
#eaec93khaki
Primary foreground
#40410bdarkolivegreen
#40410bdarkolivegreen
Secondary
#ecc193burlywood
#ecc193burlywood
Secondary foreground
#41270bmaroon
#41270bmaroon
Muted
#e7dcd0gainsboro
#2f2418black
Muted foreground
#46423edarkslategray
#c1bdb9silver
Accent
#beec93palegreen
#beec93palegreen
Accent foreground
#25410bdarkgreen
#25410bdarkgreen
Destructive
#7e0301maroon
#fd3330crimson
Destructive foreground
#feb5b3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#eaec93khaki
#eaec93khaki

Contrast

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

Light mode
Text on background19.30:1AAA
Text on card19.30:1AAA
Primary button8.54:1AAA
Secondary button8.28:1AAA
Muted text7.34:1AAA
Accent8.47:1AAA
Destructive6.54:1AA
Dark mode
Text on background19.62:1AAA
Text on card19.62:1AAA
Primary button8.54:1AAA
Secondary button8.28:1AAA
Muted text8.10:1AAA
Accent8.47:1AAA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.996 0.004 107.24);
  --foreground: oklch(0.157 0.028 109.882);
  --muted: oklch(0.899 0.02 69.42);
  --muted-foreground: oklch(0.383 0.009 69.418);
  --popover: oklch(0.996 0.004 107.24);
  --popover-foreground: oklch(0.157 0.028 109.882);
  --card: oklch(0.996 0.004 107.24);
  --card-foreground: oklch(0.157 0.028 109.882);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.922 0.111 109.223);
  --primary-foreground: oklch(0.363 0.072 110.458);
  --secondary: oklch(0.837 0.078 68.306);
  --secondary-foreground: oklch(0.3 0.056 64.233);
  --accent: oklch(0.89 0.126 130.813);
  --accent-foreground: oklch(0.341 0.085 133.201);
  --destructive: oklch(0.375 0.151 29.387);
  --destructive-foreground: oklch(0.84 0.086 20.138);
  --ring: oklch(0.922 0.111 109.223);
  --chart-1: oklch(0.922 0.111 109.223);
  --chart-2: oklch(0.837 0.078 68.306);
  --chart-3: oklch(0.89 0.126 130.813);
  --chart-4: oklch(0.856 0.069 68.576);
  --chart-5: oklch(0.927 0.116 109.284);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.012 108.664);
  --foreground: oklch(0.989 0.005 107.254);
  --muted: oklch(0.27 0.026 68.196);
  --muted-foreground: oklch(0.8 0.007 69.561);
  --popover: oklch(0.126 0.012 108.664);
  --popover-foreground: oklch(0.989 0.005 107.254);
  --card: oklch(0.126 0.012 108.664);
  --card-foreground: oklch(0.989 0.005 107.254);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.922 0.111 109.223);
  --primary-foreground: oklch(0.363 0.072 110.458);
  --secondary: oklch(0.837 0.078 68.306);
  --secondary-foreground: oklch(0.3 0.056 64.233);
  --accent: oklch(0.89 0.126 130.813);
  --accent-foreground: oklch(0.341 0.085 133.201);
  --destructive: oklch(0.645 0.235 27.575);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.922 0.111 109.223);
  --chart-1: oklch(0.922 0.111 109.223);
  --chart-2: oklch(0.837 0.078 68.306);
  --chart-3: oklch(0.89 0.126 130.813);
  --chart-4: oklch(0.856 0.069 68.576);
  --chart-5: oklch(0.927 0.116 109.284);
}