Quarterly for shadcn/ui

Quarterly is a shadcn/ui theme built around a green primary color (#a7d973) with pink accents (#d973a7). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#a7d973) on a neutral background (#050703).

Color palette

TokenLightDark
Background
#ffffffwhite
#050703black
Foreground
#0d1504black
#fcfdfcwhite
Card
#fcfcfcsnow
#080b05black
Card foreground
#0a1103black
#ffffffwhite
Popover
#ffffffwhite
#050703black
Popover foreground
#0d1504black
#fcfdfcwhite
Primary
#a7d973darkkhaki
#a7d973darkkhaki
Primary foreground
#0d1405black
#0d1405black
Secondary
#73a7d9cornflowerblue
#73a7d9cornflowerblue
Secondary foreground
#050d14black
#050d14black
Muted
#cbd9e6gainsboro
#192734darkslategray
Muted foreground
#595f64dimgray
#9ba1a6darkgray
Accent
#d973a7palevioletred
#d973a7palevioletred
Accent foreground
#14050dblack
#14050dblack
Destructive
#9f2209firebrick
#f1340eorangered
Destructive foreground
#fde3ddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a7d973darkkhaki
#a7d973darkkhaki

Contrast

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

Light mode
Text on background18.64:1AAA
Text on card18.77:1AAA
Primary button11.42:1AAA
Secondary button7.71:1AAA
Muted text4.51:1AA
Accent6.57:1AA
Destructive6.34:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.84:1AAA
Primary button11.42:1AAA
Secondary button7.71:1AAA
Muted text5.84:1AA
Accent6.57:1AA
Destructive4.01:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.183 0.036 129.402);
  --muted: oklch(0.879 0.023 246.269);
  --muted-foreground: oklch(0.481 0.011 246.239);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.183 0.036 129.402);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.166 0.031 128.285);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.827 0.141 130.162);
  --primary-foreground: oklch(0.179 0.031 129.318);
  --secondary: oklch(0.712 0.091 247.592);
  --secondary-foreground: oklch(0.155 0.02 245.07);
  --accent: oklch(0.686 0.14 349.176);
  --accent-foreground: oklch(0.148 0.031 347.915);
  --destructive: oklch(0.46 0.164 32.593);
  --destructive-foreground: oklch(0.935 0.03 31.136);
  --ring: oklch(0.827 0.141 130.162);
  --chart-1: oklch(0.827 0.141 130.162);
  --chart-2: oklch(0.712 0.091 247.592);
  --chart-3: oklch(0.686 0.14 349.176);
  --chart-4: oklch(0.737 0.083 247.351);
  --chart-5: oklch(0.833 0.148 130.286);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.013 127.033);
  --foreground: oklch(0.993 0.001 127.805);
  --muted: oklch(0.265 0.031 247.405);
  --muted-foreground: oklch(0.705 0.01 246.136);
  --popover: oklch(0.123 0.013 127.033);
  --popover-foreground: oklch(0.993 0.001 127.805);
  --card: oklch(0.141 0.015 127.053);
  --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.827 0.141 130.162);
  --primary-foreground: oklch(0.179 0.031 129.318);
  --secondary: oklch(0.712 0.091 247.592);
  --secondary-foreground: oklch(0.155 0.02 245.07);
  --accent: oklch(0.686 0.14 349.176);
  --accent-foreground: oklch(0.148 0.031 347.915);
  --destructive: oklch(0.623 0.228 32.317);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.827 0.141 130.162);
  --chart-1: oklch(0.827 0.141 130.162);
  --chart-2: oklch(0.712 0.091 247.592);
  --chart-3: oklch(0.686 0.14 349.176);
  --chart-4: oklch(0.737 0.083 247.351);
  --chart-5: oklch(0.833 0.148 130.286);
}