Diary for shadcn/ui

Diary is a shadcn/ui theme built around a light purple primary color (#f4e1f0) with light cyan accents (#e1f0f4). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#f4e1f0) on a neutral background (#030203).

Color palette

TokenLightDark
Background
#ffffffwhite
#030203black
Foreground
#0d030ablack
#ffffffwhite
Card
#ffffffwhite
#030203black
Card foreground
#0d030ablack
#ffffffwhite
Popover
#ffffffwhite
#030203black
Popover foreground
#0d030ablack
#ffffffwhite
Primary
#f4e1f0lavender
#f4e1f0lavender
Primary foreground
#762d66purple
#762d66purple
Secondary
#f0f4e1beige
#f0f4e1beige
Secondary foreground
#262c11black
#262c11black
Muted
#e0e4d3gainsboro
#282c1bdarkslategray
Muted foreground
#60615cdimgray
#a2a39edarkgray
Accent
#e1f0f4lavender
#e1f0f4lavender
Accent foreground
#11262cblack
#11262cblack
Destructive
#970e07darkred
#db150ared
Destructive foreground
#fdd5d3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f4e1f0lavender
#f4e1f0lavender

Contrast

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

Light mode
Text on background20.29:1AAA
Text on card20.29:1AAA
Primary button7.23:1AAA
Secondary button12.89:1AAA
Muted text4.80:1AA
Accent13.42:1AAA
Destructive6.56:1AA
Dark mode
Text on background20.73:1AAA
Text on card20.73:1AAA
Primary button7.23:1AAA
Secondary button12.89:1AAA
Muted text5.63:1AA
Accent13.42:1AAA
Destructive5.08:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.122 0.031 334.11);
  --muted: oklch(0.91 0.022 116.775);
  --muted-foreground: oklch(0.49 0.009 116.663);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.122 0.031 334.11);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.122 0.031 334.11);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.93 0.028 333.069);
  --primary-foreground: oklch(0.423 0.126 336.917);
  --secondary: oklch(0.959 0.025 116.796);
  --secondary-foreground: oklch(0.281 0.046 119.552);
  --accent: oklch(0.945 0.016 216.095);
  --accent-foreground: oklch(0.255 0.03 217.835);
  --destructive: oklch(0.431 0.168 29.454);
  --destructive-foreground: oklch(0.907 0.045 21.567);
  --ring: oklch(0.93 0.028 333.069);
  --chart-1: oklch(0.93 0.028 333.069);
  --chart-2: oklch(0.959 0.025 116.796);
  --chart-3: oklch(0.945 0.016 216.095);
  --chart-4: oklch(0.974 0.015 116.616);
  --chart-5: oklch(0.929 0.029 333.099);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.011 333.155);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.284 0.029 118.215);
  --muted-foreground: oklch(0.714 0.008 116.538);
  --popover: oklch(0.088 0.011 333.155);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.088 0.011 333.155);
  --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.93 0.028 333.069);
  --primary-foreground: oklch(0.423 0.126 336.917);
  --secondary: oklch(0.959 0.025 116.796);
  --secondary-foreground: oklch(0.281 0.046 119.552);
  --accent: oklch(0.945 0.016 216.095);
  --accent-foreground: oklch(0.255 0.03 217.835);
  --destructive: oklch(0.566 0.224 29.485);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.93 0.028 333.069);
  --chart-1: oklch(0.93 0.028 333.069);
  --chart-2: oklch(0.959 0.025 116.796);
  --chart-3: oklch(0.945 0.016 216.095);
  --chart-4: oklch(0.974 0.015 116.616);
  --chart-5: oklch(0.929 0.029 333.099);
}