Manservant for shadcn/ui

Manservant is a shadcn/ui theme built around a light orange primary color (#ebd8bc) with light green accents (#e7ebbc). The light mode uses a neutral background (#ffffff). Dark mode keeps the light orange primary (#ebd8bc) on an orange-tinted background (#100b04).

Color palette

TokenLightDark
Background
#ffffffwhite
#100b04black
Foreground
#100b04black
#fbfaf9snow
Card
#ffffffwhite
#100b04black
Card foreground
#100b04black
#fbfaf9snow
Popover
#ffffffwhite
#100b04black
Popover foreground
#100b04black
#fbfaf9snow
Primary
#ebd8bcwheat
#ebd8bcwheat
Primary foreground
#5b411adarkolivegreen
#5b411adarkolivegreen
Secondary
#ebc1bclightpink
#ebc1bclightpink
Secondary foreground
#5b211amaroon
#5b211amaroon
Muted
#ebd8d6gainsboro
#291614black
Muted foreground
#504949darkslategray
#b6afafdarkgray
Accent
#e7ebbcpalegoldenrod
#e7ebbcpalegoldenrod
Accent foreground
#0b0c03black
#0b0c03black
Destructive
#99320fsaddlebrown
#d14415chocolate
Destructive foreground
#fce6dfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ebd8bcwheat
#ebd8bcwheat

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.59:1AAA
Primary button6.83:1AA
Secondary button7.66:1AAA
Muted text6.40:1AA
Accent15.96:1AAA
Destructive6.22:1AA
Dark mode
Text on background18.76:1AAA
Text on card18.76:1AAA
Primary button6.83:1AA
Secondary button7.66:1AAA
Muted text7.97:1AAA
Accent15.96:1AAA
Destructive4.62:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.155 0.018 81.443);
  --muted: oklch(0.897 0.022 25.203);
  --muted-foreground: oklch(0.414 0.009 25.188);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.155 0.018 81.443);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.155 0.018 81.443);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.892 0.043 78.048);
  --primary-foreground: oklch(0.396 0.065 74.891);
  --secondary: oklch(0.846 0.05 25.579);
  --secondary-foreground: oklch(0.333 0.087 28.906);
  --accent: oklch(0.926 0.062 112.259);
  --accent-foreground: oklch(0.149 0.02 112.616);
  --destructive: oklch(0.465 0.145 37.044);
  --destructive-foreground: oklch(0.94 0.026 39.358);
  --ring: oklch(0.892 0.043 78.048);
  --chart-1: oklch(0.892 0.043 78.048);
  --chart-2: oklch(0.846 0.05 25.579);
  --chart-3: oklch(0.926 0.062 112.259);
  --chart-4: oklch(0.873 0.04 25.434);
  --chart-5: oklch(0.893 0.046 78.026);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.018 81.38);
  --foreground: oklch(0.986 0.002 78.307);
  --muted: oklch(0.226 0.032 26.739);
  --muted-foreground: oklch(0.761 0.008 25.077);
  --popover: oklch(0.155 0.018 81.38);
  --popover-foreground: oklch(0.986 0.002 78.307);
  --card: oklch(0.155 0.018 81.38);
  --card-foreground: oklch(0.986 0.002 78.307);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.892 0.043 78.048);
  --primary-foreground: oklch(0.396 0.065 74.891);
  --secondary: oklch(0.846 0.05 25.579);
  --secondary-foreground: oklch(0.333 0.087 28.906);
  --accent: oklch(0.926 0.062 112.259);
  --accent-foreground: oklch(0.149 0.02 112.616);
  --destructive: oklch(0.582 0.185 36.71);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.892 0.043 78.048);
  --chart-1: oklch(0.892 0.043 78.048);
  --chart-2: oklch(0.846 0.05 25.579);
  --chart-3: oklch(0.926 0.062 112.259);
  --chart-4: oklch(0.873 0.04 25.434);
  --chart-5: oklch(0.893 0.046 78.026);
}