Gymnast for shadcn/ui

Gymnast is a shadcn/ui theme built around a red primary color (#792a30) with teal accents (#2a7974). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#792a30) on a red-tinted background (#0e0606).

Color palette

TokenLightDark
Background
#fefbfbsnow
#0e0606black
Foreground
#090102black
#f9f5f6whitesmoke
Card
#fefbfbsnow
#0e0606black
Card foreground
#090102black
#f9f5f6whitesmoke
Popover
#fefbfbsnow
#0e0606black
Popover foreground
#090102black
#f9f5f6whitesmoke
Primary
#792a30saddlebrown
#792a30saddlebrown
Primary foreground
#f4e1e2mistyrose
#f4e1e2mistyrose
Secondary
#2a7974seagreen
#2a7974seagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d6e1e0gainsboro
#1e2928darkslategray
Muted foreground
#5d6f6edimgray
#90a2a1darkgray
Accent
#2a7974seagreen
#2a7974seagreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#970e02darkred
#e31502red
Destructive foreground
#fed1cdpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#792a30saddlebrown
#792a30saddlebrown

Contrast

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

Light mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button7.63:1AAA
Secondary button5.15:1AA
Muted text3.95:1AA Large
Accent5.15:1AA
Destructive6.37:1AA
Dark mode
Text on background18.53:1AAA
Text on card18.53:1AAA
Primary button7.63:1AAA
Secondary button5.15:1AA
Muted text5.59:1AA
Accent5.15:1AA
Destructive4.79:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 12.505);
  --foreground: oklch(0.1 0.025 15.634);
  --muted: oklch(0.9 0.012 192.159);
  --muted-foreground: oklch(0.527 0.022 191.552);
  --popover: oklch(0.99 0.004 12.505);
  --popover-foreground: oklch(0.1 0.025 15.634);
  --card: oklch(0.99 0.004 12.505);
  --card-foreground: oklch(0.1 0.025 15.634);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.404 0.109 19.566);
  --primary-foreground: oklch(0.925 0.022 12.915);
  --secondary: oklch(0.526 0.076 188.913);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.526 0.076 188.913);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.431 0.169 30.39);
  --destructive-foreground: oklch(0.898 0.052 24.243);
  --ring: oklch(0.404 0.109 19.566);
  --chart-1: oklch(0.404 0.109 19.566);
  --chart-2: oklch(0.526 0.076 188.913);
  --chart-3: oklch(0.526 0.076 188.913);
  --chart-4: oklch(0.561 0.081 188.879);
  --chart-5: oklch(0.404 0.116 20.14);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.017 14.2);
  --foreground: oklch(0.974 0.004 12.515);
  --muted: oklch(0.271 0.015 191.266);
  --muted-foreground: oklch(0.698 0.021 191.805);
  --popover: oklch(0.136 0.017 14.2);
  --popover-foreground: oklch(0.974 0.004 12.515);
  --card: oklch(0.136 0.017 14.2);
  --card-foreground: oklch(0.974 0.004 12.515);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.404 0.109 19.566);
  --primary-foreground: oklch(0.925 0.022 12.915);
  --secondary: oklch(0.526 0.076 188.913);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.526 0.076 188.913);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.581 0.231 30.053);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.404 0.109 19.566);
  --chart-1: oklch(0.404 0.109 19.566);
  --chart-2: oklch(0.526 0.076 188.913);
  --chart-3: oklch(0.526 0.076 188.913);
  --chart-4: oklch(0.561 0.081 188.879);
  --chart-5: oklch(0.404 0.116 20.14);
}