Popular for shadcn/ui

Popular is a shadcn/ui theme built around a muted green primary color (#90af6e) with muted pink accents (#af6e90). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the muted green primary (#90af6e) on a neutral background (#050703).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#050703black
Foreground
#030401black
#fafcf8snow
Card
#fcfdfcwhite
#050703black
Card foreground
#030401black
#fafcf8snow
Popover
#fcfdfcwhite
#050703black
Popover foreground
#030401black
#fafcf8snow
Primary
#90af6edarkseagreen
#90af6edarkseagreen
Primary foreground
#000000black
#000000black
Secondary
#6e90aflightslategray
#6e90aflightslategray
Secondary foreground
#000000black
#000000black
Muted
#e7ebeflavender
#101518black
Muted foreground
#45474adarkslategray
#b5b8basilver
Accent
#af6e90rosybrown
#af6e90rosybrown
Accent foreground
#000000black
#000000black
Destructive
#c41812firebrick
#eb2a24crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#90af6edarkseagreen
#90af6edarkseagreen

Contrast

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

Light mode
Text on background20.20:1AAA
Text on card20.20:1AAA
Primary button8.56:1AAA
Secondary button6.27:1AA
Muted text7.75:1AAA
Accent5.47:1AA
Destructive6.02:1AA
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button8.56:1AAA
Secondary button6.27:1AA
Muted text9.23:1AAA
Accent5.47:1AA
Destructive4.30:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 127.815);
  --foreground: oklch(0.102 0.019 126.523);
  --muted: oklch(0.937 0.007 246.053);
  --muted-foreground: oklch(0.398 0.006 246.141);
  --popover: oklch(0.994 0.002 127.815);
  --popover-foreground: oklch(0.102 0.019 126.523);
  --card: oklch(0.994 0.002 127.815);
  --card-foreground: oklch(0.102 0.019 126.523);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.715 0.096 129.537);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.639 0.061 247.091);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.619 0.093 347.863);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.524 0.203 28.943);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.715 0.096 129.537);
  --chart-1: oklch(0.715 0.096 129.537);
  --chart-2: oklch(0.639 0.061 247.091);
  --chart-3: oklch(0.619 0.093 347.863);
  --chart-4: oklch(0.665 0.056 246.953);
  --chart-5: oklch(0.723 0.105 129.714);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.015 126.944);
  --foreground: oklch(0.988 0.005 127.849);
  --muted: oklch(0.191 0.01 246.585);
  --muted-foreground: oklch(0.78 0.005 246.042);
  --popover: oklch(0.124 0.015 126.944);
  --popover-foreground: oklch(0.988 0.005 127.849);
  --card: oklch(0.124 0.015 126.944);
  --card-foreground: oklch(0.988 0.005 127.849);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.715 0.096 129.537);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.639 0.061 247.091);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.619 0.093 347.863);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.606 0.226 28.465);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.715 0.096 129.537);
  --chart-1: oklch(0.715 0.096 129.537);
  --chart-2: oklch(0.639 0.061 247.091);
  --chart-3: oklch(0.619 0.093 347.863);
  --chart-4: oklch(0.665 0.056 246.953);
  --chart-5: oklch(0.723 0.105 129.714);
}