Yearly for shadcn/ui

Yearly is a shadcn/ui theme built around a green primary color (#1fd12b) with red accents (#d12b1f). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the green primary (#1fd12b) on a neutral background (#010401).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#010401black
Foreground
#041005black
#f9fbf9mintcream
Card
#fcfdfcwhite
#010401black
Card foreground
#041005black
#f9fbf9mintcream
Popover
#fcfdfcwhite
#010401black
Popover foreground
#041005black
#f9fbf9mintcream
Primary
#1fd12blimegreen
#1fd12blimegreen
Primary foreground
#051f06black
#051f06black
Secondary
#2b1fd1mediumblue
#2b1fd1mediumblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d5d3e8gainsboro
#18172cblack
Muted foreground
#46454adarkslategray
#b6b5basilver
Accent
#d12b1ffirebrick
#d12b1ffirebrick
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#cd1313firebrick
#eb2d2dcrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1fd12blimegreen
#1fd12blimegreen

Contrast

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

Light mode
Text on background19.06:1AAA
Text on card19.06:1AAA
Primary button8.43:1AAA
Secondary button9.47:1AAA
Muted text6.48:1AA
Accent5.16:1AA
Destructive5.66:1AA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button8.43:1AAA
Secondary button9.47:1AAA
Muted text8.63:1AAA
Accent5.16:1AA
Destructive4.23: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.993 0.003 147.516);
  --foreground: oklch(0.157 0.031 145.847);
  --muted: oklch(0.875 0.029 288.847);
  --muted-foreground: oklch(0.393 0.007 289.135);
  --popover: oklch(0.993 0.003 147.516);
  --popover-foreground: oklch(0.157 0.031 145.847);
  --card: oklch(0.993 0.003 147.516);
  --card-foreground: oklch(0.157 0.031 145.847);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.748 0.24 143.244);
  --primary-foreground: oklch(0.212 0.057 144.646);
  --secondary: oklch(0.42 0.248 271.009);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.559 0.202 29.345);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.539 0.213 28.408);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.748 0.24 143.244);
  --chart-1: oklch(0.748 0.24 143.244);
  --chart-2: oklch(0.42 0.248 271.009);
  --chart-3: oklch(0.559 0.202 29.345);
  --chart-4: oklch(0.439 0.261 270.867);
  --chart-5: oklch(0.757 0.245 143.159);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.017 146.205);
  --foreground: oklch(0.985 0.002 147.526);
  --muted: oklch(0.216 0.041 285.453);
  --muted-foreground: oklch(0.776 0.006 289.333);
  --popover: oklch(0.097 0.017 146.205);
  --popover-foreground: oklch(0.985 0.002 147.526);
  --card: oklch(0.097 0.017 146.205);
  --card-foreground: oklch(0.985 0.002 147.526);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.748 0.24 143.244);
  --primary-foreground: oklch(0.212 0.057 144.646);
  --secondary: oklch(0.42 0.248 271.009);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.559 0.202 29.345);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.61 0.224 27.068);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.748 0.24 143.244);
  --chart-1: oklch(0.748 0.24 143.244);
  --chart-2: oklch(0.42 0.248 271.009);
  --chart-3: oklch(0.559 0.202 29.345);
  --chart-4: oklch(0.439 0.261 270.867);
  --chart-5: oklch(0.757 0.245 143.159);
}