Strand for shadcn/ui

Strand is a shadcn/ui theme built around a vivid green primary color (#16e343) with vivid teal accents (#16e3a9). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#16e343) on a green-tinted background (#050a06).

Color palette

TokenLightDark
Background
#ffffffwhite
#050a06black
Foreground
#030c05black
#f5faf6whitesmoke
Card
#ffffffwhite
#050a06black
Card foreground
#030c05black
#f5faf6whitesmoke
Popover
#ffffffwhite
#050a06black
Popover foreground
#030c05black
#f5faf6whitesmoke
Primary
#16e343limegreen
#16e343limegreen
Primary foreground
#042a0cblack
#042a0cblack
Secondary
#51e316limegreen
#51e316limegreen
Secondary foreground
#0f2a04black
#0f2a04black
Muted
#d8e2d5gainsboro
#212a1dblack
Muted foreground
#56694fdarkolivegreen
#9eb096darkseagreen
Accent
#16e3a9mediumspringgreen
#16e3a9mediumspringgreen
Accent foreground
#042a1fblack
#042a1fblack
Destructive
#9f4009saddlebrown
#f37a35coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#16e343limegreen
#16e343limegreen

Contrast

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

Light mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button9.05:1AAA
Secondary button9.15:1AAA
Muted text4.46:1AA Large
Accent9.32:1AAA
Destructive6.52:1AA
Dark mode
Text on background18.86:1AAA
Text on card18.86:1AAA
Primary button9.05:1AAA
Secondary button9.15:1AAA
Muted text6.41:1AA
Accent9.32:1AAA
Destructive7.67:1AAA

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.141 0.023 151.731);
  --muted: oklch(0.902 0.021 136.679);
  --muted-foreground: oklch(0.497 0.046 136.915);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.141 0.023 151.731);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.141 0.023 151.731);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.798 0.247 144.893);
  --primary-foreground: oklch(0.25 0.068 147.192);
  --secondary: oklch(0.806 0.252 139.696);
  --secondary-foreground: oklch(0.253 0.07 138.009);
  --accent: oklch(0.814 0.166 166.014);
  --accent-foreground: oklch(0.255 0.046 169.741);
  --destructive: oklch(0.494 0.139 43.917);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.798 0.247 144.893);
  --chart-1: oklch(0.798 0.247 144.893);
  --chart-2: oklch(0.806 0.252 139.696);
  --chart-3: oklch(0.814 0.166 166.014);
  --chart-4: oklch(0.823 0.252 139.401);
  --chart-5: oklch(0.808 0.253 144.71);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.015 152.115);
  --foreground: oklch(0.98 0.007 152.509);
  --muted: oklch(0.273 0.028 136.956);
  --muted-foreground: oklch(0.736 0.042 136.787);
  --popover: oklch(0.138 0.015 152.115);
  --popover-foreground: oklch(0.98 0.007 152.509);
  --card: oklch(0.138 0.015 152.115);
  --card-foreground: oklch(0.98 0.007 152.509);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.798 0.247 144.893);
  --primary-foreground: oklch(0.25 0.068 147.192);
  --secondary: oklch(0.806 0.252 139.696);
  --secondary-foreground: oklch(0.253 0.07 138.009);
  --accent: oklch(0.814 0.166 166.014);
  --accent-foreground: oklch(0.255 0.046 169.741);
  --destructive: oklch(0.709 0.169 47.29);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.798 0.247 144.893);
  --chart-1: oklch(0.798 0.247 144.893);
  --chart-2: oklch(0.806 0.252 139.696);
  --chart-3: oklch(0.814 0.166 166.014);
  --chart-4: oklch(0.823 0.252 139.401);
  --chart-5: oklch(0.808 0.253 144.71);
}