Scholarly for shadcn/ui

Scholarly is a shadcn/ui theme built around a muted teal primary color (#3c6250) with muted orange accents (#62503c). The light mode uses a neutral background (#f7fdfa). Dark mode keeps the muted teal primary (#3c6250) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdfamintcream
#000000black
Foreground
#020805black
#f9fbfamintcream
Card
#f2fcf8mintcream
#030303black
Card foreground
#010403black
#fcfdfcwhite
Popover
#f7fdfamintcream
#000000black
Popover foreground
#020805black
#f9fbfamintcream
Primary
#3c6250darkslategray
#3c6250darkslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#503c62darkslateblue
#503c62darkslateblue
Secondary foreground
#e8e3eelavender
#e8e3eelavender
Muted
#f2f1f4whitesmoke
#0d0b0eblack
Muted foreground
#4a4351darkslategray
#b5aebcsilver
Accent
#62503cdarkolivegreen
#62503cdarkolivegreen
Accent foreground
#eee8e3linen
#eee8e3linen
Destructive
#b53e03firebrick
#fb5604orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3c6250darkslategray
#3c6250darkslategray

Contrast

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

Light mode
Text on background19.61:1AAA
Text on card19.70:1AAA
Primary button6.86:1AA
Secondary button7.68:1AAA
Muted text8.41:1AAA
Accent6.30:1AA
Destructive5.74:1AA
Dark mode
Text on background20.20:1AAA
Text on card20.28:1AAA
Primary button6.86:1AA
Secondary button7.68:1AAA
Muted text9.09:1AAA
Accent6.30:1AA
Destructive3.25:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.008 166.687);
  --foreground: oklch(0.124 0.016 167.117);
  --muted: oklch(0.959 0.005 309.735);
  --muted-foreground: oklch(0.396 0.024 309.189);
  --popover: oklch(0.989 0.008 166.687);
  --popover-foreground: oklch(0.124 0.016 167.117);
  --card: oklch(0.983 0.012 166.574);
  --card-foreground: oklch(0.098 0.013 167.117);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.462 0.052 163.287);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.395 0.067 308.053);
  --secondary-foreground: oklch(0.922 0.016 309.613);
  --accent: oklch(0.445 0.039 70.291);
  --accent-foreground: oklch(0.935 0.01 71.36);
  --destructive: oklch(0.528 0.164 40.033);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.462 0.052 163.287);
  --chart-1: oklch(0.462 0.052 163.287);
  --chart-2: oklch(0.395 0.067 308.053);
  --chart-3: oklch(0.445 0.039 70.291);
  --chart-4: oklch(0.42 0.072 308.026);
  --chart-5: oklch(0.467 0.058 162.836);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.001 166.866);
  --muted: oklch(0.154 0.008 309.3);
  --muted-foreground: oklch(0.762 0.02 309.521);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.001 166.866);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.001 166.887);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.462 0.052 163.287);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.395 0.067 308.053);
  --secondary-foreground: oklch(0.922 0.016 309.613);
  --accent: oklch(0.445 0.039 70.291);
  --accent-foreground: oklch(0.935 0.01 71.36);
  --destructive: oklch(0.671 0.213 39.264);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.462 0.052 163.287);
  --chart-1: oklch(0.462 0.052 163.287);
  --chart-2: oklch(0.395 0.067 308.053);
  --chart-3: oklch(0.445 0.039 70.291);
  --chart-4: oklch(0.42 0.072 308.026);
  --chart-5: oklch(0.467 0.058 162.836);
}