Savage for shadcn/ui

Savage is a shadcn/ui theme built around a muted light purple primary color (#d7ced9) with muted light purple accents (#d9ced6). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted light purple primary (#d7ced9) on a neutral background (#030104).

Color palette

TokenLightDark
Background
#fdfbfewhite
#030104black
Foreground
#070109black
#ffffffwhite
Card
#fdfbfewhite
#030104black
Card foreground
#070109black
#ffffffwhite
Popover
#fdfbfewhite
#030104black
Popover foreground
#070109black
#ffffffwhite
Primary
#d7ced9lightgrey
#d7ced9lightgrey
Primary foreground
#3f3442darkslategray
#3f3442darkslategray
Secondary
#d2ced9lightgrey
#d2ced9lightgrey
Secondary foreground
#383442darkslategray
#383442darkslategray
Muted
#e6e1eflavender
#15101eblack
Muted foreground
#464054darkslategray
#b1abbfdarkgray
Accent
#d9ced6lightgrey
#d9ced6lightgrey
Accent foreground
#42343ddarkslategray
#42343ddarkslategray
Destructive
#d4520cchocolate
#f26e26chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d7ced9lightgrey
#d7ced9lightgrey

Contrast

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

Light mode
Text on background20.08:1AAA
Text on card20.08:1AAA
Primary button7.72:1AAA
Secondary button7.82:1AAA
Muted text7.73:1AAA
Accent7.69:1AAA
Destructive4.18:1AA Large
Dark mode
Text on background20.75:1AAA
Text on card20.75:1AAA
Primary button7.72:1AAA
Secondary button7.82:1AAA
Muted text8.39:1AAA
Accent7.69:1AAA
Destructive7.03:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.004 319.995);
  --foreground: oklch(0.103 0.032 322.437);
  --muted: oklch(0.918 0.018 300.437);
  --muted-foreground: oklch(0.385 0.036 299.222);
  --popover: oklch(0.991 0.004 319.995);
  --popover-foreground: oklch(0.103 0.032 322.437);
  --card: oklch(0.991 0.004 319.995);
  --card-foreground: oklch(0.103 0.032 322.437);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.863 0.017 320.009);
  --primary-foreground: oklch(0.341 0.029 320.063);
  --secondary: oklch(0.859 0.015 300.487);
  --secondary-foreground: oklch(0.334 0.025 299.518);
  --accent: oklch(0.863 0.015 336.894);
  --accent-foreground: oklch(0.343 0.026 337.952);
  --destructive: oklch(0.604 0.178 42.055);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.863 0.017 320.009);
  --chart-1: oklch(0.863 0.017 320.009);
  --chart-2: oklch(0.859 0.015 300.487);
  --chart-3: oklch(0.863 0.015 336.894);
  --chart-4: oklch(0.884 0.012 300.545);
  --chart-5: oklch(0.861 0.021 320.014);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.085 0.017 321.612);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.187 0.027 298.271);
  --muted-foreground: oklch(0.752 0.03 300.106);
  --popover: oklch(0.085 0.017 321.612);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.085 0.017 321.612);
  --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.863 0.017 320.009);
  --primary-foreground: oklch(0.341 0.029 320.063);
  --secondary: oklch(0.859 0.015 300.487);
  --secondary-foreground: oklch(0.334 0.025 299.518);
  --accent: oklch(0.863 0.015 336.894);
  --accent-foreground: oklch(0.343 0.026 337.952);
  --destructive: oklch(0.688 0.181 44.586);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.863 0.017 320.009);
  --chart-1: oklch(0.863 0.017 320.009);
  --chart-2: oklch(0.859 0.015 300.487);
  --chart-3: oklch(0.863 0.015 336.894);
  --chart-4: oklch(0.884 0.012 300.545);
  --chart-5: oklch(0.861 0.021 320.014);
}