Reminder for shadcn/ui

Reminder is a shadcn/ui theme built around a muted violet primary color (#8774a4) with muted green accents (#74a487). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted violet primary (#8774a4) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#ffffffwhite
#020104black
Foreground
#07030cblack
#fcfcfdwhite
Card
#ffffffwhite
#020104black
Card foreground
#07030cblack
#fcfcfdwhite
Popover
#ffffffwhite
#020104black
Popover foreground
#07030cblack
#fcfcfdwhite
Primary
#8774a4lightslategray
#8774a4lightslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a48774rosybrown
#a48774rosybrown
Secondary foreground
#000000black
#000000black
Muted
#f1e9e4linen
#1b130eblack
Muted foreground
#68625edimgray
#a19b97darkgray
Accent
#74a487cadetblue
#74a487cadetblue
Accent foreground
#000000black
#000000black
Destructive
#bf2503firebrick
#e72d04orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8774a4lightslategray
#8774a4lightslategray

Contrast

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

Light mode
Text on background20.44:1AAA
Text on card20.44:1AAA
Primary button4.13:1AA Large
Secondary button6.32:1AA
Muted text5.01:1AA
Accent7.43:1AAA
Destructive6.02:1AA
Dark mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button4.13:1AA Large
Secondary button6.32:1AA
Muted text6.67:1AA
Accent7.43:1AAA
Destructive4.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.114 0.027 305.213);
  --muted: oklch(0.94 0.011 56.266);
  --muted-foreground: oklch(0.502 0.01 56.163);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.114 0.027 305.213);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.114 0.027 305.213);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.596 0.075 302.506);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.647 0.045 55.458);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.677 0.067 157.698);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.521 0.192 32.63);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.596 0.075 302.506);
  --chart-1: oklch(0.596 0.075 302.506);
  --chart-2: oklch(0.647 0.045 55.458);
  --chart-3: oklch(0.677 0.067 157.698);
  --chart-4: oklch(0.671 0.042 55.571);
  --chart-5: oklch(0.59 0.086 302.206);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.079 0.018 305.481);
  --foreground: oklch(0.991 0.002 304.319);
  --muted: oklch(0.195 0.017 55.188);
  --muted-foreground: oklch(0.692 0.009 56.252);
  --popover: oklch(0.079 0.018 305.481);
  --popover-foreground: oklch(0.991 0.002 304.319);
  --card: oklch(0.079 0.018 305.481);
  --card-foreground: oklch(0.991 0.002 304.319);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.596 0.075 302.506);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.647 0.045 55.458);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.677 0.067 157.698);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.6 0.223 32.377);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.596 0.075 302.506);
  --chart-1: oklch(0.596 0.075 302.506);
  --chart-2: oklch(0.647 0.045 55.458);
  --chart-3: oklch(0.677 0.067 157.698);
  --chart-4: oklch(0.671 0.042 55.571);
  --chart-5: oklch(0.59 0.086 302.206);
}