Lumber for shadcn/ui

Lumber is a shadcn/ui theme built around a vivid green primary color (#23cf0c) with vivid red accents (#cf0c23). The light mode uses a neutral background (#f8fdf7). Dark mode keeps the vivid green primary (#23cf0c) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fdf7mintcream
#000000black
Foreground
#000000black
#ffffffwhite
Card
#f4fcf3honeydew
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#f4fcf3honeydew
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#23cf0climegreen
#23cf0climegreen
Primary foreground
#020e01black
#020e01black
Secondary
#0c23cfmediumblue
#0c23cfmediumblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dfdfe2gainsboro
#1d1d20black
Muted foreground
#62636adimgray
#95969ddarkgray
Accent
#cf0c23crimson
#cf0c23crimson
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#952e09saddlebrown
#f25218orangered
Destructive foreground
#fcdfd4antiquewhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#23cf0climegreen
#23cf0climegreen

Contrast

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

Light mode
Text on background20.36:1AAA
Text on card20.04:1AAA
Primary button9.40:1AAA
Secondary button9.73:1AAA
Muted text4.50:1AA
Accent5.61:1AA
Destructive6.20:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button9.40:1AAA
Secondary button9.73:1AAA
Muted text5.68:1AA
Accent5.61:1AA
Destructive3.51:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.01 142.079);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.905 0.004 280.267);
  --muted-foreground: oklch(0.501 0.011 279.965);
  --popover: oklch(0.982 0.015 142.061);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.015 142.061);
  --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.744 0.247 141.919);
  --primary-foreground: oklch(0.147 0.042 139.479);
  --secondary: oklch(0.412 0.251 265.285);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.542 0.215 25.239);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.454 0.145 37.313);
  --destructive-foreground: oklch(0.924 0.036 41.053);
  --ring: oklch(0.744 0.247 141.919);
  --chart-1: oklch(0.744 0.247 141.919);
  --chart-2: oklch(0.412 0.251 265.285);
  --chart-3: oklch(0.542 0.215 25.239);
  --chart-4: oklch(0.432 0.265 265.215);
  --chart-5: oklch(0.752 0.251 141.974);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.233 0.005 279.975);
  --muted-foreground: oklch(0.674 0.011 280.082);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.744 0.247 141.919);
  --primary-foreground: oklch(0.147 0.042 139.479);
  --secondary: oklch(0.412 0.251 265.285);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.542 0.215 25.239);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.651 0.205 37.488);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.744 0.247 141.919);
  --chart-1: oklch(0.744 0.247 141.919);
  --chart-2: oklch(0.412 0.251 265.285);
  --chart-3: oklch(0.542 0.215 25.239);
  --chart-4: oklch(0.432 0.265 265.215);
  --chart-5: oklch(0.752 0.251 141.974);
}