Mare for shadcn/ui

Mare is a shadcn/ui theme built around a muted orange primary color (#b3a798) with muted violet accents (#a798b3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted orange primary (#b3a798) on a neutral background (#080502).

Color palette

TokenLightDark
Background
#ffffffwhite
#080502black
Foreground
#040301black
#fbfaf9snow
Card
#fcfcfcsnow
#0c0803black
Card foreground
#000000black
#fdfcfcsnow
Popover
#ffffffwhite
#080502black
Popover foreground
#040301black
#fbfaf9snow
Primary
#b3a798darkgray
#b3a798darkgray
Primary foreground
#0f0d0bblack
#0f0d0bblack
Secondary
#98b3a7darkgray
#98b3a7darkgray
Secondary foreground
#0b0f0dblack
#0b0f0dblack
Muted
#e2e9e6gainsboro
#161d1ablack
Muted foreground
#56615cdimgray
#9ea9a4darkgray
Accent
#a798b3darkgray
#a798b3darkgray
Accent foreground
#0d0b0fblack
#0d0b0fblack
Destructive
#dd4c08orangered
#f86f30tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b3a798darkgray
#b3a798darkgray

Contrast

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

Light mode
Text on background20.61:1AAA
Text on card20.54:1AAA
Primary button8.22:1AAA
Secondary button8.59:1AAA
Muted text5.23:1AA
Accent7.28:1AAA
Destructive4.10:1AA Large
Dark mode
Text on background19.46:1AAA
Text on card19.48:1AAA
Primary button8.22:1AAA
Secondary button8.59:1AAA
Muted text7.06:1AAA
Accent7.28:1AAA
Destructive7.30:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.096 0.011 80.809);
  --muted: oklch(0.928 0.009 167.532);
  --muted-foreground: oklch(0.483 0.016 166.882);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.096 0.011 80.809);
  --card: oklch(0.992 0 161.565);
  --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.735 0.025 72.929);
  --primary-foreground: oklch(0.16 0.005 72.942);
  --secondary: oklch(0.743 0.034 166.482);
  --secondary-foreground: oklch(0.162 0.007 166.536);
  --accent: oklch(0.702 0.042 309.886);
  --accent-foreground: oklch(0.153 0.009 309.909);
  --destructive: oklch(0.611 0.192 39.057);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.735 0.025 72.929);
  --chart-1: oklch(0.735 0.025 72.929);
  --chart-2: oklch(0.743 0.034 166.482);
  --chart-3: oklch(0.702 0.042 309.886);
  --chart-4: oklch(0.766 0.031 166.646);
  --chart-5: oklch(0.737 0.03 72.859);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.013 80.809);
  --foreground: oklch(0.985 0.001 73.208);
  --muted: oklch(0.223 0.013 166.084);
  --muted-foreground: oklch(0.724 0.014 167.257);
  --popover: oklch(0.12 0.013 80.809);
  --popover-foreground: oklch(0.985 0.001 73.208);
  --card: oklch(0.138 0.015 80.182);
  --card-foreground: oklch(0.993 0.001 73.214);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.735 0.025 72.929);
  --primary-foreground: oklch(0.16 0.005 72.942);
  --secondary: oklch(0.743 0.034 166.482);
  --secondary-foreground: oklch(0.162 0.007 166.536);
  --accent: oklch(0.702 0.042 309.886);
  --accent-foreground: oklch(0.153 0.009 309.909);
  --destructive: oklch(0.699 0.183 42.69);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.735 0.025 72.929);
  --chart-1: oklch(0.735 0.025 72.929);
  --chart-2: oklch(0.743 0.034 166.482);
  --chart-3: oklch(0.702 0.042 309.886);
  --chart-4: oklch(0.766 0.031 166.646);
  --chart-5: oklch(0.737 0.03 72.859);
}