Recent for shadcn/ui

Recent is a shadcn/ui theme built around a light pink primary color (#fbeef6) with light green accents (#eefbf3). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the light pink primary (#fbeef6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#000000black
Foreground
#040103black
#fbf9fasnow
Card
#fdfbfdsnow
#000000black
Card foreground
#040103black
#fbf9fasnow
Popover
#fdfbfdsnow
#000000black
Popover foreground
#040103black
#fbf9fasnow
Primary
#fbeef6lavenderblush
#fbeef6lavenderblush
Primary foreground
#95236bpurple
#95236bpurple
Secondary
#eefbf3honeydew
#eefbf3honeydew
Secondary foreground
#104222darkgreen
#104222darkgreen
Muted
#e6ebe7lavender
#141916black
Muted foreground
#556d5edimgray
#92aa9bdarkseagreen
Accent
#eefbf3honeydew
#eefbf3honeydew
Accent foreground
#104222darkgreen
#104222darkgreen
Destructive
#61130amaroon
#e83926crimson
Destructive foreground
#f6afa7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fbeef6lavenderblush
#fbeef6lavenderblush

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button6.85:1AA
Secondary button10.83:1AAA
Muted text4.64:1AA
Accent10.83:1AAA
Destructive7.23:1AAA
Dark mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button6.85:1AA
Secondary button10.83:1AAA
Muted text7.12:1AAA
Accent10.83:1AAA
Destructive4.14:1AA Large

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.003 338.777);
  --foreground: oklch(0.085 0.018 338.995);
  --muted: oklch(0.934 0.007 158.56);
  --muted-foreground: oklch(0.51 0.036 157.081);
  --popover: oklch(0.991 0.003 338.777);
  --popover-foreground: oklch(0.085 0.018 338.995);
  --card: oklch(0.991 0.003 338.777);
  --card-foreground: oklch(0.085 0.018 338.995);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.963 0.017 339.098);
  --primary-foreground: oklch(0.464 0.165 346.706);
  --secondary: oklch(0.977 0.017 158.339);
  --secondary-foreground: oklch(0.337 0.077 151.71);
  --accent: oklch(0.977 0.017 158.339);
  --accent-foreground: oklch(0.337 0.077 151.71);
  --destructive: oklch(0.325 0.112 30.351);
  --destructive-foreground: oklch(0.819 0.084 26.153);
  --ring: oklch(0.963 0.017 339.098);
  --chart-1: oklch(0.963 0.017 339.098);
  --chart-2: oklch(0.977 0.017 158.339);
  --chart-3: oklch(0.977 0.017 158.339);
  --chart-4: oklch(0.994 0.004 158.627);
  --chart-5: oklch(0.962 0.018 339.116);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 338.767);
  --muted: oklch(0.209 0.01 157.654);
  --muted-foreground: oklch(0.715 0.033 157.665);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 338.767);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.984 0.002 338.767);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.963 0.017 339.098);
  --primary-foreground: oklch(0.464 0.165 346.706);
  --secondary: oklch(0.977 0.017 158.339);
  --secondary-foreground: oklch(0.337 0.077 151.71);
  --accent: oklch(0.977 0.017 158.339);
  --accent-foreground: oklch(0.337 0.077 151.71);
  --destructive: oklch(0.613 0.214 30.383);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.963 0.017 339.098);
  --chart-1: oklch(0.963 0.017 339.098);
  --chart-2: oklch(0.977 0.017 158.339);
  --chart-3: oklch(0.977 0.017 158.339);
  --chart-4: oklch(0.994 0.004 158.627);
  --chart-5: oklch(0.962 0.018 339.116);
}