Junior for shadcn/ui

Junior is a shadcn/ui theme built around a muted deep teal primary color (#20312d) with muted light teal accents (#dee8e5). The light mode uses a neutral background (#f8fbfb). Dark mode keeps the muted deep teal primary (#20312d) on a neutral background (#020403).

Color palette

TokenLightDark
Background
#f8fbfbghostwhite
#020403black
Foreground
#010403black
#ffffffwhite
Card
#f8fbfbghostwhite
#020403black
Card foreground
#010403black
#ffffffwhite
Popover
#f8fbfbghostwhite
#020403black
Popover foreground
#010403black
#ffffffwhite
Primary
#20312ddarkslategray
#20312ddarkslategray
Primary foreground
#b5cfc8silver
#b5cfc8silver
Secondary
#dee8e5gainsboro
#1a2321black
Secondary foreground
#3d5750darkslategray
#adc2bdsilver
Muted
#dbe6e3gainsboro
#192421black
Muted foreground
#465953darkslategray
#a6b9b4darkgray
Accent
#dee8e5gainsboro
#1a2321black
Accent foreground
#3d5750darkslategray
#adc2bdsilver
Destructive
#930806darkred
#f62b28crimson
Destructive foreground
#fdcfcepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#20312ddarkslategray
#20312ddarkslategray

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button8.23:1AAA
Secondary button6.26:1AA
Muted text5.82:1AA
Accent6.26:1AA
Destructive6.58:1AA
Dark mode
Text on background20.61:1AAA
Text on card20.61:1AAA
Primary button8.23:1AAA
Secondary button8.58:1AAA
Muted text7.77:1AAA
Accent8.58:1AAA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 178.681);
  --foreground: oklch(0.099 0.012 178.887);
  --muted: oklch(0.915 0.012 178.411);
  --muted-foreground: oklch(0.445 0.025 177.073);
  --popover: oklch(0.987 0.004 178.681);
  --popover-foreground: oklch(0.099 0.012 178.887);
  --card: oklch(0.987 0.004 178.681);
  --card-foreground: oklch(0.099 0.012 178.887);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.298 0.024 176.184);
  --primary-foreground: oklch(0.832 0.029 177.738);
  --secondary: oklch(0.923 0.011 178.426);
  --secondary-foreground: oklch(0.434 0.034 176.265);
  --accent: oklch(0.923 0.011 178.426);
  --accent-foreground: oklch(0.434 0.034 176.265);
  --destructive: oklch(0.42 0.167 28.976);
  --destructive-foreground: oklch(0.893 0.052 19.317);
  --ring: oklch(0.298 0.024 176.184);
  --chart-1: oklch(0.298 0.024 176.184);
  --chart-2: oklch(0.923 0.011 178.426);
  --chart-3: oklch(0.923 0.011 178.426);
  --chart-4: oklch(0.944 0.008 178.531);
  --chart-5: oklch(0.301 0.027 175.822);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.008 178.857);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.248 0.016 176.832);
  --muted-foreground: oklch(0.771 0.022 177.937);
  --popover: oklch(0.097 0.008 178.857);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.097 0.008 178.857);
  --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.298 0.024 176.184);
  --primary-foreground: oklch(0.832 0.029 177.738);
  --secondary: oklch(0.247 0.014 177.057);
  --secondary-foreground: oklch(0.797 0.025 177.865);
  --accent: oklch(0.247 0.014 177.057);
  --accent-foreground: oklch(0.797 0.025 177.865);
  --destructive: oklch(0.627 0.235 27.978);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.298 0.024 176.184);
  --chart-1: oklch(0.298 0.024 176.184);
  --chart-2: oklch(0.247 0.014 177.057);
  --chart-3: oklch(0.247 0.014 177.057);
  --chart-4: oklch(0.281 0.017 176.944);
  --chart-5: oklch(0.301 0.027 175.822);
}