Generate feedback colors (success, warning, error, and info) for shadcn/ui

Go to generator

10000+Themes for shadcn/ui

Athletics for shadcn/ui

Athletics is a shadcn/ui theme built around a yellow primary color (#d5ce9f) with muted light yellow accents (#d3cfb6). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#d5ce9f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0f0e05black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#0c0b04black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#0f0e05black
#ffffffwhite
Primary
#d5ce9ftan
#d5ce9ftan
Primary foreground
#2e2b14black
#2e2b14black
Secondary
#dedccegainsboro
#333124darkslategray
Secondary foreground
#494631darkolivegreen
#cfccbasilver
Muted
#f4f4f0whitesmoke
#0f0e0bblack
Muted foreground
#676556dimgray
#a9a798darkgray
Accent
#d3cfb6silver
#4c482fdarkolivegreen
Accent foreground
#363321darkslategray
#e0ddccgainsboro
Destructive
#9d1d01darkred
#fe3406orangered
Destructive foreground
#ffdad1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d5ce9ftan
#d5ce9ftan

Contrast

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

Light mode
Text on background19.34:1AAA
Text on card19.28:1AAA
Primary button8.93:1AAA
Secondary button6.92:1AA
Muted text5.31:1AA
Accent8.09:1AAA
Destructive6.18:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button8.93:1AAA
Secondary button8.08:1AAA
Muted text7.97:1AAA
Accent6.76:1AA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.162 0.019 101.433);
  --muted: oklch(0.965 0.004 99.404);
  --muted-foreground: oklch(0.503 0.023 99.96);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.162 0.019 101.433);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.146 0.017 102.265);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.845 0.062 100.279);
  --primary-foreground: oklch(0.285 0.037 100.675);
  --secondary: oklch(0.893 0.019 99.649);
  --secondary-foreground: oklch(0.392 0.034 100.405);
  --accent: oklch(0.851 0.035 99.901);
  --accent-foreground: oklch(0.32 0.031 100.5);
  --destructive: oklch(0.452 0.166 32.922);
  --destructive-foreground: oklch(0.916 0.043 32.748);
  --ring: oklch(0.845 0.062 100.279);
  --chart-1: oklch(0.845 0.062 100.279);
  --chart-2: oklch(0.893 0.019 99.649);
  --chart-3: oklch(0.851 0.035 99.901);
  --chart-4: oklch(0.913 0.016 99.587);
  --chart-5: oklch(0.85 0.067 100.327);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.163 0.006 99.88);
  --muted-foreground: oklch(0.726 0.021 99.749);
  --popover: oklch(0 0 0);
  --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.845 0.062 100.279);
  --primary-foreground: oklch(0.285 0.037 100.675);
  --secondary: oklch(0.311 0.023 100.288);
  --secondary-foreground: oklch(0.843 0.025 99.761);
  --accent: oklch(0.398 0.04 100.52);
  --accent-foreground: oklch(0.896 0.023 99.705);
  --destructive: oklch(0.645 0.239 32.394);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.845 0.062 100.279);
  --chart-1: oklch(0.845 0.062 100.279);
  --chart-2: oklch(0.311 0.023 100.288);
  --chart-3: oklch(0.398 0.04 100.52);
  --chart-4: oklch(0.345 0.026 100.312);
  --chart-5: oklch(0.85 0.067 100.327);
}