Hockey for shadcn/ui

Hockey is a shadcn/ui theme built around an indigo primary color (#674ad9) with violet accents (#ae4ad9). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#674ad9) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#ffffffwhite
#040307black
Foreground
#070510black
#f6f5fawhitesmoke
Card
#ffffffwhite
#040307black
Card foreground
#070510black
#f6f5fawhitesmoke
Popover
#ffffffwhite
#040307black
Popover foreground
#070510black
#f6f5fawhitesmoke
Primary
#674ad9slateblue
#674ad9slateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4a75d9royalblue
#4a75d9royalblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e7ebf3lavender
#0c0f18black
Muted foreground
#393f4cdarkslategray
#b3b9c6silver
Accent
#ae4ad9mediumorchid
#ae4ad9mediumorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#800d00maroon
#ff1900red
Destructive foreground
#ffbab3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#674ad9slateblue
#674ad9slateblue

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button5.91:1AA
Secondary button4.35:1AA Large
Muted text8.82:1AAA
Accent4.39:1AA Large
Destructive6.57:1AA
Dark mode
Text on background18.95:1AAA
Text on card18.95:1AAA
Primary button5.91:1AA
Secondary button4.35:1AA Large
Muted text9.70:1AAA
Accent4.39:1AA Large
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.026 293.692);
  --muted: oklch(0.939 0.012 267.345);
  --muted-foreground: oklch(0.366 0.024 266.924);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.126 0.026 293.692);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.126 0.026 293.692);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.524 0.207 286.014);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.582 0.16 264.513);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.601 0.218 314.036);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.382 0.148 31.096);
  --destructive-foreground: oklch(0.851 0.081 26.048);
  --ring: oklch(0.524 0.207 286.014);
  --chart-1: oklch(0.524 0.207 286.014);
  --chart-2: oklch(0.582 0.16 264.513);
  --chart-3: oklch(0.601 0.218 314.036);
  --chart-4: oklch(0.61 0.148 264.892);
  --chart-5: oklch(0.52 0.215 285.351);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.015 294.92);
  --foreground: oklch(0.972 0.006 295.466);
  --muted: oklch(0.171 0.018 266.498);
  --muted-foreground: oklch(0.785 0.019 267.26);
  --popover: oklch(0.103 0.015 294.92);
  --popover-foreground: oklch(0.972 0.006 295.466);
  --card: oklch(0.103 0.015 294.92);
  --card-foreground: oklch(0.972 0.006 295.466);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.524 0.207 286.014);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.582 0.16 264.513);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.601 0.218 314.036);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.634 0.252 30.244);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.524 0.207 286.014);
  --chart-1: oklch(0.524 0.207 286.014);
  --chart-2: oklch(0.582 0.16 264.513);
  --chart-3: oklch(0.601 0.218 314.036);
  --chart-4: oklch(0.61 0.148 264.892);
  --chart-5: oklch(0.52 0.215 285.351);
}