Charlatan for shadcn/ui

Charlatan is a shadcn/ui theme built around a green primary color (#73b589) with teal accents (#73b5aa). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#73b589) on a green-tinted background (#041008).

Color palette

TokenLightDark
Background
#ffffffwhite
#041008black
Foreground
#05140ablack
#ffffffwhite
Card
#ffffffwhite
#041008black
Card foreground
#05140ablack
#ffffffwhite
Popover
#ffffffwhite
#041008black
Popover foreground
#05140ablack
#ffffffwhite
Primary
#73b589darkseagreen
#73b589darkseagreen
Primary foreground
#000000black
#000000black
Secondary
#7eb573darkseagreen
#7eb573darkseagreen
Secondary foreground
#000000black
#000000black
Muted
#e6f1e4beige
#101b0eblack
Muted foreground
#3f413edarkslategray
#bec1besilver
Accent
#73b5aamediumaquamarine
#73b5aamediumaquamarine
Accent foreground
#000000black
#000000black
Destructive
#ad2d10firebrick
#ea401aorangered
Destructive foreground
#fef3f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#73b589darkseagreen
#73b589darkseagreen

Contrast

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

Light mode
Text on background18.90:1AAA
Text on card18.90:1AAA
Primary button8.70:1AAA
Secondary button8.74:1AAA
Muted text8.88:1AAA
Accent8.92:1AAA
Destructive6.13:1AA
Dark mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button8.70:1AAA
Secondary button8.74:1AAA
Muted text9.74:1AAA
Accent8.92:1AAA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.174 0.03 154.228);
  --muted: oklch(0.947 0.021 140.496);
  --muted-foreground: oklch(0.372 0.005 140.51);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.174 0.03 154.228);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.174 0.03 154.228);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.717 0.094 154.192);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.718 0.11 140.343);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.726 0.07 182.607);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.495 0.169 33.522);
  --destructive-foreground: oklch(0.973 0.012 32.664);
  --ring: oklch(0.717 0.094 154.192);
  --chart-1: oklch(0.717 0.094 154.192);
  --chart-2: oklch(0.718 0.11 140.343);
  --chart-3: oklch(0.726 0.07 182.607);
  --chart-4: oklch(0.738 0.102 140.351);
  --chart-5: oklch(0.722 0.102 153.898);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.025 155.604);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.207 0.031 140.346);
  --muted-foreground: oklch(0.807 0.004 140.523);
  --popover: oklch(0.158 0.025 155.604);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.158 0.025 155.604);
  --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.717 0.094 154.192);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.718 0.11 140.343);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.726 0.07 182.607);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.621 0.211 33.54);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.717 0.094 154.192);
  --chart-1: oklch(0.717 0.094 154.192);
  --chart-2: oklch(0.718 0.11 140.343);
  --chart-3: oklch(0.726 0.07 182.607);
  --chart-4: oklch(0.738 0.102 140.351);
  --chart-5: oklch(0.722 0.102 153.898);
}