Dolman for shadcn/ui

Dolman is a shadcn/ui theme built around a green primary color (#5cbe27) with violet accents (#8927be). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#5cbe27) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#ffffffwhite
#020302black
Foreground
#0a1504black
#fafbf9snow
Card
#ffffffwhite
#020302black
Card foreground
#0a1504black
#fafbf9snow
Popover
#ffffffwhite
#020302black
Popover foreground
#0a1504black
#fafbf9snow
Primary
#5cbe27limegreen
#5cbe27limegreen
Primary foreground
#0a1504black
#0a1504black
Secondary
#8927bedarkorchid
#8927bedarkorchid
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e8deedlavender
#1c1221black
Muted foreground
#5b5260dimgray
#a89faddarkgray
Accent
#8927bedarkorchid
#8927bedarkorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#790501maroon
#fd3730crimson
Destructive foreground
#feb1aelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5cbe27limegreen
#5cbe27limegreen

Contrast

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

Light mode
Text on background18.71:1AAA
Text on card18.71:1AAA
Primary button7.92:1AAA
Secondary button6.75:1AA
Muted text5.69:1AA
Accent6.75:1AA
Destructive6.58:1AA
Dark mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button7.92:1AAA
Secondary button6.75:1AA
Muted text7.12:1AAA
Accent6.75:1AA
Destructive3.64:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.18 0.038 134.486);
  --muted: oklch(0.912 0.024 314.075);
  --muted-foreground: oklch(0.453 0.026 313.909);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.18 0.038 134.486);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.18 0.038 134.486);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.716 0.203 137.431);
  --primary-foreground: oklch(0.18 0.038 134.486);
  --secondary: oklch(0.501 0.221 309.963);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.501 0.221 309.963);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.365 0.146 29.714);
  --destructive-foreground: oklch(0.833 0.091 21.397);
  --ring: oklch(0.716 0.203 137.431);
  --chart-1: oklch(0.716 0.203 137.431);
  --chart-2: oklch(0.501 0.221 309.963);
  --chart-3: oklch(0.501 0.221 309.963);
  --chart-4: oklch(0.525 0.233 309.916);
  --chart-5: oklch(0.724 0.209 137.611);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.011 133.167);
  --foreground: oklch(0.986 0.002 134.233);
  --muted: oklch(0.202 0.034 313.25);
  --muted-foreground: oklch(0.714 0.023 314.043);
  --popover: oklch(0.097 0.011 133.167);
  --popover-foreground: oklch(0.986 0.002 134.233);
  --card: oklch(0.097 0.011 133.167);
  --card-foreground: oklch(0.986 0.002 134.233);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.716 0.203 137.431);
  --primary-foreground: oklch(0.18 0.038 134.486);
  --secondary: oklch(0.501 0.221 309.963);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.501 0.221 309.963);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.648 0.233 28.039);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.716 0.203 137.431);
  --chart-1: oklch(0.716 0.203 137.431);
  --chart-2: oklch(0.501 0.221 309.963);
  --chart-3: oklch(0.501 0.221 309.963);
  --chart-4: oklch(0.525 0.233 309.916);
  --chart-5: oklch(0.724 0.209 137.611);
}