Yearly for shadcn/ui

Yearly is a shadcn/ui theme built around a muted indigo primary color (#aeafbc) with muted violet accents (#b5aebc). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#aeafbc) on an indigo-tinted background (#05050a).

Color palette

TokenLightDark
Background
#ffffffwhite
#05050ablack
Foreground
#010104black
#ffffffwhite
Card
#ffffffwhite
#05050ablack
Card foreground
#010104black
#ffffffwhite
Popover
#ffffffwhite
#05050ablack
Popover foreground
#010104black
#ffffffwhite
Primary
#aeafbcdarkgray
#aeafbcdarkgray
Primary foreground
#1a1a1fblack
#1a1a1fblack
Secondary
#aeb5bcsilver
#aeb5bcsilver
Secondary foreground
#1a1c1fblack
#1a1c1fblack
Muted
#f1f2f3whitesmoke
#0c0d0eblack
Muted foreground
#3f4346darkslategray
#b9bdc0silver
Accent
#b5aebcsilver
#b5aebcsilver
Accent foreground
#1c1a1fblack
#1c1a1fblack
Destructive
#7d1a0cmaroon
#e32e16orangered
Destructive foreground
#f9c9c3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#aeafbcdarkgray
#aeafbcdarkgray

Contrast

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

Light mode
Text on background20.84:1AAA
Text on card20.84:1AAA
Primary button7.96:1AAA
Secondary button8.27:1AAA
Muted text8.93:1AAA
Accent8.02:1AAA
Destructive6.99:1AA
Dark mode
Text on background20.33:1AAA
Text on card20.33:1AAA
Primary button7.96:1AAA
Secondary button8.27:1AAA
Muted text10.29:1AAA
Accent8.02:1AAA
Destructive4.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.071 0.021 276.775);
  --muted: oklch(0.962 0.001 244.106);
  --muted-foreground: oklch(0.379 0.007 244.321);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.071 0.021 276.775);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.071 0.021 276.775);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.757 0.018 284.375);
  --primary-foreground: oklch(0.218 0.009 284.015);
  --secondary: oklch(0.771 0.012 244.281);
  --secondary-foreground: oklch(0.226 0.006 244.427);
  --accent: oklch(0.761 0.02 306.791);
  --accent-foreground: oklch(0.221 0.01 306.541);
  --destructive: oklch(0.388 0.137 31.037);
  --destructive-foreground: oklch(0.876 0.056 26.993);
  --ring: oklch(0.757 0.018 284.375);
  --chart-1: oklch(0.757 0.018 284.375);
  --chart-2: oklch(0.771 0.012 244.281);
  --chart-3: oklch(0.761 0.02 306.791);
  --chart-4: oklch(0.795 0.011 244.255);
  --chart-5: oklch(0.752 0.024 284.22);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.014 282.038);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.157 0.002 244.25);
  --muted-foreground: oklch(0.796 0.006 244.181);
  --popover: oklch(0.119 0.014 282.038);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.119 0.014 282.038);
  --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.757 0.018 284.375);
  --primary-foreground: oklch(0.218 0.009 284.015);
  --secondary: oklch(0.771 0.012 244.281);
  --secondary-foreground: oklch(0.226 0.006 244.427);
  --accent: oklch(0.761 0.02 306.791);
  --accent-foreground: oklch(0.221 0.01 306.541);
  --destructive: oklch(0.595 0.218 31.01);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.757 0.018 284.375);
  --chart-1: oklch(0.757 0.018 284.375);
  --chart-2: oklch(0.771 0.012 244.281);
  --chart-3: oklch(0.761 0.02 306.791);
  --chart-4: oklch(0.795 0.011 244.255);
  --chart-5: oklch(0.752 0.024 284.22);
}