Yearly for shadcn/ui

Yearly is a shadcn/ui theme built around a deep indigo primary color (#110e25) with deep green accents (#22250e). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the deep indigo primary (#110e25) on an indigo-tinted background (#07060f).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#07060fblack
Foreground
#060510black
#fcfcfdwhite
Card
#fbfbfeghostwhite
#07060fblack
Card foreground
#060510black
#fcfcfdwhite
Popover
#fbfbfeghostwhite
#07060fblack
Popover foreground
#060510black
#fcfcfdwhite
Primary
#110e25black
#110e25black
Primary foreground
#998fd6mediumpurple
#998fd6mediumpurple
Secondary
#22250eblack
#22250eblack
Secondary foreground
#a9bb44yellowgreen
#a9bb44yellowgreen
Muted
#e4e7d0gainsboro
#2c2f18darkslategray
Muted foreground
#4b4b48darkslategray
#b6b7b4silver
Accent
#22250eblack
#22250eblack
Accent foreground
#a9bb44yellowgreen
#a9bb44yellowgreen
Destructive
#c53e11firebrick
#ec5522chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#110e25black
#110e25black

Contrast

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

Light mode
Text on background19.61:1AAA
Text on card19.61:1AAA
Primary button6.52:1AA
Secondary button7.34:1AAA
Muted text6.93:1AA
Accent7.34:1AAA
Destructive5.15:1AA
Dark mode
Text on background19.68:1AAA
Text on card19.68:1AAA
Primary button6.52:1AA
Secondary button7.34:1AAA
Muted text6.79:1AA
Accent7.34:1AAA
Destructive3.57:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 293.231);
  --foreground: oklch(0.124 0.026 290.815);
  --muted: oklch(0.919 0.032 113.944);
  --muted-foreground: oklch(0.413 0.005 113.526);
  --popover: oklch(0.989 0.004 293.231);
  --popover-foreground: oklch(0.124 0.026 290.815);
  --card: oklch(0.989 0.004 293.231);
  --card-foreground: oklch(0.124 0.026 290.815);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.181 0.048 287.546);
  --primary-foreground: oklch(0.686 0.105 290.226);
  --secondary: oklch(0.256 0.04 116.378);
  --secondary-foreground: oklch(0.756 0.145 117.262);
  --accent: oklch(0.256 0.04 116.378);
  --accent-foreground: oklch(0.756 0.145 117.262);
  --destructive: oklch(0.556 0.179 36.559);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.181 0.048 287.546);
  --chart-1: oklch(0.181 0.048 287.546);
  --chart-2: oklch(0.256 0.04 116.378);
  --chart-3: oklch(0.256 0.04 116.378);
  --chart-4: oklch(0.299 0.05 116.587);
  --chart-5: oklch(0.18 0.051 287.033);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.021 291.381);
  --foreground: oklch(0.991 0.002 293.265);
  --muted: oklch(0.297 0.039 115.833);
  --muted-foreground: oklch(0.777 0.004 113.406);
  --popover: oklch(0.128 0.021 291.381);
  --popover-foreground: oklch(0.991 0.002 293.265);
  --card: oklch(0.128 0.021 291.381);
  --card-foreground: oklch(0.991 0.002 293.265);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.181 0.048 287.546);
  --primary-foreground: oklch(0.686 0.105 290.226);
  --secondary: oklch(0.256 0.04 116.378);
  --secondary-foreground: oklch(0.756 0.145 117.262);
  --accent: oklch(0.256 0.04 116.378);
  --accent-foreground: oklch(0.756 0.145 117.262);
  --destructive: oklch(0.646 0.196 37.357);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.181 0.048 287.546);
  --chart-1: oklch(0.181 0.048 287.546);
  --chart-2: oklch(0.256 0.04 116.378);
  --chart-3: oklch(0.256 0.04 116.378);
  --chart-4: oklch(0.299 0.05 116.587);
  --chart-5: oklch(0.18 0.051 287.033);
}