Good-natured for shadcn/ui

Good-natured is a shadcn/ui theme built around a blue primary color (#3466b7) with muted light blue accents (#bac6d9). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#3466b7) on a blue-tinted background (#050910).

Color palette

TokenLightDark
Background
#ffffffwhite
#050910black
Foreground
#03060dblack
#ffffffwhite
Card
#ffffffwhite
#050910black
Card foreground
#03060dblack
#ffffffwhite
Popover
#ffffffwhite
#050910black
Popover foreground
#03060dblack
#ffffffwhite
Primary
#3466b7steelblue
#3466b7steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d4dae2gainsboro
#282929darkslategray
Secondary foreground
#353f50darkslategray
#c1c2c2silver
Muted
#dcdde0gainsboro
#1f2123black
Muted foreground
#5a616ddimgray
#9299a5darkgray
Accent
#bac6d9lightsteelblue
#353940darkslategray
Accent foreground
#222d3fdarkslategray
#d0d3d8lightgrey
Destructive
#622604maroon
#f7803bcoral
Destructive foreground
#fbbf9dnavajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3466b7steelblue
#3466b7steelblue

Contrast

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

Light mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button5.63:1AA
Secondary button7.53:1AAA
Muted text4.60:1AA
Accent8.01:1AAA
Destructive7.22:1AAA
Dark mode
Text on background19.95:1AAA
Text on card19.95:1AAA
Primary button5.63:1AA
Secondary button8.18:1AAA
Muted text5.65:1AA
Accent7.68:1AAA
Destructive8.09:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.123 0.018 250.91);
  --muted: oklch(0.898 0.004 259.939);
  --muted-foreground: oklch(0.491 0.022 259.926);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.123 0.018 250.91);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.123 0.018 250.91);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.518 0.139 259.513);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.886 0.013 259.945);
  --secondary-foreground: oklch(0.366 0.031 259.836);
  --accent: oklch(0.823 0.03 259.936);
  --accent-foreground: oklch(0.296 0.035 259.739);
  --destructive: oklch(0.352 0.096 45.19);
  --destructive-foreground: oklch(0.852 0.083 51.328);
  --ring: oklch(0.518 0.139 259.513);
  --chart-1: oklch(0.518 0.139 259.513);
  --chart-2: oklch(0.886 0.013 259.945);
  --chart-3: oklch(0.823 0.03 259.936);
  --chart-4: oklch(0.91 0.01 259.944);
  --chart-5: oklch(0.517 0.146 259.545);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.017 255.009);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.245 0.006 259.945);
  --muted-foreground: oklch(0.681 0.02 259.942);
  --popover: oklch(0.138 0.017 255.009);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.017 255.009);
  --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.518 0.139 259.513);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.28 0.001 259.938);
  --secondary-foreground: oklch(0.813 0.001 259.935);
  --accent: oklch(0.345 0.013 259.936);
  --accent-foreground: oklch(0.865 0.007 259.942);
  --destructive: oklch(0.723 0.166 47.728);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.518 0.139 259.513);
  --chart-1: oklch(0.518 0.139 259.513);
  --chart-2: oklch(0.28 0.001 259.938);
  --chart-3: oklch(0.345 0.013 259.936);
  --chart-4: oklch(0.31 0.001 259.938);
  --chart-5: oklch(0.517 0.146 259.545);
}