Journal for shadcn/ui

Journal is a shadcn/ui theme built around a purple primary color (#c57dbf) with green accents (#7dc583). The light mode uses a neutral background (#fdf6fd). Dark mode keeps the purple primary (#c57dbf) on a purple-tinted background (#0b040a).

Color palette

TokenLightDark
Background
#fdf6fdsnow
#0b040ablack
Foreground
#0c040bblack
#f8f6f8whitesmoke
Card
#fdf6fdsnow
#0b040ablack
Card foreground
#0c040bblack
#f8f6f8whitesmoke
Popover
#fdf6fdsnow
#0b040ablack
Popover foreground
#0c040bblack
#f8f6f8whitesmoke
Primary
#c57dbforchid
#c57dbforchid
Primary foreground
#0b050ablack
#0b050ablack
Secondary
#7dc583darkseagreen
#7dc583darkseagreen
Secondary foreground
#050b05black
#050b05black
Muted
#ecefecwhitesmoke
#101311black
Muted foreground
#465347darkslategray
#acb9addarkgray
Accent
#7dc583darkseagreen
#7dc583darkseagreen
Accent foreground
#050b05black
#050b05black
Destructive
#7a2405maroon
#f55014orangered
Destructive foreground
#fcc8b6peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c57dbforchid
#c57dbforchid

Contrast

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

Light mode
Text on background19.11:1AAA
Text on card19.11:1AAA
Primary button6.75:1AA
Secondary button9.59:1AAA
Muted text6.98:1AA
Accent9.59:1AAA
Destructive6.72:1AA
Dark mode
Text on background18.82:1AAA
Text on card18.82:1AAA
Primary button6.75:1AA
Secondary button9.59:1AAA
Muted text9.14:1AAA
Accent9.59:1AAA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.011 328.185);
  --foreground: oklch(0.124 0.027 329.508);
  --muted: oklch(0.948 0.005 148.007);
  --muted-foreground: oklch(0.426 0.024 147.455);
  --popover: oklch(0.981 0.011 328.185);
  --popover-foreground: oklch(0.124 0.027 329.508);
  --card: oklch(0.981 0.011 328.185);
  --card-foreground: oklch(0.124 0.027 329.508);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.686 0.124 329.798);
  --primary-foreground: oklch(0.127 0.019 328.982);
  --secondary: oklch(0.758 0.118 146.245);
  --secondary-foreground: oklch(0.138 0.018 147.165);
  --accent: oklch(0.758 0.118 146.245);
  --accent-foreground: oklch(0.138 0.018 147.165);
  --destructive: oklch(0.393 0.125 37.513);
  --destructive-foreground: oklch(0.874 0.064 40.922);
  --ring: oklch(0.686 0.124 329.798);
  --chart-1: oklch(0.686 0.124 329.798);
  --chart-2: oklch(0.758 0.118 146.245);
  --chart-3: oklch(0.758 0.118 146.245);
  --chart-4: oklch(0.777 0.108 146.454);
  --chart-5: oklch(0.685 0.133 329.921);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.022 329.188);
  --foreground: oklch(0.976 0.003 328.098);
  --muted: oklch(0.184 0.008 147.61);
  --muted-foreground: oklch(0.772 0.021 147.778);
  --popover: oklch(0.126 0.022 329.188);
  --popover-foreground: oklch(0.976 0.003 328.098);
  --card: oklch(0.126 0.022 329.188);
  --card-foreground: oklch(0.976 0.003 328.098);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.686 0.124 329.798);
  --primary-foreground: oklch(0.127 0.019 328.982);
  --secondary: oklch(0.758 0.118 146.245);
  --secondary-foreground: oklch(0.138 0.018 147.165);
  --accent: oklch(0.758 0.118 146.245);
  --accent-foreground: oklch(0.138 0.018 147.165);
  --destructive: oklch(0.655 0.211 37.13);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.686 0.124 329.798);
  --chart-1: oklch(0.686 0.124 329.798);
  --chart-2: oklch(0.758 0.118 146.245);
  --chart-3: oklch(0.758 0.118 146.245);
  --chart-4: oklch(0.777 0.108 146.454);
  --chart-5: oklch(0.685 0.133 329.921);
}