Lovely for shadcn/ui

Lovely is a shadcn/ui theme built around a green primary color (#7cdea4) with muted light green accents (#cbdcd2). The light mode uses a neutral background (#f6fdf9). Dark mode keeps the green primary (#7cdea4) on a green-tinted background (#041009).

Color palette

TokenLightDark
Background
#f6fdf9mintcream
#041009black
Foreground
#03170bblack
#fcfdfcwhite
Card
#f6fdf9mintcream
#041009black
Card foreground
#03170bblack
#fcfdfcwhite
Popover
#f6fdf9mintcream
#041009black
Popover foreground
#03170bblack
#fcfdfcwhite
Primary
#7cdea4mediumaquamarine
#7cdea4mediumaquamarine
Primary foreground
#082112black
#082112black
Secondary
#e2e9e5gainsboro
#141a16black
Secondary foreground
#42574adarkslategray
#a5bbaedarkgray
Muted
#cce5d6gainsboro
#1a3324darkslategray
Muted foreground
#5c7064dimgray
#8fa397darkseagreen
Accent
#cbdcd2lightgrey
#1d2f24darkslategray
Accent foreground
#304638darkslategray
#b1cebcsilver
Destructive
#cf1a02firebrick
#fd4830tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7cdea4mediumaquamarine
#7cdea4mediumaquamarine

Contrast

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

Light mode
Text on background18.03:1AAA
Text on card18.03:1AAA
Primary button10.41:1AAA
Secondary button6.31:1AA
Muted text3.99:1AA Large
Accent7.14:1AAA
Destructive5.52:1AA
Dark mode
Text on background19.01:1AAA
Text on card19.01:1AAA
Primary button10.41:1AAA
Secondary button8.66:1AAA
Muted text5.10:1AA
Accent8.35:1AAA
Destructive3.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 160.024);
  --foreground: oklch(0.182 0.038 156.096);
  --muted: oklch(0.9 0.034 159.348);
  --muted-foreground: oklch(0.525 0.031 158.809);
  --popover: oklch(0.989 0.009 160.024);
  --popover-foreground: oklch(0.182 0.038 156.096);
  --card: oklch(0.989 0.009 160.024);
  --card-foreground: oklch(0.182 0.038 156.096);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.826 0.125 156.005);
  --primary-foreground: oklch(0.222 0.042 154.597);
  --secondary: oklch(0.928 0.01 159.997);
  --secondary-foreground: oklch(0.436 0.034 158.314);
  --accent: oklch(0.879 0.022 159.643);
  --accent-foreground: oklch(0.37 0.036 157.745);
  --destructive: oklch(0.545 0.213 30.723);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.826 0.125 156.005);
  --chart-1: oklch(0.826 0.125 156.005);
  --chart-2: oklch(0.928 0.01 159.997);
  --chart-3: oklch(0.879 0.022 159.643);
  --chart-4: oklch(0.949 0.007 160.073);
  --chart-5: oklch(0.831 0.131 155.797);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.024 158.482);
  --foreground: oklch(0.993 0.001 160.216);
  --muted: oklch(0.295 0.042 156.321);
  --muted-foreground: oklch(0.697 0.029 159.245);
  --popover: oklch(0.158 0.024 158.482);
  --popover-foreground: oklch(0.993 0.001 160.216);
  --card: oklch(0.158 0.024 158.482);
  --card-foreground: oklch(0.993 0.001 160.216);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.826 0.125 156.005);
  --primary-foreground: oklch(0.222 0.042 154.597);
  --secondary: oklch(0.21 0.012 158.825);
  --secondary-foreground: oklch(0.771 0.031 159.291);
  --accent: oklch(0.286 0.03 157.502);
  --accent-foreground: oklch(0.824 0.04 159.077);
  --destructive: oklch(0.661 0.221 30.933);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.826 0.125 156.005);
  --chart-1: oklch(0.826 0.125 156.005);
  --chart-2: oklch(0.21 0.012 158.825);
  --chart-3: oklch(0.286 0.03 157.502);
  --chart-4: oklch(0.245 0.016 158.677);
  --chart-5: oklch(0.831 0.131 155.797);
}