Athlete for shadcn/ui

Athlete is a shadcn/ui theme built around a vivid indigo primary color (#1308a0) with vivid yellow accents (#96a008). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid indigo primary (#1308a0) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#000000black
Foreground
#050410black
#f5f5f9whitesmoke
Card
#f8f8fcghostwhite
#030303black
Card foreground
#04030cblack
#f9f8fbghostwhite
Popover
#f8f8fcghostwhite
#030303black
Popover foreground
#04030cblack
#f9f8fbghostwhite
Primary
#1308a0darkblue
#1308a0darkblue
Primary foreground
#dfddfdlavender
#dfddfdlavender
Secondary
#96a008olive
#96a008olive
Secondary foreground
#000000black
#000000black
Muted
#dddddagainsboro
#252522darkslategray
Muted foreground
#64655ddimgray
#a1a29adarkgray
Accent
#96a008olive
#96a008olive
Accent foreground
#000000black
#000000black
Destructive
#c15110chocolate
#ec6313chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1308a0darkblue
#1308a0darkblue

Contrast

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

Light mode
Text on background19.76:1AAA
Text on card19.32:1AAA
Primary button10.12:1AAA
Secondary button7.31:1AAA
Muted text4.33:1AA Large
Accent7.31:1AAA
Destructive4.71:1AA
Dark mode
Text on background19.31:1AAA
Text on card19.54:1AAA
Primary button10.12:1AAA
Secondary button7.31:1AAA
Muted text5.93:1AA
Accent7.31:1AAA
Destructive6.34:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 289.421);
  --foreground: oklch(0.12 0.029 285.285);
  --muted: oklch(0.897 0.005 109.578);
  --muted-foreground: oklch(0.503 0.012 109.92);
  --popover: oklch(0.979 0.006 289.362);
  --popover-foreground: oklch(0.108 0.025 285.818);
  --card: oklch(0.979 0.006 289.362);
  --card-foreground: oklch(0.108 0.025 285.818);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.33 0.213 267.732);
  --primary-foreground: oklch(0.909 0.044 288.558);
  --secondary: oklch(0.674 0.15 114.226);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.674 0.15 114.226);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.573 0.16 44.201);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.33 0.213 267.732);
  --chart-1: oklch(0.33 0.213 267.732);
  --chart-2: oklch(0.674 0.15 114.226);
  --chart-3: oklch(0.674 0.15 114.226);
  --chart-4: oklch(0.719 0.16 114.254);
  --chart-5: oklch(0.331 0.218 267.113);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.972 0.006 289.369);
  --muted: oklch(0.265 0.006 109.932);
  --muted-foreground: oklch(0.709 0.011 109.768);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.981 0.004 289.406);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.981 0.004 289.406);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.33 0.213 267.732);
  --primary-foreground: oklch(0.909 0.044 288.558);
  --secondary: oklch(0.674 0.15 114.226);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.674 0.15 114.226);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.663 0.187 43.852);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.33 0.213 267.732);
  --chart-1: oklch(0.33 0.213 267.732);
  --chart-2: oklch(0.674 0.15 114.226);
  --chart-3: oklch(0.674 0.15 114.226);
  --chart-4: oklch(0.719 0.16 114.254);
  --chart-5: oklch(0.331 0.218 267.113);
}