Strand for shadcn/ui

Strand is a shadcn/ui theme built around a muted green primary color (#4d5f3a) with muted violet accents (#4d3a5f). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#4d5f3a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#080d02black
#fafcf8snow
Card
#ffffffwhite
#000000black
Card foreground
#080d02black
#fafcf8snow
Popover
#ffffffwhite
#000000black
Popover foreground
#080d02black
#fafcf8snow
Primary
#4d5f3adarkolivegreen
#4d5f3adarkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4d3a5fdarkslategray
#4d3a5fdarkslategray
Secondary foreground
#e6dfeclavender
#e6dfeclavender
Muted
#edecefwhitesmoke
#121013black
Muted foreground
#544c5ddimgray
#aba2b3darkgray
Accent
#4d3a5fdarkslategray
#4d3a5fdarkslategray
Accent foreground
#e6dfeclavender
#e6dfeclavender
Destructive
#772a08saddlebrown
#f06124chocolate
Destructive foreground
#facbb7peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4d5f3adarkolivegreen
#4d5f3adarkolivegreen

Contrast

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

Light mode
Text on background19.64:1AAA
Text on card19.64:1AAA
Primary button6.98:1AA
Secondary button7.73:1AAA
Muted text6.92:1AA
Accent7.73:1AAA
Destructive6.75:1AA
Dark mode
Text on background20.34:1AAA
Text on card20.34:1AAA
Primary button6.98:1AA
Secondary button7.73:1AAA
Muted text7.69:1AAA
Accent7.73:1AAA
Destructive6.42:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.149 0.029 127.493);
  --muted: oklch(0.944 0.005 308.406);
  --muted-foreground: oklch(0.43 0.029 307.706);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.149 0.029 127.493);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.149 0.029 127.493);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.459 0.061 130.104);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.385 0.065 306.538);
  --secondary-foreground: oklch(0.913 0.018 308.246);
  --accent: oklch(0.385 0.065 306.538);
  --accent-foreground: oklch(0.913 0.018 308.246);
  --destructive: oklch(0.394 0.116 40.032);
  --destructive-foreground: oklch(0.879 0.06 44.422);
  --ring: oklch(0.459 0.061 130.104);
  --chart-1: oklch(0.459 0.061 130.104);
  --chart-2: oklch(0.385 0.065 306.538);
  --chart-3: oklch(0.385 0.065 306.538);
  --chart-4: oklch(0.41 0.07 306.507);
  --chart-5: oklch(0.465 0.068 130.307);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.988 0.005 128.513);
  --muted: oklch(0.178 0.007 308.025);
  --muted-foreground: oklch(0.726 0.026 308.068);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.988 0.005 128.513);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.988 0.005 128.513);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.459 0.061 130.104);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.385 0.065 306.538);
  --secondary-foreground: oklch(0.913 0.018 308.246);
  --accent: oklch(0.385 0.065 306.538);
  --accent-foreground: oklch(0.913 0.018 308.246);
  --destructive: oklch(0.667 0.189 40.627);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.459 0.061 130.104);
  --chart-1: oklch(0.459 0.061 130.104);
  --chart-2: oklch(0.385 0.065 306.538);
  --chart-3: oklch(0.385 0.065 306.538);
  --chart-4: oklch(0.41 0.07 306.507);
  --chart-5: oklch(0.465 0.068 130.307);
}