Composed for shadcn/ui

Composed is a shadcn/ui theme built around a green primary color (#6cba2c) with green accents (#2cba33). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#6cba2c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fafbf9snow
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#fafbf9snow
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#fafbf9snow
Primary
#6cba2colivedrab
#6cba2colivedrab
Primary foreground
#0c1505black
#0c1505black
Secondary
#b3ba2cyellowgreen
#b3ba2cyellowgreen
Secondary foreground
#141505black
#141505black
Muted
#edeee2beige
#1c1d11black
Muted foreground
#434342darkslategray
#bdbdbcsilver
Accent
#2cba33limegreen
#2cba33limegreen
Accent foreground
#051506black
#051506black
Destructive
#752e06saddlebrown
#f57a32coral
Destructive foreground
#fbccb1peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6cba2colivedrab
#6cba2colivedrab

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.71:1AAA
Secondary button8.74:1AAA
Muted text8.46:1AAA
Accent7.31:1AAA
Destructive6.67:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button7.71:1AAA
Secondary button8.74:1AAA
Muted text9.05:1AAA
Accent7.31:1AAA
Destructive7.72:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.945 0.016 109.018);
  --muted-foreground: oklch(0.382 0.002 108.816);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.711 0.187 134.546);
  --primary-foreground: oklch(0.18 0.034 131.551);
  --secondary: oklch(0.759 0.156 112.52);
  --secondary-foreground: oklch(0.188 0.03 111.366);
  --accent: oklch(0.69 0.209 143.435);
  --accent-foreground: oklch(0.174 0.039 144.984);
  --destructive: oklch(0.397 0.11 44.556);
  --destructive-foreground: oklch(0.88 0.065 51.644);
  --ring: oklch(0.711 0.187 134.546);
  --chart-1: oklch(0.711 0.187 134.546);
  --chart-2: oklch(0.759 0.156 112.52);
  --chart-3: oklch(0.69 0.209 143.435);
  --chart-4: oklch(0.796 0.164 112.533);
  --chart-5: oklch(0.72 0.193 134.765);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.004 130.473);
  --muted: oklch(0.226 0.022 110.425);
  --muted-foreground: oklch(0.799 0.002 108.752);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.004 130.473);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.987 0.004 130.473);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.711 0.187 134.546);
  --primary-foreground: oklch(0.18 0.034 131.551);
  --secondary: oklch(0.759 0.156 112.52);
  --secondary-foreground: oklch(0.188 0.03 111.366);
  --accent: oklch(0.69 0.209 143.435);
  --accent-foreground: oklch(0.174 0.039 144.984);
  --destructive: oklch(0.711 0.172 47.065);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.711 0.187 134.546);
  --chart-1: oklch(0.711 0.187 134.546);
  --chart-2: oklch(0.759 0.156 112.52);
  --chart-3: oklch(0.69 0.209 143.435);
  --chart-4: oklch(0.796 0.164 112.533);
  --chart-5: oklch(0.72 0.193 134.765);
}