gg for shadcn/ui

gg is a shadcn/ui theme built around a deep indigo primary color (#191240) with muted light indigo accents (#bab7cd). The light mode uses a neutral background (#f8f6fd). Dark mode keeps the deep indigo primary (#191240) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#f8f6fdghostwhite
#020203black
Foreground
#04030dblack
#fcfcfdwhite
Card
#f8f6fdghostwhite
#020203black
Card foreground
#04030dblack
#fcfcfdwhite
Popover
#f8f6fdghostwhite
#020203black
Popover foreground
#04030dblack
#fcfcfdwhite
Primary
#191240midnightblue
#191240midnightblue
Primary foreground
#aaa0e4lightsteelblue
#aaa0e4lightsteelblue
Secondary
#cecdd6lightgrey
#313036darkslategray
Secondary foreground
#34323edarkslategray
#cac9cflightgrey
Muted
#edecf3lavender
#0d0c13black
Muted foreground
#514f5fdimgray
#a3a0b0darkgray
Accent
#bab7cdsilver
#42404fdarkslategray
Accent foreground
#242130darkslategray
#dedde3gainsboro
Destructive
#bd1e0ffirebrick
#ed3221orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e5e6gainsboro
#1e1e1fblack
Input
#e5e5e6gainsboro
#1e1e1fblack
Ring
#191240midnightblue
#191240midnightblue

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 button7.37:1AAA
Secondary button7.94:1AAA
Muted text6.81:1AA
Accent8.03:1AAA
Destructive6.27:1AA
Dark mode
Text on background20.25:1AAA
Text on card20.25:1AAA
Primary button7.37:1AAA
Secondary button7.90:1AAA
Muted text7.61:1AAA
Accent7.46:1AAA
Destructive4.13:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.977 0.009 293.131);
  --foreground: oklch(0.106 0.029 290.728);
  --muted: oklch(0.947 0.009 293.127);
  --muted-foreground: oklch(0.435 0.026 292.182);
  --popover: oklch(0.977 0.009 293.131);
  --popover-foreground: oklch(0.106 0.029 290.728);
  --card: oklch(0.977 0.009 293.131);
  --card-foreground: oklch(0.106 0.029 290.728);
  --border: oklch(0.922 0.001 293.278);
  --input: oklch(0.922 0.001 293.278);
  --primary: oklch(0.223 0.083 284.25);
  --primary-foreground: oklch(0.738 0.098 290.657);
  --secondary: oklch(0.851 0.013 293.026);
  --secondary-foreground: oklch(0.325 0.02 292.142);
  --accent: oklch(0.788 0.031 292.558);
  --accent-foreground: oklch(0.259 0.027 291.231);
  --destructive: oklch(0.513 0.194 30.082);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.223 0.083 284.25);
  --chart-1: oklch(0.223 0.083 284.25);
  --chart-2: oklch(0.851 0.013 293.026);
  --chart-3: oklch(0.788 0.031 292.558);
  --chart-4: oklch(0.876 0.01 293.081);
  --chart-5: oklch(0.221 0.087 283.523);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.083 0.01 292.399);
  --foreground: oklch(0.992 0.001 293.285);
  --muted: oklch(0.159 0.014 291.568);
  --muted-foreground: oklch(0.714 0.023 292.709);
  --popover: oklch(0.083 0.01 292.399);
  --popover-foreground: oklch(0.992 0.001 293.285);
  --card: oklch(0.083 0.01 292.399);
  --card-foreground: oklch(0.992 0.001 293.285);
  --border: oklch(0.236 0.002 293.12);
  --input: oklch(0.236 0.002 293.12);
  --primary: oklch(0.223 0.083 284.25);
  --primary-foreground: oklch(0.738 0.098 290.657);
  --secondary: oklch(0.314 0.009 292.761);
  --secondary-foreground: oklch(0.839 0.007 293.148);
  --accent: oklch(0.38 0.024 292.085);
  --accent-foreground: oklch(0.901 0.008 293.132);
  --destructive: oklch(0.615 0.223 29.942);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.223 0.083 284.25);
  --chart-1: oklch(0.223 0.083 284.25);
  --chart-2: oklch(0.314 0.009 292.761);
  --chart-3: oklch(0.38 0.024 292.085);
  --chart-4: oklch(0.343 0.01 292.744);
  --chart-5: oklch(0.221 0.087 283.523);
}