Gemsbok for shadcn/ui

Gemsbok is a shadcn/ui theme built around a deep indigo primary color (#06051f) with muted light indigo accents (#c1bfd9). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the deep indigo primary (#06051f) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#f7f7fdghostwhite
#020203black
Foreground
#04030cblack
#ffffffwhite
Card
#f7f7fdghostwhite
#020203black
Card foreground
#04030cblack
#ffffffwhite
Popover
#f7f7fdghostwhite
#020203black
Popover foreground
#04030cblack
#ffffffwhite
Primary
#06051fblack
#06051fblack
Primary foreground
#c9c5f6thistle
#c9c5f6thistle
Secondary
#dbdbe6gainsboro
#19191fblack
Secondary foreground
#3c3a55darkslategray
#aeadbddarkgray
Muted
#f0f0f4whitesmoke
#0b0b0fblack
Muted foreground
#555463dimgray
#9d9cabdarkgray
Accent
#c1bfd9lightsteelblue
#2c2b40darkslategray
Accent foreground
#282640darkslategray
#c6c5d8thistle
Destructive
#c61515firebrick
#d41616firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#06051fblack
#06051fblack

Contrast

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

Light mode
Text on background19.17:1AAA
Text on card19.17:1AAA
Primary button12.21:1AAA
Secondary button7.91:1AAA
Muted text6.52:1AA
Accent8.14:1AAA
Destructive5.94:1AA
Dark mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button12.21:1AAA
Secondary button7.92:1AAA
Muted text7.28:1AAA
Accent8.11:1AAA
Destructive5.33:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.977 0.009 289.309);
  --foreground: oklch(0.11 0.024 286.132);
  --muted: oklch(0.957 0.006 289.365);
  --muted-foreground: oklch(0.454 0.024 288.472);
  --popover: oklch(0.977 0.009 289.309);
  --popover-foreground: oklch(0.11 0.024 286.132);
  --card: oklch(0.977 0.009 289.309);
  --card-foreground: oklch(0.11 0.024 286.132);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.139 0.056 280.282);
  --primary-foreground: oklch(0.843 0.068 287.898);
  --secondary: oklch(0.894 0.016 289.145);
  --secondary-foreground: oklch(0.362 0.046 286.88);
  --accent: oklch(0.815 0.036 288.643);
  --accent-foreground: oklch(0.284 0.046 286.103);
  --destructive: oklch(0.527 0.206 28.239);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.139 0.056 280.282);
  --chart-1: oklch(0.139 0.056 280.282);
  --chart-2: oklch(0.894 0.016 289.145);
  --chart-3: oklch(0.815 0.036 288.643);
  --chart-4: oklch(0.921 0.012 289.238);
  --chart-5: oklch(0.137 0.059 279.629);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.009 288.004);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.15 0.009 288.286);
  --muted-foreground: oklch(0.698 0.021 288.899);
  --popover: oklch(0.084 0.009 288.004);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.084 0.009 288.004);
  --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.139 0.056 280.282);
  --primary-foreground: oklch(0.843 0.068 287.898);
  --secondary: oklch(0.216 0.012 288.409);
  --secondary-foreground: oklch(0.753 0.023 288.896);
  --accent: oklch(0.3 0.038 286.886);
  --accent-foreground: oklch(0.83 0.027 288.863);
  --destructive: oklch(0.554 0.217 28.287);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.139 0.056 280.282);
  --chart-1: oklch(0.139 0.056 280.282);
  --chart-2: oklch(0.216 0.012 288.409);
  --chart-3: oklch(0.3 0.038 286.886);
  --chart-4: oklch(0.247 0.015 288.318);
  --chart-5: oklch(0.137 0.059 279.629);
}