Good for shadcn/ui

Good is a shadcn/ui theme built around an indigo primary color (#453974) with muted light indigo accents (#e9e7ee). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the indigo primary (#453974) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#f9f8fcghostwhite
#040307black
Foreground
#030208black
#ffffffwhite
Card
#f9f8fcghostwhite
#040307black
Card foreground
#030208black
#ffffffwhite
Popover
#f9f8fcghostwhite
#040307black
Popover foreground
#030208black
#ffffffwhite
Primary
#453974darkslateblue
#453974darkslateblue
Primary foreground
#edeaf5lavender
#edeaf5lavender
Secondary
#e9e7eelavender
#2d2d2fdarkslategray
Secondary foreground
#4a455fdarkslategray
#c6c6c8silver
Muted
#e9e7f4lavender
#0e0b18black
Muted foreground
#605d6fdimgray
#9390a2lightslategray
Accent
#e9e7eelavender
#2d2d2fdarkslategray
Accent foreground
#4a455fdarkslategray
#c6c6c8silver
Destructive
#9d3e07saddlebrown
#f66d1echocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#453974darkslateblue
#453974darkslateblue

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button8.43:1AAA
Secondary button7.43:1AAA
Muted text5.21:1AA
Accent7.43:1AAA
Destructive6.75:1AA
Dark mode
Text on background20.55:1AAA
Text on card20.55:1AAA
Primary button8.43:1AAA
Secondary button8.05:1AAA
Muted text6.24:1AA
Accent8.05:1AAA
Destructive7.10:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.005 295.476);
  --foreground: oklch(0.097 0.022 294.539);
  --muted: oklch(0.933 0.017 295.234);
  --muted-foreground: oklch(0.488 0.029 294.455);
  --popover: oklch(0.98 0.005 295.476);
  --popover-foreground: oklch(0.097 0.022 294.539);
  --card: oklch(0.98 0.005 295.476);
  --card-foreground: oklch(0.097 0.022 294.539);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.388 0.097 290.321);
  --primary-foreground: oklch(0.943 0.014 295.304);
  --secondary: oklch(0.932 0.009 295.404);
  --secondary-foreground: oklch(0.405 0.044 293.52);
  --accent: oklch(0.932 0.009 295.404);
  --accent-foreground: oklch(0.405 0.044 293.52);
  --destructive: oklch(0.487 0.139 43.487);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.388 0.097 290.321);
  --chart-1: oklch(0.388 0.097 290.321);
  --chart-2: oklch(0.932 0.009 295.404);
  --chart-3: oklch(0.932 0.009 295.404);
  --chart-4: oklch(0.958 0.005 295.473);
  --chart-5: oklch(0.383 0.106 289.684);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.014 294.961);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.162 0.027 292.313);
  --muted-foreground: oklch(0.662 0.027 294.817);
  --popover: oklch(0.104 0.014 294.961);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.104 0.014 294.961);
  --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.388 0.097 290.321);
  --primary-foreground: oklch(0.943 0.014 295.304);
  --secondary: oklch(0.298 0.003 295.374);
  --secondary-foreground: oklch(0.827 0.003 295.509);
  --accent: oklch(0.298 0.003 295.374);
  --accent-foreground: oklch(0.827 0.003 295.509);
  --destructive: oklch(0.692 0.187 44.997);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.388 0.097 290.321);
  --chart-1: oklch(0.388 0.097 290.321);
  --chart-2: oklch(0.298 0.003 295.374);
  --chart-3: oklch(0.298 0.003 295.374);
  --chart-4: oklch(0.328 0.004 295.367);
  --chart-5: oklch(0.383 0.106 289.684);
}