Good for shadcn/ui

Good is a shadcn/ui theme built around a vivid violet primary color (#5010da) with vivid green accents (#10da50). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid violet primary (#5010da) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#020104black
Foreground
#000000black
#f7f5f9whitesmoke
Card
#fcfcfdwhite
#020104black
Card foreground
#000000black
#f7f5f9whitesmoke
Popover
#fcfcfdwhite
#020104black
Popover foreground
#000000black
#f7f5f9whitesmoke
Primary
#5010dablueviolet
#5010dablueviolet
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#da5010chocolate
#da5010chocolate
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e8ded9gainsboro
#261c17black
Muted foreground
#4c3f38darkslategray
#c7b9b3silver
Accent
#10da50limegreen
#10da50limegreen
Accent foreground
#021c0ablack
#021c0ablack
Destructive
#cb0e01firebrick
#e41001red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5010dablueviolet
#5010dablueviolet

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card20.43:1AAA
Primary button8.62:1AAA
Secondary button4.07:1AA Large
Muted text7.63:1AAA
Accent9.53:1AAA
Destructive5.82:1AA
Dark mode
Text on background19.17:1AAA
Text on card19.17:1AAA
Primary button8.62:1AAA
Secondary button4.07:1AA Large
Muted text8.74:1AAA
Accent9.53:1AAA
Destructive4.78:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 300.727);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.906 0.013 46.701);
  --muted-foreground: oklch(0.379 0.022 46.295);
  --popover: oklch(0.991 0.002 300.727);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.002 300.727);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.448 0.257 282.788);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.612 0.185 40.182);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.775 0.23 146.674);
  --accent-foreground: oklch(0.202 0.049 151.707);
  --destructive: oklch(0.532 0.213 29.91);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.448 0.257 282.788);
  --chart-1: oklch(0.448 0.257 282.788);
  --chart-2: oklch(0.612 0.185 40.182);
  --chart-3: oklch(0.775 0.23 146.674);
  --chart-4: oklch(0.641 0.194 40.089);
  --chart-5: oklch(0.45 0.262 281.914);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.082 0.013 301.041);
  --foreground: oklch(0.973 0.005 300.676);
  --muted: oklch(0.237 0.018 46.135);
  --muted-foreground: oklch(0.795 0.018 46.614);
  --popover: oklch(0.082 0.013 301.041);
  --popover-foreground: oklch(0.973 0.005 300.676);
  --card: oklch(0.082 0.013 301.041);
  --card-foreground: oklch(0.973 0.005 300.676);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.448 0.257 282.788);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.612 0.185 40.182);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.775 0.23 146.674);
  --accent-foreground: oklch(0.202 0.049 151.707);
  --destructive: oklch(0.581 0.234 29.837);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.448 0.257 282.788);
  --chart-1: oklch(0.448 0.257 282.788);
  --chart-2: oklch(0.612 0.185 40.182);
  --chart-3: oklch(0.775 0.23 146.674);
  --chart-4: oklch(0.641 0.194 40.089);
  --chart-5: oklch(0.45 0.262 281.914);
}