Journal for shadcn/ui

Journal is a shadcn/ui theme built around a vivid green primary color (#229915) with vivid purple accents (#8b1599). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid green primary (#229915) on a neutral background (#030803).

Color palette

TokenLightDark
Background
#fbfefbwhite
#030803black
Foreground
#030d02black
#f8fcf8mintcream
Card
#f8fcf8mintcream
#050b04black
Card foreground
#020901black
#fcfdfcwhite
Popover
#f8fcf8mintcream
#050b04black
Popover foreground
#020901black
#fcfdfcwhite
Primary
#229915forestgreen
#229915forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#8b1599darkmagenta
#8b1599darkmagenta
Secondary foreground
#f9e4fblavenderblush
#f9e4fblavenderblush
Muted
#f4eaf6whitesmoke
#140915black
Muted foreground
#463847darkslategray
#c5b8c7silver
Accent
#8b1599darkmagenta
#8b1599darkmagenta
Accent foreground
#f9e4fblavenderblush
#f9e4fblavenderblush
Destructive
#ae4004saddlebrown
#e05206orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#229915forestgreen
#229915forestgreen

Contrast

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

Light mode
Text on background19.43:1AAA
Text on card19.48:1AAA
Primary button3.74:1AA Large
Secondary button6.56:1AA
Muted text9.35:1AAA
Accent6.56:1AA
Destructive5.94:1AA
Dark mode
Text on background19.52:1AAA
Text on card19.47:1AAA
Primary button3.74:1AA Large
Secondary button6.56:1AA
Muted text10.22:1AAA
Accent6.56:1AA
Destructive3.90: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.994 0.004 142.611);
  --foreground: oklch(0.144 0.036 140.349);
  --muted: oklch(0.948 0.02 322.709);
  --muted-foreground: oklch(0.362 0.032 322.965);
  --popover: oklch(0.987 0.008 142.595);
  --popover-foreground: oklch(0.125 0.031 140.276);
  --card: oklch(0.987 0.008 142.595);
  --card-foreground: oklch(0.125 0.031 140.276);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.595 0.19 141.83);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.464 0.205 323.33);
  --secondary-foreground: oklch(0.943 0.038 322.787);
  --accent: oklch(0.464 0.205 323.33);
  --accent-foreground: oklch(0.943 0.038 322.787);
  --destructive: oklch(0.518 0.156 41.533);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.595 0.19 141.83);
  --chart-1: oklch(0.595 0.19 141.83);
  --chart-2: oklch(0.464 0.205 323.33);
  --chart-3: oklch(0.464 0.205 323.33);
  --chart-4: oklch(0.494 0.219 323.314);
  --chart-5: oklch(0.602 0.194 141.866);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.02 141.123);
  --foreground: oklch(0.987 0.006 142.603);
  --muted: oklch(0.163 0.03 323.281);
  --muted-foreground: oklch(0.797 0.026 322.757);
  --popover: oklch(0.14 0.023 141.139);
  --popover-foreground: oklch(0.993 0.003 142.615);
  --card: oklch(0.14 0.023 141.139);
  --card-foreground: oklch(0.993 0.003 142.615);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.595 0.19 141.83);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.464 0.205 323.33);
  --secondary-foreground: oklch(0.943 0.038 322.787);
  --accent: oklch(0.464 0.205 323.33);
  --accent-foreground: oklch(0.943 0.038 322.787);
  --destructive: oklch(0.622 0.19 40.919);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.595 0.19 141.83);
  --chart-1: oklch(0.595 0.19 141.83);
  --chart-2: oklch(0.464 0.205 323.33);
  --chart-3: oklch(0.464 0.205 323.33);
  --chart-4: oklch(0.494 0.219 323.314);
  --chart-5: oklch(0.602 0.194 141.866);
}