Designer for shadcn/ui

Designer is a shadcn/ui theme built around a deep green primary color (#576322) with deep green accents (#366322). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#576322) on a green-tinted background (#0a0c03).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0c03black
Foreground
#070901black
#ffffffwhite
Card
#fcfcfcsnow
#0e1004black
Card foreground
#040401black
#ffffffwhite
Popover
#ffffffwhite
#0a0c03black
Popover foreground
#070901black
#ffffffwhite
Primary
#576322darkolivegreen
#576322darkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#634e22darkolivegreen
#634e22darkolivegreen
Secondary foreground
#ede2cabisque
#ede2cabisque
Muted
#f3f3f1whitesmoke
#0e0d0cblack
Muted foreground
#665e4ddimgray
#b2aa99darkgray
Accent
#366322darkolivegreen
#366322darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a5270dfirebrick
#ed4726orangered
Destructive foreground
#fdebe7linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#576322darkolivegreen
#576322darkolivegreen

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card20.08:1AAA
Primary button6.55:1AA
Secondary button6.17:1AA
Muted text5.76:1AA
Accent7.09:1AAA
Destructive6.29:1AA
Dark mode
Text on background19.66:1AAA
Text on card19.17:1AAA
Primary button6.55:1AA
Secondary button6.17:1AA
Muted text8.41:1AAA
Accent7.09:1AAA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.133 0.023 115.659);
  --muted: oklch(0.963 0.002 86.014);
  --muted-foreground: oklch(0.484 0.028 86.071);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.133 0.023 115.659);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.106 0.019 115.659);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.474 0.09 118.769);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.436 0.067 84.373);
  --secondary-foreground: oklch(0.914 0.034 86.095);
  --accent: oklch(0.451 0.107 137.115);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.475 0.166 32.763);
  --destructive-foreground: oklch(0.954 0.02 31.094);
  --ring: oklch(0.474 0.09 118.769);
  --chart-1: oklch(0.474 0.09 118.769);
  --chart-2: oklch(0.436 0.067 84.373);
  --chart-3: oklch(0.451 0.107 137.115);
  --chart-4: oklch(0.47 0.073 84.291);
  --chart-5: oklch(0.48 0.094 118.957);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.022 115.932);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.16 0.003 86.065);
  --muted-foreground: oklch(0.741 0.026 86.094);
  --popover: oklch(0.149 0.022 115.932);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.167 0.025 116.853);
  --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.474 0.09 118.769);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.436 0.067 84.373);
  --secondary-foreground: oklch(0.914 0.034 86.095);
  --accent: oklch(0.451 0.107 137.115);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.634 0.208 33.097);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.474 0.09 118.769);
  --chart-1: oklch(0.474 0.09 118.769);
  --chart-2: oklch(0.436 0.067 84.373);
  --chart-3: oklch(0.451 0.107 137.115);
  --chart-4: oklch(0.47 0.073 84.291);
  --chart-5: oklch(0.48 0.094 118.957);
}