Course for shadcn/ui

Course is a shadcn/ui theme built around a muted pink primary color (#7d4566) with muted green accents (#457d5c). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the muted pink primary (#7d4566) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdfcfdwhite
#000000black
Foreground
#040103black
#ffffffwhite
Card
#fdfcfdwhite
#000000black
Card foreground
#040103black
#ffffffwhite
Popover
#fdfcfdwhite
#000000black
Popover foreground
#040103black
#ffffffwhite
Primary
#7d4566dimgray
#7d4566dimgray
Primary foreground
#fbf8fasnow
#fbf8fasnow
Secondary
#457d5cseagreen
#457d5cseagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e9f2ecwhitesmoke
#0d1611black
Muted foreground
#3c4841darkslategray
#b7c3bcsilver
Accent
#457d5cseagreen
#457d5cseagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a2220bfirebrick
#f04a2dtomato
Destructive foreground
#fde6e2mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7d4566dimgray
#7d4566dimgray

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 button6.84:1AA
Secondary button4.83:1AA
Muted text8.34:1AAA
Accent4.83:1AA
Destructive6.34:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.84:1AA
Secondary button4.83:1AA
Muted text10.10:1AAA
Accent4.83:1AA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.002 341.065);
  --foreground: oklch(0.084 0.02 341.109);
  --muted: oklch(0.952 0.012 160.721);
  --muted-foreground: oklch(0.39 0.019 159.79);
  --popover: oklch(0.991 0.002 341.065);
  --popover-foreground: oklch(0.084 0.02 341.109);
  --card: oklch(0.991 0.002 341.065);
  --card-foreground: oklch(0.084 0.02 341.109);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.468 0.088 345.093);
  --primary-foreground: oklch(0.983 0.004 341.105);
  --secondary: oklch(0.541 0.079 156.842);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.541 0.079 156.842);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.465 0.167 32.07);
  --destructive-foreground: oklch(0.943 0.025 29.583);
  --ring: oklch(0.468 0.088 345.093);
  --chart-1: oklch(0.468 0.088 345.093);
  --chart-2: oklch(0.541 0.079 156.842);
  --chart-3: oklch(0.541 0.079 156.842);
  --chart-4: oklch(0.572 0.084 156.803);
  --chart-5: oklch(0.468 0.097 345.51);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.191 0.017 158.704);
  --muted-foreground: oklch(0.805 0.016 160.529);
  --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.468 0.088 345.093);
  --primary-foreground: oklch(0.983 0.004 341.105);
  --secondary: oklch(0.541 0.079 156.842);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.541 0.079 156.842);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.643 0.207 32.383);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.468 0.088 345.093);
  --chart-1: oklch(0.468 0.088 345.093);
  --chart-2: oklch(0.541 0.079 156.842);
  --chart-3: oklch(0.541 0.079 156.842);
  --chart-4: oklch(0.572 0.084 156.803);
  --chart-5: oklch(0.468 0.097 345.51);
}