Recent for shadcn/ui

Recent is a shadcn/ui theme built around a green primary color (#90bb3a) with muted light green accents (#dfe1db). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the green primary (#90bb3a) on a neutral background (#060802).

Color palette

TokenLightDark
Background
#fbfdf7snow
#060802black
Foreground
#000000black
#fdfdfcwhite
Card
#f9fcf3floralwhite
#090c03black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfdf7snow
#060802black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#90bb3ayellowgreen
#90bb3ayellowgreen
Primary foreground
#181f0ablack
#181f0ablack
Secondary
#ebebealinen
#333432darkslategray
Secondary foreground
#52544fdarkslategray
#cccdcblightgrey
Muted
#e7e9e2gainsboro
#1b1d16black
Muted foreground
#505841darkolivegreen
#b6bea7darkgray
Accent
#dfe1dbgainsboro
#4f5346darkslategray
Accent foreground
#474c3edarkslategray
#e6e8e3gainsboro
Destructive
#70150amaroon
#e52a15orangered
Destructive foreground
#f8bbb4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#90bb3ayellowgreen
#90bb3ayellowgreen

Contrast

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

Light mode
Text on background20.48:1AAA
Text on card20.23:1AAA
Primary button7.56:1AAA
Secondary button6.43:1AA
Muted text6.09:1AA
Accent6.72:1AA
Destructive7.09:1AAA
Dark mode
Text on background19.77:1AAA
Text on card19.70:1AAA
Primary button7.56:1AAA
Secondary button7.83:1AAA
Muted text8.84:1AAA
Accent6.43:1AA
Destructive4.50:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.008 121.628);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.93 0.01 121.663);
  --muted-foreground: oklch(0.447 0.037 122.877);
  --popover: oklch(0.991 0.008 121.628);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.012 121.697);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.737 0.162 126.166);
  --primary-foreground: oklch(0.227 0.039 124.687);
  --secondary: oklch(0.94 0.002 121.522);
  --secondary-foreground: oklch(0.443 0.008 121.789);
  --accent: oklch(0.907 0.009 121.656);
  --accent-foreground: oklch(0.407 0.023 122.421);
  --destructive: oklch(0.357 0.127 30.452);
  --destructive-foreground: oklch(0.846 0.072 25.903);
  --ring: oklch(0.737 0.162 126.166);
  --chart-1: oklch(0.737 0.162 126.166);
  --chart-2: oklch(0.94 0.002 121.522);
  --chart-3: oklch(0.907 0.009 121.656);
  --chart-4: oklch(0.963 0.001 121.51);
  --chart-5: oklch(0.746 0.169 126.41);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.128 0.019 121.153);
  --foreground: oklch(0.994 0.002 121.529);
  --muted: oklch(0.226 0.014 122.498);
  --muted-foreground: oklch(0.789 0.033 122.168);
  --popover: oklch(0.128 0.019 121.153);
  --popover-foreground: oklch(0.994 0.002 121.529);
  --card: oklch(0.147 0.022 121.473);
  --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.737 0.162 126.166);
  --primary-foreground: oklch(0.227 0.039 124.687);
  --secondary: oklch(0.324 0.004 121.675);
  --secondary-foreground: oklch(0.847 0.003 121.548);
  --accent: oklch(0.433 0.02 122.255);
  --accent-foreground: oklch(0.927 0.006 121.591);
  --destructive: oklch(0.594 0.222 30.517);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.737 0.162 126.166);
  --chart-1: oklch(0.737 0.162 126.166);
  --chart-2: oklch(0.324 0.004 121.675);
  --chart-3: oklch(0.433 0.02 122.255);
  --chart-4: oklch(0.354 0.004 121.68);
  --chart-5: oklch(0.746 0.169 126.41);
}