Macaw for shadcn/ui

Macaw is a shadcn/ui theme built around a deep violet primary color (#221537) with deep green accents (#2a3715). The light mode uses a neutral background (#f9f7fd). Dark mode keeps the deep violet primary (#221537) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f9f7fdghostwhite
#000000black
Foreground
#07030cblack
#f7f5fawhitesmoke
Card
#f9f7fdghostwhite
#000000black
Card foreground
#07030cblack
#f7f5fawhitesmoke
Popover
#f9f7fdghostwhite
#000000black
Popover foreground
#07030cblack
#f7f5fawhitesmoke
Primary
#221537midnightblue
#221537midnightblue
Primary foreground
#b9a3dblightsteelblue
#b9a3dblightsteelblue
Secondary
#2a3715darkslategray
#2a3715darkslategray
Secondary foreground
#c6dba3silver
#c6dba3silver
Muted
#e8eeddbeige
#1c2211black
Muted foreground
#636b57dimgray
#a0a894darkgray
Accent
#2a3715darkslategray
#2a3715darkslategray
Accent foreground
#c6dba3silver
#c6dba3silver
Destructive
#d5120bfirebrick
#f5433dtomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#221537midnightblue
#221537midnightblue

Contrast

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

Light mode
Text on background19.26:1AAA
Text on card19.26:1AAA
Primary button7.55:1AAA
Secondary button8.47:1AAA
Muted text4.70:1AA
Accent8.47:1AAA
Destructive5.34:1AA
Dark mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button7.55:1AAA
Secondary button8.47:1AAA
Muted text6.60:1AA
Accent8.47:1AAA
Destructive3.64:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 303.531);
  --foreground: oklch(0.115 0.025 304.36);
  --muted: oklch(0.94 0.025 124.032);
  --muted-foreground: oklch(0.514 0.031 124.553);
  --popover: oklch(0.98 0.007 303.531);
  --popover-foreground: oklch(0.115 0.025 304.36);
  --card: oklch(0.98 0.007 303.531);
  --card-foreground: oklch(0.115 0.025 304.36);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.234 0.064 299.115);
  --primary-foreground: oklch(0.754 0.082 302.002);
  --secondary: oklch(0.316 0.057 126.775);
  --secondary-foreground: oklch(0.862 0.078 125.039);
  --accent: oklch(0.316 0.057 126.775);
  --accent-foreground: oklch(0.862 0.078 125.039);
  --destructive: oklch(0.553 0.22 29.22);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.234 0.064 299.115);
  --chart-1: oklch(0.234 0.064 299.115);
  --chart-2: oklch(0.316 0.057 126.775);
  --chart-3: oklch(0.316 0.057 126.775);
  --chart-4: oklch(0.355 0.066 126.913);
  --chart-5: oklch(0.232 0.068 298.705);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.973 0.007 303.54);
  --muted: oklch(0.241 0.033 125.886);
  --muted-foreground: oklch(0.719 0.029 124.237);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.973 0.007 303.54);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.973 0.007 303.54);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.234 0.064 299.115);
  --primary-foreground: oklch(0.754 0.082 302.002);
  --secondary: oklch(0.316 0.057 126.775);
  --secondary-foreground: oklch(0.862 0.078 125.039);
  --accent: oklch(0.316 0.057 126.775);
  --accent-foreground: oklch(0.862 0.078 125.039);
  --destructive: oklch(0.645 0.215 27.143);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.234 0.064 299.115);
  --chart-1: oklch(0.234 0.064 299.115);
  --chart-2: oklch(0.316 0.057 126.775);
  --chart-3: oklch(0.316 0.057 126.775);
  --chart-4: oklch(0.355 0.066 126.913);
  --chart-5: oklch(0.232 0.068 298.705);
}