Assembly for shadcn/ui

Assembly is a shadcn/ui theme built around a light green primary color (#b4f0ad) with muted light green accents (#d3dad3). The light mode uses a neutral background (#fbfefb). Dark mode keeps the light green primary (#b4f0ad) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefbwhite
#000000black
Foreground
#000000black
#f9fbf9mintcream
Card
#f8fcf7mintcream
#030303black
Card foreground
#000000black
#fcfdfcwhite
Popover
#f8fcf7mintcream
#030303black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#b4f0adpalegreen
#b4f0adpalegreen
Primary foreground
#185a11darkgreen
#185a11darkgreen
Secondary
#e5e6e5gainsboro
#2c312bdarkslategray
Secondary foreground
#4c4d4cdarkslategray
#c4cac4silver
Muted
#cde7cblightgrey
#1b3418darkgreen
Muted foreground
#5d605cdimgray
#9fa39fdarkgray
Accent
#d3dad3lightgrey
#364634darkslategray
Accent foreground
#394338darkslategray
#d1dcd0lightgrey
Destructive
#9d3e0csaddlebrown
#ed5f12chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b4f0adpalegreen
#b4f0adpalegreen

Contrast

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

Light mode
Text on background20.65:1AAA
Text on card20.30:1AAA
Primary button6.37:1AA
Secondary button6.77:1AA
Muted text4.82:1AA
Accent7.24:1AAA
Destructive6.71:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.28:1AAA
Primary button6.37:1AA
Secondary button7.99:1AAA
Muted text5.27:1AA
Accent7.10:1AAA
Destructive6.23:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 142.611);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.901 0.047 142.415);
  --muted-foreground: oklch(0.486 0.007 142.566);
  --popover: oklch(0.987 0.008 142.594);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.008 142.594);
  --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.897 0.109 142.129);
  --primary-foreground: oklch(0.412 0.124 141.715);
  --secondary: oklch(0.924 0.001 142.623);
  --secondary-foreground: oklch(0.419 0.003 142.597);
  --accent: oklch(0.881 0.012 142.571);
  --accent-foreground: oklch(0.369 0.023 142.375);
  --destructive: oklch(0.488 0.138 43.157);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.897 0.109 142.129);
  --chart-1: oklch(0.897 0.109 142.129);
  --chart-2: oklch(0.924 0.001 142.623);
  --chart-3: oklch(0.881 0.012 142.571);
  --chart-4: oklch(0.947 0.001 142.624);
  --chart-5: oklch(0.9 0.113 142.111);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.003 142.615);
  --muted: oklch(0.298 0.059 141.845);
  --muted-foreground: oklch(0.71 0.007 142.589);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.993 0.001 142.621);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.001 142.621);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.897 0.109 142.129);
  --primary-foreground: oklch(0.412 0.124 141.715);
  --secondary: oklch(0.305 0.012 142.467);
  --secondary-foreground: oklch(0.833 0.011 142.572);
  --accent: oklch(0.375 0.037 142.218);
  --accent-foreground: oklch(0.884 0.02 142.533);
  --destructive: oklch(0.659 0.191 42.394);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.897 0.109 142.129);
  --chart-1: oklch(0.897 0.109 142.129);
  --chart-2: oklch(0.305 0.012 142.467);
  --chart-3: oklch(0.375 0.037 142.218);
  --chart-4: oklch(0.336 0.014 142.462);
  --chart-5: oklch(0.9 0.113 142.111);
}