Charlatan for shadcn/ui

Charlatan is a shadcn/ui theme built around a vivid red primary color (#e1091b) with vivid orange accents (#e16309). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the vivid red primary (#e1091b) on a red-tinted background (#100506).

Color palette

TokenLightDark
Background
#fdf7f7snow
#100506black
Foreground
#000000black
#fdfcfcsnow
Card
#fdf7f7snow
#100506black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fdf7f7snow
#100506black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#e1091bcrimson
#e1091bcrimson
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e10987mediumvioletred
#e10987mediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dbd7d9gainsboro
#282427darkslategray
Muted foreground
#483d43darkslategray
#c2b7besilver
Accent
#e16309chocolate
#e16309chocolate
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#bf2f12firebrick
#ec5536tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e1091bcrimson
#e1091bcrimson

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button4.92:1AA
Secondary button4.56:1AA
Muted text7.26:1AAA
Accent3.49:1AA Large
Destructive5.77:1AA
Dark mode
Text on background19.63:1AAA
Text on card19.63:1AAA
Primary button4.92:1AA
Secondary button4.56:1AA
Muted text7.85:1AAA
Accent3.49:1AA Large
Destructive3.54:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 11.389);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.882 0.005 341.149);
  --muted-foreground: oklch(0.373 0.018 342.09);
  --popover: oklch(0.981 0.006 11.389);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.006 11.389);
  --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.575 0.231 26.993);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.597 0.242 354.663);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.647 0.177 46.69);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.53 0.185 32.778);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.575 0.231 26.993);
  --chart-1: oklch(0.575 0.231 26.993);
  --chart-2: oklch(0.597 0.242 354.663);
  --chart-3: oklch(0.647 0.177 46.69);
  --chart-4: oklch(0.626 0.254 354.76);
  --chart-5: oklch(0.581 0.235 27.328);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.023 13.57);
  --foreground: oklch(0.991 0.002 11.284);
  --muted: oklch(0.267 0.007 341.611);
  --muted-foreground: oklch(0.791 0.015 341.441);
  --popover: oklch(0.133 0.023 13.57);
  --popover-foreground: oklch(0.991 0.002 11.284);
  --card: oklch(0.133 0.023 13.57);
  --card-foreground: oklch(0.991 0.002 11.284);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.575 0.231 26.993);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.597 0.242 354.663);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.647 0.177 46.69);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.648 0.193 33.211);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.575 0.231 26.993);
  --chart-1: oklch(0.575 0.231 26.993);
  --chart-2: oklch(0.597 0.242 354.663);
  --chart-3: oklch(0.647 0.177 46.69);
  --chart-4: oklch(0.626 0.254 354.76);
  --chart-5: oklch(0.581 0.235 27.328);
}