Better for shadcn/ui

Better is a shadcn/ui theme built around a vivid green primary color (#9ff966) with vivid pink accents (#f9669f). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the vivid green primary (#9ff966) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#f9fdf7mintcream
#020302black
Foreground
#060d02black
#f9fcf8mintcream
Card
#f6fcf3whitesmoke
#050704black
Card foreground
#040902black
#fcfdfcwhite
Popover
#f6fcf3whitesmoke
#050704black
Popover foreground
#040902black
#fcfdfcwhite
Primary
#9ff966lightgreen
#9ff966lightgreen
Primary foreground
#122c02black
#122c02black
Secondary
#669ff9cornflowerblue
#669ff9cornflowerblue
Secondary foreground
#02122cblack
#02122cblack
Muted
#d6deebgainsboro
#141c29black
Muted foreground
#646668dimgray
#97999bdarkgray
Accent
#f9669fhotpink
#f9669fhotpink
Accent foreground
#2c0212black
#2c0212black
Destructive
#c21e0ffirebrick
#f04c3dtomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9ff966lightgreen
#9ff966lightgreen

Contrast

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

Light mode
Text on background19.15:1AAA
Text on card19.27:1AAA
Primary button11.73:1AAA
Secondary button7.00:1AAA
Muted text4.25:1AA Large
Accent6.63:1AA
Destructive6.00:1AA
Dark mode
Text on background19.94:1AAA
Text on card19.87:1AAA
Primary button11.73:1AAA
Secondary button7.00:1AAA
Muted text5.97:1AA
Accent6.63:1AA
Destructive3.61:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 133.049);
  --foreground: oklch(0.147 0.029 131.468);
  --muted: oklch(0.898 0.02 259.945);
  --muted-foreground: oklch(0.508 0.004 259.942);
  --popover: oklch(0.984 0.014 133.081);
  --popover-foreground: oklch(0.128 0.025 131.167);
  --card: oklch(0.984 0.014 133.081);
  --card-foreground: oklch(0.128 0.025 131.167);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.897 0.201 135.219);
  --primary-foreground: oklch(0.263 0.075 135.814);
  --secondary: oklch(0.703 0.146 259.51);
  --secondary-foreground: oklch(0.186 0.059 256.954);
  --accent: oklch(0.711 0.187 359.094);
  --accent-foreground: oklch(0.193 0.073 1.945);
  --destructive: oklch(0.523 0.199 30.09);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.897 0.201 135.219);
  --chart-1: oklch(0.897 0.201 135.219);
  --chart-2: oklch(0.703 0.146 259.51);
  --chart-3: oklch(0.711 0.187 359.094);
  --chart-4: oklch(0.731 0.132 259.564);
  --chart-5: oklch(0.902 0.206 135.302);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.009 132.158);
  --foreground: oklch(0.987 0.005 133.022);
  --muted: oklch(0.226 0.029 259.714);
  --muted-foreground: oklch(0.681 0.004 259.94);
  --popover: oklch(0.121 0.011 132.158);
  --popover-foreground: oklch(0.994 0.003 133.003);
  --card: oklch(0.121 0.011 132.158);
  --card-foreground: oklch(0.994 0.003 133.003);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.897 0.201 135.219);
  --primary-foreground: oklch(0.263 0.075 135.814);
  --secondary: oklch(0.703 0.146 259.51);
  --secondary-foreground: oklch(0.186 0.059 256.954);
  --accent: oklch(0.711 0.187 359.094);
  --accent-foreground: oklch(0.193 0.073 1.945);
  --destructive: oklch(0.646 0.204 29.081);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.897 0.201 135.219);
  --chart-1: oklch(0.897 0.201 135.219);
  --chart-2: oklch(0.703 0.146 259.51);
  --chart-3: oklch(0.711 0.187 359.094);
  --chart-4: oklch(0.731 0.132 259.564);
  --chart-5: oklch(0.902 0.206 135.302);
}