Athletic for shadcn/ui

Athletic is a shadcn/ui theme built around a deep violet primary color (#160f1f) with deep green accents (#0f1f16). The light mode uses a neutral background (#faf7fd). Dark mode keeps the deep violet primary (#160f1f) on a neutral background (#020104).

Color palette

TokenLightDark
Background
#faf7fdghostwhite
#020104black
Foreground
#020104black
#fcfcfdwhite
Card
#f7f3fcghostwhite
#050208black
Card foreground
#000000black
#ffffffwhite
Popover
#faf7fdghostwhite
#020104black
Popover foreground
#020104black
#fcfcfdwhite
Primary
#160f1fblack
#160f1fblack
Primary foreground
#ac95cbdarkgray
#ac95cbdarkgray
Secondary
#1f160fblack
#1f160fblack
Secondary foreground
#cbac95tan
#cbac95tan
Muted
#f0eae6linen
#1a140fblack
Muted foreground
#4f4640darkslategray
#bfb7b0silver
Accent
#0f1f16black
#0f1f16black
Accent foreground
#95cbacdarkseagreen
#95cbacdarkseagreen
Destructive
#872e08saddlebrown
#f4753etomato
Destructive foreground
#fcd6c5peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#160f1fblack
#160f1fblack

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.15:1AAA
Primary button7.05:1AAA
Secondary button8.37:1AAA
Muted text7.70:1AAA
Accent9.31:1AAA
Destructive6.42:1AA
Dark mode
Text on background20.27:1AAA
Text on card20.58:1AAA
Primary button7.05:1AAA
Secondary button8.37:1AAA
Muted text9.24:1AAA
Accent9.31:1AAA
Destructive7.43:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.008 305.627);
  --foreground: oklch(0.077 0.022 307.411);
  --muted: oklch(0.94 0.009 60.157);
  --muted-foreground: oklch(0.402 0.016 59.711);
  --popover: oklch(0.98 0.008 305.627);
  --popover-foreground: oklch(0.077 0.022 307.411);
  --card: oklch(0.969 0.012 305.569);
  --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.186 0.032 303.33);
  --primary-foreground: oklch(0.71 0.081 304.206);
  --secondary: oklch(0.209 0.019 58.861);
  --secondary-foreground: oklch(0.766 0.048 59.381);
  --accent: oklch(0.221 0.028 158.276);
  --accent-foreground: oklch(0.796 0.071 159.44);
  --destructive: oklch(0.428 0.13 39.539);
  --destructive-foreground: oklch(0.903 0.048 44.521);
  --ring: oklch(0.186 0.032 303.33);
  --chart-1: oklch(0.186 0.032 303.33);
  --chart-2: oklch(0.209 0.019 58.861);
  --chart-3: oklch(0.221 0.028 158.276);
  --chart-4: oklch(0.243 0.025 58.676);
  --chart-5: oklch(0.185 0.035 303.078);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.081 0.016 306.919);
  --foreground: oklch(0.991 0.002 305.715);
  --muted: oklch(0.196 0.013 59.334);
  --muted-foreground: oklch(0.783 0.014 60.039);
  --popover: oklch(0.081 0.016 306.919);
  --popover-foreground: oklch(0.991 0.002 305.715);
  --card: oklch(0.102 0.021 306.919);
  --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.186 0.032 303.33);
  --primary-foreground: oklch(0.71 0.081 304.206);
  --secondary: oklch(0.209 0.019 58.861);
  --secondary-foreground: oklch(0.766 0.048 59.381);
  --accent: oklch(0.221 0.028 158.276);
  --accent-foreground: oklch(0.796 0.071 159.44);
  --destructive: oklch(0.702 0.171 42.254);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.186 0.032 303.33);
  --chart-1: oklch(0.186 0.032 303.33);
  --chart-2: oklch(0.209 0.019 58.861);
  --chart-3: oklch(0.221 0.028 158.276);
  --chart-4: oklch(0.243 0.025 58.676);
  --chart-5: oklch(0.185 0.035 303.078);
}