Studious for shadcn/ui

Studious is a shadcn/ui theme built around a cyan primary color (#629fb7) with green accents (#9fb762). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the cyan primary (#629fb7) on a cyan-tinted background (#060c0e).

Color palette

TokenLightDark
Background
#f7fbfdghostwhite
#060c0eblack
Foreground
#031116black
#ffffffwhite
Card
#f7fbfdghostwhite
#060c0eblack
Card foreground
#031116black
#ffffffwhite
Popover
#f7fbfdghostwhite
#060c0eblack
Popover foreground
#031116black
#ffffffwhite
Primary
#629fb7cadetblue
#629fb7cadetblue
Primary foreground
#000000black
#000000black
Secondary
#b7629fpalevioletred
#b7629fpalevioletred
Secondary foreground
#000000black
#000000black
Muted
#e9dde6gainsboro
#22161fblack
Muted foreground
#5a4e57dimgray
#b1a5addarkgray
Accent
#9fb762darkkhaki
#9fb762darkkhaki
Accent foreground
#000000black
#000000black
Destructive
#ca3107firebrick
#e23708orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#629fb7cadetblue
#629fb7cadetblue

Contrast

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

Light mode
Text on background18.43:1AAA
Text on card18.43:1AAA
Primary button7.13:1AAA
Secondary button5.24:1AA
Muted text5.98:1AA
Accent9.39:1AAA
Destructive5.30:1AA
Dark mode
Text on background19.68:1AAA
Text on card19.68:1AAA
Primary button7.13:1AAA
Secondary button5.24:1AA
Muted text7.36:1AAA
Accent9.39:1AAA
Destructive4.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.006 223.188);
  --foreground: oklch(0.166 0.024 223.479);
  --muted: oklch(0.909 0.018 335.544);
  --muted-foreground: oklch(0.44 0.02 336.015);
  --popover: oklch(0.986 0.006 223.188);
  --popover-foreground: oklch(0.166 0.024 223.479);
  --card: oklch(0.986 0.006 223.188);
  --card-foreground: oklch(0.166 0.024 223.479);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.669 0.072 225.24);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.614 0.133 338.822);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.741 0.114 122.214);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.551 0.194 34.038);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.669 0.072 225.24);
  --chart-1: oklch(0.669 0.072 225.24);
  --chart-2: oklch(0.614 0.133 338.822);
  --chart-3: oklch(0.741 0.114 122.214);
  --chart-4: oklch(0.638 0.124 338.44);
  --chart-5: oklch(0.672 0.077 225.498);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.012 222.186);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.219 0.025 337.176);
  --muted-foreground: oklch(0.734 0.018 335.63);
  --popover: oklch(0.149 0.012 222.186);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.149 0.012 222.186);
  --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.669 0.072 225.24);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.614 0.133 338.822);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.741 0.114 122.214);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.6 0.212 33.899);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.669 0.072 225.24);
  --chart-1: oklch(0.669 0.072 225.24);
  --chart-2: oklch(0.614 0.133 338.822);
  --chart-3: oklch(0.741 0.114 122.214);
  --chart-4: oklch(0.638 0.124 338.44);
  --chart-5: oklch(0.672 0.077 225.498);
}