Catppuccin Macchiato for shadcn/ui

Catppuccin Macchiato is a shadcn/ui theme built around a vivid light violet primary color (#c8a2f6) with muted blue accents (#414668). The light mode uses a blue-tinted background (#232638). Dark mode keeps the vivid light violet primary (#c8a2f6) on a blue-tinted background (#232638).

Color palette

TokenLightDark
Background
#232638darkslategray
#232638darkslategray
Foreground
#ccd5f5gainsboro
#ccd5f5gainsboro
Card
#1f2232darkslategray
#1f2232darkslategray
Card foreground
#e1e6f9lavender
#e1e6f9lavender
Popover
#1d202fdarkslategray
#1d202fdarkslategray
Popover foreground
#f6f8fdghostwhite
#f6f8fdghostwhite
Primary
#c8a2f6plum
#c8a2f6plum
Primary foreground
#2f095dmidnightblue
#2f095dmidnightblue
Secondary
#3e2d53darkslategray
#3e2d53darkslategray
Secondary foreground
#d8cde4gainsboro
#d8cde4gainsboro
Muted
#31333fdarkslategray
#31333fdarkslategray
Muted foreground
#afb1c0silver
#afb1c0silver
Accent
#414668darkslategray
#414668darkslategray
Accent foreground
#e9eaf1lavender
#e9eaf1lavender
Destructive
#e21612red
#e21612red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#333542darkslategray
#333542darkslategray
Input
#3a3c4bdarkslategray
#3a3c4bdarkslategray
Ring
#c8a2f6plum
#c8a2f6plum

Contrast

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

Light mode
Text on background10.21:1AAA
Text on card12.66:1AAA
Primary button7.53:1AAA
Secondary button8.11:1AAA
Muted text5.87:1AA
Accent7.62:1AAA
Destructive4.80:1AA
Dark mode
Text on background10.21:1AAA
Text on card12.66:1AAA
Primary button7.53:1AAA
Secondary button8.11:1AAA
Muted text5.87:1AA
Accent7.62:1AAA
Destructive4.80:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.275 0.034 277.163);
  --foreground: oklch(0.875 0.046 273.2);
  --muted: oklch(0.325 0.021 278.293);
  --muted-foreground: oklch(0.764 0.021 278.908);
  --popover: oklch(0.248 0.029 277.284);
  --popover-foreground: oklch(0.979 0.007 273.779);
  --card: oklch(0.257 0.031 277.24);
  --card-foreground: oklch(0.927 0.026 273.525);
  --border: oklch(0.333 0.023 278.179);
  --input: oklch(0.36 0.026 278.148);
  --primary: oklch(0.776 0.124 304.327);
  --primary-foreground: oklch(0.268 0.133 295.955);
  --secondary: oklch(0.334 0.068 303.657);
  --secondary-foreground: oklch(0.864 0.033 305.939);
  --accent: oklch(0.404 0.057 276.829);
  --accent-foreground: oklch(0.939 0.01 279.185);
  --destructive: oklch(0.58 0.23 28.824);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.776 0.124 304.327);
  --chart-1: oklch(0.776 0.124 304.327);
  --chart-2: oklch(0.334 0.068 303.657);
  --chart-3: oklch(0.404 0.057 276.829);
  --chart-4: oklch(0.359 0.075 303.591);
  --chart-5: oklch(0.774 0.128 304.24);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.275 0.034 277.163);
  --foreground: oklch(0.875 0.046 273.2);
  --muted: oklch(0.325 0.021 278.293);
  --muted-foreground: oklch(0.764 0.021 278.908);
  --popover: oklch(0.248 0.029 277.284);
  --popover-foreground: oklch(0.979 0.007 273.779);
  --card: oklch(0.257 0.031 277.24);
  --card-foreground: oklch(0.927 0.026 273.525);
  --border: oklch(0.333 0.023 278.179);
  --input: oklch(0.36 0.026 278.148);
  --primary: oklch(0.776 0.124 304.327);
  --primary-foreground: oklch(0.268 0.133 295.955);
  --secondary: oklch(0.334 0.068 303.657);
  --secondary-foreground: oklch(0.864 0.033 305.939);
  --accent: oklch(0.404 0.057 276.829);
  --accent-foreground: oklch(0.939 0.01 279.185);
  --destructive: oklch(0.58 0.23 28.824);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.776 0.124 304.327);
  --chart-1: oklch(0.776 0.124 304.327);
  --chart-2: oklch(0.334 0.068 303.657);
  --chart-3: oklch(0.404 0.057 276.829);
  --chart-4: oklch(0.359 0.075 303.591);
  --chart-5: oklch(0.774 0.128 304.24);
}