Unfolded for shadcn/ui

Unfolded is a shadcn/ui theme built around a vivid deep green primary color (#04250e) with vivid deep orange accents (#250e04). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid deep green primary (#04250e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefcwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fbfefcwhite
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfefcwhite
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#04250eblack
#04250eblack
Primary foreground
#17de53limegreen
#17de53limegreen
Secondary
#0e0425black
#0e0425black
Secondary foreground
#d6c8f9lavender
#d6c8f9lavender
Muted
#e2e1e5gainsboro
#1b1a1eblack
Muted foreground
#515152darkslategray
#adadaedarkgray
Accent
#250e04black
#250e04black
Accent foreground
#ef936bdarksalmon
#ef936bdarksalmon
Destructive
#ca5212chocolate
#ee793acoral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#04250eblack
#04250eblack

Contrast

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

Light mode
Text on background20.65:1AAA
Text on card20.65:1AAA
Primary button9.10:1AAA
Secondary button12.70:1AAA
Muted text6.10:1AA
Accent7.93:1AAA
Destructive4.44:1AA Large
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button9.10:1AAA
Secondary button12.70:1AAA
Muted text7.69:1AAA
Accent7.93:1AAA
Destructive7.42:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 155.803);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.912 0.005 299.952);
  --muted-foreground: oklch(0.435 0.003 299.933);
  --popover: oklch(0.994 0.003 155.803);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.003 155.803);
  --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.233 0.058 149.891);
  --primary-foreground: oklch(0.785 0.231 146.662);
  --secondary: oklch(0.153 0.067 291.848);
  --secondary-foreground: oklch(0.86 0.07 298.659);
  --accent: oklch(0.196 0.044 45.455);
  --accent-foreground: oklch(0.751 0.125 43.672);
  --destructive: oklch(0.588 0.167 43.005);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.233 0.058 149.891);
  --chart-1: oklch(0.233 0.058 149.891);
  --chart-2: oklch(0.153 0.067 291.848);
  --chart-3: oklch(0.196 0.044 45.455);
  --chart-4: oklch(0.18 0.084 289.389);
  --chart-5: oklch(0.235 0.06 149.773);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.222 0.007 299.535);
  --muted-foreground: oklch(0.747 0.002 299.985);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.233 0.058 149.891);
  --primary-foreground: oklch(0.785 0.231 146.662);
  --secondary: oklch(0.153 0.067 291.848);
  --secondary-foreground: oklch(0.86 0.07 298.659);
  --accent: oklch(0.196 0.044 45.455);
  --accent-foreground: oklch(0.751 0.125 43.672);
  --destructive: oklch(0.7 0.163 46.324);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.233 0.058 149.891);
  --chart-1: oklch(0.233 0.058 149.891);
  --chart-2: oklch(0.153 0.067 291.848);
  --chart-3: oklch(0.196 0.044 45.455);
  --chart-4: oklch(0.18 0.084 289.389);
  --chart-5: oklch(0.235 0.06 149.773);
}