Classmate for shadcn/ui

Classmate is a shadcn/ui theme built around a muted blue primary color (#89a5b3) with muted green accents (#a5b389). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted blue primary (#89a5b3) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdfewhite
#000000black
Foreground
#010304black
#ffffffwhite
Card
#fbfdfewhite
#000000black
Card foreground
#010304black
#ffffffwhite
Popover
#fbfdfewhite
#000000black
Popover foreground
#010304black
#ffffffwhite
Primary
#89a5b3darkgray
#89a5b3darkgray
Primary foreground
#040506black
#040506black
Secondary
#b389a5rosybrown
#b389a5rosybrown
Secondary foreground
#060405black
#060405black
Muted
#f3e8eflinen
#170c14black
Muted foreground
#4a4548darkslategray
#bab5b9silver
Accent
#a5b389darkseagreen
#a5b389darkseagreen
Accent foreground
#050604black
#050604black
Destructive
#982910brown
#e9512ftomato
Destructive foreground
#fce4dfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#89a5b3darkgray
#89a5b3darkgray

Contrast

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

Light mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button7.87:1AAA
Secondary button6.85:1AA
Muted text7.84:1AAA
Accent9.13:1AAA
Destructive6.49:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.87:1AAA
Secondary button6.85:1AA
Muted text9.44:1AAA
Accent9.13:1AAA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 228.787);
  --foreground: oklch(0.093 0.009 222.951);
  --muted: oklch(0.941 0.015 337.592);
  --muted-foreground: oklch(0.396 0.01 337.761);
  --popover: oklch(0.993 0.003 228.787);
  --popover-foreground: oklch(0.093 0.009 222.951);
  --card: oklch(0.993 0.003 228.787);
  --card-foreground: oklch(0.093 0.009 222.951);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.706 0.038 229.589);
  --primary-foreground: oklch(0.116 0.005 226.166);
  --secondary: oklch(0.679 0.065 339.081);
  --secondary-foreground: oklch(0.112 0.008 337.414);
  --accent: oklch(0.746 0.061 122.848);
  --accent-foreground: oklch(0.121 0.008 121.346);
  --destructive: oklch(0.454 0.151 33.697);
  --destructive-foreground: oklch(0.937 0.027 32.691);
  --ring: oklch(0.706 0.038 229.589);
  --chart-1: oklch(0.706 0.038 229.589);
  --chart-2: oklch(0.679 0.065 339.081);
  --chart-3: oklch(0.746 0.061 122.848);
  --chart-4: oklch(0.705 0.059 338.87);
  --chart-5: oklch(0.707 0.043 229.727);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.175 0.023 339.793);
  --muted-foreground: oklch(0.778 0.008 337.48);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.706 0.038 229.589);
  --primary-foreground: oklch(0.116 0.005 226.166);
  --secondary: oklch(0.679 0.065 339.081);
  --secondary-foreground: oklch(0.112 0.008 337.414);
  --accent: oklch(0.746 0.061 122.848);
  --accent-foreground: oklch(0.121 0.008 121.346);
  --destructive: oklch(0.639 0.194 34.072);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.706 0.038 229.589);
  --chart-1: oklch(0.706 0.038 229.589);
  --chart-2: oklch(0.679 0.065 339.081);
  --chart-3: oklch(0.746 0.061 122.848);
  --chart-4: oklch(0.705 0.059 338.87);
  --chart-5: oklch(0.707 0.043 229.727);
}