Learn with Sumit Theme for shadcn/ui

Learn with Sumit Theme is a shadcn/ui theme built around a muted blue primary color (#989eb3) with muted deep blue accents (#333e5c). The light mode uses a blue-tinted background (#181d2b). Dark mode keeps the muted blue primary (#989eb3) on a blue-tinted background (#181d2b).

Color palette

TokenLightDark
Background
#181d2bblack
#181d2bblack
Foreground
#d2d3d5lightgrey
#d2d3d5lightgrey
Card
#141824black
#141824black
Card foreground
#dfe0e1gainsboro
#dfe0e1gainsboro
Popover
#121621black
#121621black
Popover foreground
#ededeewhitesmoke
#ededeewhitesmoke
Primary
#989eb3darkgray
#989eb3darkgray
Primary foreground
#0b0c0fblack
#0b0c0fblack
Secondary
#3d3e43darkslategray
#3d3e43darkslategray
Secondary foreground
#d7d8dbgainsboro
#d7d8dbgainsboro
Muted
#262931darkslategray
#262931darkslategray
Muted foreground
#a1a6b5darkgray
#a1a6b5darkgray
Accent
#333e5cdarkslategray
#333e5cdarkslategray
Accent foreground
#d8dce9gainsboro
#d8dce9gainsboro
Destructive
#ec4432tomato
#ec4432tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#252a37darkslategray
#252a37darkslategray
Input
#2b3140darkslategray
#2b3140darkslategray
Ring
#989eb3darkgray
#989eb3darkgray

Contrast

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

Light mode
Text on background11.26:1AAA
Text on card13.37:1AAA
Primary button7.35:1AAA
Secondary button7.50:1AAA
Muted text5.98:1AA
Accent7.75:1AAA
Destructive3.85:1AA Large
Dark mode
Text on background11.26:1AAA
Text on card13.37:1AAA
Primary button7.35:1AAA
Secondary button7.50:1AAA
Muted text5.98:1AA
Accent7.75:1AAA
Destructive3.85:1AA Large

CSS variables

Paste this into your globals.css to use Learn with Sumit Theme in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.231 0.028 268.723);
  --foreground: oklch(0.867 0.003 264.542);
  --muted: oklch(0.281 0.015 269.62);
  --muted-foreground: oklch(0.726 0.022 269.845);
  --popover: oklch(0.202 0.023 268.872);
  --popover-foreground: oklch(0.946 0.001 264.548);
  --card: oklch(0.212 0.025 268.817);
  --card-foreground: oklch(0.907 0.002 264.545);
  --border: oklch(0.285 0.024 269.218);
  --input: oklch(0.314 0.028 269.178);
  --primary: oklch(0.702 0.031 273.312);
  --primary-foreground: oklch(0.153 0.007 273.338);
  --secondary: oklch(0.364 0.009 273.581);
  --secondary-foreground: oklch(0.881 0.004 273.811);
  --accent: oklch(0.367 0.055 268.363);
  --accent-foreground: oklch(0.896 0.019 269.941);
  --destructive: oklch(0.63 0.207 30.126);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.702 0.031 273.312);
  --chart-1: oklch(0.702 0.031 273.312);
  --chart-2: oklch(0.364 0.009 273.581);
  --chart-3: oklch(0.367 0.055 268.363);
  --chart-4: oklch(0.392 0.01 273.575);
  --chart-5: oklch(0.698 0.038 273.181);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.231 0.028 268.723);
  --foreground: oklch(0.867 0.003 264.542);
  --muted: oklch(0.281 0.015 269.62);
  --muted-foreground: oklch(0.726 0.022 269.845);
  --popover: oklch(0.202 0.023 268.872);
  --popover-foreground: oklch(0.946 0.001 264.548);
  --card: oklch(0.212 0.025 268.817);
  --card-foreground: oklch(0.907 0.002 264.545);
  --border: oklch(0.285 0.024 269.218);
  --input: oklch(0.314 0.028 269.178);
  --primary: oklch(0.702 0.031 273.312);
  --primary-foreground: oklch(0.153 0.007 273.338);
  --secondary: oklch(0.364 0.009 273.581);
  --secondary-foreground: oklch(0.881 0.004 273.811);
  --accent: oklch(0.367 0.055 268.363);
  --accent-foreground: oklch(0.896 0.019 269.941);
  --destructive: oklch(0.63 0.207 30.126);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.702 0.031 273.312);
  --chart-1: oklch(0.702 0.031 273.312);
  --chart-2: oklch(0.364 0.009 273.581);
  --chart-3: oklch(0.367 0.055 268.363);
  --chart-4: oklch(0.392 0.01 273.575);
  --chart-5: oklch(0.698 0.038 273.181);
}