Recent for shadcn/ui

Recent is a shadcn/ui theme built around a muted indigo primary color (#666383) with muted green accents (#7f8363). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#666383) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#010104black
#f6f6f9whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#010104black
#f6f6f9whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#010104black
#f6f6f9whitesmoke
Primary
#666383dimgray
#666383dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7f8363gray
#7f8363gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f3f4eblinen
#13140bblack
Muted foreground
#606156dimgray
#a7a99edarkgray
Accent
#7f8363gray
#7f8363gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#8f1704darkred
#f72808orangered
Destructive foreground
#fdd0c9pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#666383dimgray
#666383dimgray

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 button5.72:1AA
Secondary button3.94:1AA Large
Muted text5.67:1AA
Accent3.94:1AA Large
Destructive6.53:1AA
Dark mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button5.72:1AA
Secondary button3.94:1AA Large
Muted text7.79:1AAA
Accent3.94:1AA Large
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.072 0.022 288.296);
  --muted: oklch(0.964 0.012 112.008);
  --muted-foreground: oklch(0.489 0.017 112.434);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.072 0.022 288.296);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.072 0.022 288.296);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.514 0.05 289.845);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.597 0.047 113.231);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.597 0.047 113.231);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.421 0.157 31.514);
  --destructive-foreground: oklch(0.894 0.053 28.35);
  --ring: oklch(0.514 0.05 289.845);
  --chart-1: oklch(0.514 0.05 289.845);
  --chart-2: oklch(0.597 0.047 113.231);
  --chart-3: oklch(0.597 0.047 113.231);
  --chart-4: oklch(0.626 0.049 113.24);
  --chart-5: oklch(0.506 0.062 289.351);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.973 0.005 291.689);
  --muted: oklch(0.186 0.017 113.493);
  --muted-foreground: oklch(0.73 0.016 112.18);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.973 0.005 291.689);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.973 0.005 291.689);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.514 0.05 289.845);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.597 0.047 113.231);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.597 0.047 113.231);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.626 0.24 31.052);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.514 0.05 289.845);
  --chart-1: oklch(0.514 0.05 289.845);
  --chart-2: oklch(0.597 0.047 113.231);
  --chart-3: oklch(0.597 0.047 113.231);
  --chart-4: oklch(0.626 0.049 113.24);
  --chart-5: oklch(0.506 0.062 289.351);
}