Studious for shadcn/ui

Studious is a shadcn/ui theme built around a muted yellow primary color (#97917d) with muted purple accents (#917d97). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#97917d) on a yellow-tinted background (#0f0d05).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f0d05black
Foreground
#080702black
#fbfbf9snow
Card
#fcfcfcsnow
#131007black
Card foreground
#040301black
#fdfdfcwhite
Popover
#ffffffwhite
#0f0d05black
Popover foreground
#080702black
#fbfbf9snow
Primary
#97917dgray
#97917dgray
Primary foreground
#000000black
#000000black
Secondary
#7d9791lightslategray
#7d9791lightslategray
Secondary foreground
#000000black
#000000black
Muted
#dbebe7gainsboro
#142420black
Muted foreground
#555e5cdimgray
#a1aaa8darkgray
Accent
#917d97lightslategray
#917d97lightslategray
Accent foreground
#000000black
#000000black
Destructive
#8a210adarkred
#f04924orangered
Destructive foreground
#fbd3cbbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#97917dgray
#97917dgray

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.17:1AAA
Primary button6.65:1AA
Secondary button6.67:1AA
Muted text5.41:1AA
Accent5.57:1AA
Destructive6.61:1AA
Dark mode
Text on background18.75:1AAA
Text on card18.64:1AAA
Primary button6.65:1AA
Secondary button6.67:1AA
Muted text6.79:1AA
Accent5.57:1AA
Destructive3.69:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.014 98.073);
  --muted: oklch(0.926 0.017 181.561);
  --muted-foreground: oklch(0.472 0.012 181.374);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.014 98.073);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.1 0.011 98.073);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.656 0.03 94.287);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.653 0.03 180.72);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.616 0.045 318.863);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.42 0.144 33.463);
  --destructive-foreground: oklch(0.9 0.047 32.767);
  --ring: oklch(0.656 0.03 94.287);
  --chart-1: oklch(0.656 0.03 94.287);
  --chart-2: oklch(0.653 0.03 180.72);
  --chart-3: oklch(0.616 0.045 318.863);
  --chart-4: oklch(0.677 0.028 180.865);
  --chart-5: oklch(0.662 0.038 94.363);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.017 95.922);
  --foreground: oklch(0.987 0.003 93.895);
  --muted: oklch(0.244 0.022 179.286);
  --muted-foreground: oklch(0.731 0.01 181.666);
  --popover: oklch(0.159 0.017 95.922);
  --popover-foreground: oklch(0.987 0.003 93.895);
  --card: oklch(0.174 0.02 95.059);
  --card-foreground: oklch(0.993 0.001 93.88);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.656 0.03 94.287);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.653 0.03 180.72);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.616 0.045 318.863);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.64 0.209 33.813);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.656 0.03 94.287);
  --chart-1: oklch(0.656 0.03 94.287);
  --chart-2: oklch(0.653 0.03 180.72);
  --chart-3: oklch(0.616 0.045 318.863);
  --chart-4: oklch(0.677 0.028 180.865);
  --chart-5: oklch(0.662 0.038 94.363);
}