Junior for shadcn/ui

Junior is a shadcn/ui theme built around a light blue primary color (#b4c1ee) with near-white accents (#e7e7e9). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the light blue primary (#b4c1ee) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7f8fdghostwhite
#000000black
Foreground
#050914black
#ffffffwhite
Card
#f2f5fcaliceblue
#030303black
Card foreground
#040710black
#ffffffwhite
Popover
#f2f5fcaliceblue
#030303black
Popover foreground
#040710black
#ffffffwhite
Primary
#b4c1eelightsteelblue
#b4c1eelightsteelblue
Primary foreground
#14255cmidnightblue
#14255cmidnightblue
Secondary
#e7e7e9lavender
#212530darkslategray
Secondary foreground
#4b4d53darkslategray
#b7bccdsilver
Muted
#e6e8eflavender
#101219black
Muted foreground
#42454cdarkslategray
#b3b5bdsilver
Accent
#e7e7e9lavender
#212530darkslategray
Accent foreground
#4b4d53darkslategray
#b7bccdsilver
Destructive
#bf2308firebrick
#f75336tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b4c1eelightsteelblue
#b4c1eelightsteelblue

Contrast

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

Light mode
Text on background18.76:1AAA
Text on card18.42:1AAA
Primary button8.17:1AAA
Secondary button6.86:1AA
Muted text7.84:1AAA
Accent6.86:1AA
Destructive6.06:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button8.17:1AAA
Secondary button8.08:1AAA
Muted text9.15:1AAA
Accent8.08:1AAA
Destructive6.23:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 272.583);
  --foreground: oklch(0.141 0.026 267.612);
  --muted: oklch(0.931 0.01 272.54);
  --muted-foreground: oklch(0.39 0.013 272.276);
  --popover: oklch(0.97 0.01 272.544);
  --popover-foreground: oklch(0.131 0.022 266.416);
  --card: oklch(0.97 0.01 272.544);
  --card-foreground: oklch(0.131 0.022 266.416);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.817 0.065 271.664);
  --primary-foreground: oklch(0.288 0.101 266.97);
  --secondary: oklch(0.929 0.002 272.63);
  --secondary-foreground: oklch(0.421 0.01 272.39);
  --accent: oklch(0.929 0.002 272.63);
  --accent-foreground: oklch(0.421 0.01 272.39);
  --destructive: oklch(0.52 0.193 31.764);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.817 0.065 271.664);
  --chart-1: oklch(0.817 0.065 271.664);
  --chart-2: oklch(0.929 0.002 272.63);
  --chart-3: oklch(0.929 0.002 272.63);
  --chart-4: oklch(0.953 0.002 272.639);
  --chart-5: oklch(0.815 0.069 271.606);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.182 0.016 271.564);
  --muted-foreground: oklch(0.773 0.011 272.504);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.065 271.664);
  --primary-foreground: oklch(0.288 0.101 266.97);
  --secondary: oklch(0.266 0.022 271.642);
  --secondary-foreground: oklch(0.796 0.024 272.316);
  --accent: oklch(0.266 0.022 271.642);
  --accent-foreground: oklch(0.796 0.024 272.316);
  --destructive: oklch(0.663 0.204 32.36);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.817 0.065 271.664);
  --chart-1: oklch(0.817 0.065 271.664);
  --chart-2: oklch(0.266 0.022 271.642);
  --chart-3: oklch(0.266 0.022 271.642);
  --chart-4: oklch(0.294 0.025 271.589);
  --chart-5: oklch(0.815 0.069 271.606);
}