Sophomore for shadcn/ui

Sophomore is a shadcn/ui theme built around a light red primary color (#e4b7aa) with light indigo accents (#b7aae4). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#e4b7aa) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#ffffffwhite
#040201black
Foreground
#000000black
#fdfcfcsnow
Card
#fcfcfcsnow
#080402black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#040201black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#e4b7aatan
#e4b7aatan
Primary foreground
#462116maroon
#462116maroon
Secondary
#aae4b7palegreen
#aae4b7palegreen
Secondary foreground
#164621darkgreen
#164621darkgreen
Muted
#edf7f0honeydew
#08120ablack
Muted foreground
#4f5f53dimgray
#a0b0a4darkgray
Accent
#b7aae4lightsteelblue
#b7aae4lightsteelblue
Accent foreground
#211646midnightblue
#211646midnightblue
Destructive
#a6240cfirebrick
#e83211orangered
Destructive foreground
#fdebe7linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e4b7aatan
#e4b7aatan

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.84:1AAA
Secondary button7.50:1AAA
Muted text6.20:1AA
Accent7.78:1AAA
Destructive6.33:1AA
Dark mode
Text on background20.23:1AAA
Text on card20.44:1AAA
Primary button7.84:1AAA
Secondary button7.50:1AAA
Muted text8.41:1AAA
Accent7.78:1AAA
Destructive4.28:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.967 0.014 153);
  --muted-foreground: oklch(0.467 0.027 152.251);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.817 0.055 37.592);
  --primary-foreground: oklch(0.297 0.06 37.701);
  --secondary: oklch(0.867 0.086 151.488);
  --secondary-foreground: oklch(0.351 0.081 148.33);
  --accent: oklch(0.769 0.083 295.068);
  --accent-foreground: oklch(0.246 0.085 289.319);
  --destructive: oklch(0.474 0.17 32.096);
  --destructive-foreground: oklch(0.953 0.021 29.556);
  --ring: oklch(0.817 0.055 37.592);
  --chart-1: oklch(0.817 0.055 37.592);
  --chart-2: oklch(0.867 0.086 151.488);
  --chart-3: oklch(0.769 0.083 295.068);
  --chart-4: oklch(0.885 0.074 151.78);
  --chart-5: oklch(0.816 0.059 37.593);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.01 44.285);
  --foreground: oklch(0.992 0.001 37.736);
  --muted: oklch(0.168 0.021 151.276);
  --muted-foreground: oklch(0.742 0.024 152.695);
  --popover: oklch(0.089 0.01 44.285);
  --popover-foreground: oklch(0.992 0.001 37.736);
  --card: oklch(0.112 0.012 44.285);
  --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.817 0.055 37.592);
  --primary-foreground: oklch(0.297 0.06 37.701);
  --secondary: oklch(0.867 0.086 151.488);
  --secondary-foreground: oklch(0.351 0.081 148.33);
  --accent: oklch(0.769 0.083 295.068);
  --accent-foreground: oklch(0.246 0.085 289.319);
  --destructive: oklch(0.606 0.221 31.946);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.817 0.055 37.592);
  --chart-1: oklch(0.817 0.055 37.592);
  --chart-2: oklch(0.867 0.086 151.488);
  --chart-3: oklch(0.769 0.083 295.068);
  --chart-4: oklch(0.885 0.074 151.78);
  --chart-5: oklch(0.816 0.059 37.593);
}