Gripper for shadcn/ui

Gripper is a shadcn/ui theme built around a muted deep teal primary color (#070d0c) with muted deep blue accents (#070b0d). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the muted deep teal primary (#070d0c) on a neutral background (#020807).

Color palette

TokenLightDark
Background
#f8fcfbmintcream
#020807black
Foreground
#010404black
#ffffffwhite
Card
#f8fcfbmintcream
#020807black
Card foreground
#010404black
#ffffffwhite
Popover
#f8fcfbmintcream
#020807black
Popover foreground
#010404black
#ffffffwhite
Primary
#070d0cblack
#070d0cblack
Primary foreground
#89bdb4darkseagreen
#89bdb4darkseagreen
Secondary
#070d09black
#070d09black
Secondary foreground
#89bd9bdarkseagreen
#89bd9bdarkseagreen
Muted
#d2e4d8gainsboro
#1b2d21darkslategray
Muted foreground
#5d6560dimgray
#9aa29ddarkgray
Accent
#070b0dblack
#070b0dblack
Accent foreground
#89acbddarkgray
#89acbddarkgray
Destructive
#7b1b0amaroon
#ed4426orangered
Destructive foreground
#fac6bdpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#070d0cblack
#070d0cblack

Contrast

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

Light mode
Text on background19.86:1AAA
Text on card19.86:1AAA
Primary button9.32:1AAA
Secondary button9.16:1AAA
Muted text4.53:1AA
Accent8.17:1AAA
Destructive6.94:1AA
Dark mode
Text on background20.18:1AAA
Text on card20.18:1AAA
Primary button9.32:1AAA
Secondary button9.16:1AAA
Muted text5.58:1AA
Accent8.17:1AAA
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 185.347);
  --foreground: oklch(0.101 0.014 185.064);
  --muted: oklch(0.903 0.025 156.694);
  --muted-foreground: oklch(0.498 0.013 156.743);
  --popover: oklch(0.987 0.004 185.347);
  --popover-foreground: oklch(0.101 0.014 185.064);
  --card: oklch(0.987 0.004 185.347);
  --card-foreground: oklch(0.101 0.014 185.064);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.153 0.01 184.176);
  --primary-foreground: oklch(0.759 0.055 183.395);
  --secondary: oklch(0.151 0.013 156.415);
  --secondary-foreground: oklch(0.752 0.073 155.089);
  --accent: oklch(0.147 0.008 228.023);
  --accent-foreground: oklch(0.724 0.045 229.763);
  --destructive: oklch(0.383 0.133 32.254);
  --destructive-foreground: oklch(0.87 0.061 29.879);
  --ring: oklch(0.153 0.01 184.176);
  --chart-1: oklch(0.153 0.01 184.176);
  --chart-2: oklch(0.151 0.013 156.415);
  --chart-3: oklch(0.147 0.008 228.023);
  --chart-4: oklch(0.192 0.02 154.913);
  --chart-5: oklch(0.153 0.011 184.056);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.014 185.133);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.276 0.032 154.573);
  --muted-foreground: oklch(0.704 0.012 156.929);
  --popover: oklch(0.124 0.014 185.133);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.014 185.133);
  --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.153 0.01 184.176);
  --primary-foreground: oklch(0.759 0.055 183.395);
  --secondary: oklch(0.151 0.013 156.415);
  --secondary-foreground: oklch(0.752 0.073 155.089);
  --accent: oklch(0.147 0.008 228.023);
  --accent-foreground: oklch(0.724 0.045 229.763);
  --destructive: oklch(0.631 0.211 32.356);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.153 0.01 184.176);
  --chart-1: oklch(0.153 0.01 184.176);
  --chart-2: oklch(0.151 0.013 156.415);
  --chart-3: oklch(0.147 0.008 228.023);
  --chart-4: oklch(0.192 0.02 154.913);
  --chart-5: oklch(0.153 0.011 184.056);
}