Marksman for shadcn/ui

Marksman is a shadcn/ui theme built around a green primary color (#c6dd5f) with indigo accents (#765fdd). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#c6dd5f) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#ffffffwhite
#030401black
Foreground
#131603black
#fafbf9snow
Card
#fcfcfcsnow
#070802black
Card foreground
#0f1203black
#fdfdfcwhite
Popover
#fcfcfcsnow
#070802black
Popover foreground
#0f1203black
#fdfdfcwhite
Primary
#c6dd5fdarkkhaki
#c6dd5fdarkkhaki
Primary foreground
#070802black
#070802black
Secondary
#765fddmediumslateblue
#765fddmediumslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dcd9e7gainsboro
#1a1826black
Muted foreground
#4c4a54darkslategray
#adabb5darkgray
Accent
#765fddmediumslateblue
#765fddmediumslateblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8a280asaddlebrown
#f1663btomato
Destructive foreground
#fbd6cbbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c6dd5fdarkkhaki
#c6dd5fdarkkhaki

Contrast

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

Light mode
Text on background18.36:1AAA
Text on card18.54:1AAA
Primary button13.32:1AAA
Secondary button4.70:1AA
Muted text6.27:1AA
Accent4.70:1AA
Destructive6.52:1AA
Dark mode
Text on background19.79:1AAA
Text on card19.76:1AAA
Primary button13.32:1AAA
Secondary button4.70:1AA
Muted text7.73:1AAA
Accent4.70:1AA
Destructive6.71:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.191 0.036 117.881);
  --muted: oklch(0.893 0.019 294.422);
  --muted-foreground: oklch(0.415 0.016 294.114);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.173 0.032 117.261);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.173 0.032 117.261);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.856 0.153 118.47);
  --primary-foreground: oklch(0.131 0.021 115.588);
  --secondary: oklch(0.574 0.184 287.549);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.574 0.184 287.549);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.426 0.139 35.813);
  --destructive-foreground: oklch(0.904 0.045 37.599);
  --ring: oklch(0.856 0.153 118.47);
  --chart-1: oklch(0.856 0.153 118.47);
  --chart-2: oklch(0.574 0.184 287.549);
  --chart-3: oklch(0.574 0.184 287.549);
  --chart-4: oklch(0.606 0.17 288.723);
  --chart-5: oklch(0.863 0.159 118.602);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.014 115.474);
  --foreground: oklch(0.987 0.002 114.867);
  --muted: oklch(0.217 0.027 292.361);
  --muted-foreground: oklch(0.746 0.014 294.485);
  --popover: oklch(0.129 0.017 115.474);
  --popover-foreground: oklch(0.993 0.001 114.845);
  --card: oklch(0.129 0.017 115.474);
  --card-foreground: oklch(0.993 0.001 114.845);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.856 0.153 118.47);
  --primary-foreground: oklch(0.131 0.021 115.588);
  --secondary: oklch(0.574 0.184 287.549);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.574 0.184 287.549);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.678 0.181 37.275);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.856 0.153 118.47);
  --chart-1: oklch(0.856 0.153 118.47);
  --chart-2: oklch(0.574 0.184 287.549);
  --chart-3: oklch(0.574 0.184 287.549);
  --chart-4: oklch(0.606 0.17 288.723);
  --chart-5: oklch(0.863 0.159 118.602);
}