Gripping for shadcn/ui

Gripping is a shadcn/ui theme built around a vivid deep pink primary color (#780d2d) with vivid deep blue accents (#0d2d78). The light mode uses a neutral background (#fefbfc). Dark mode keeps the vivid deep pink primary (#780d2d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfcsnow
#000000black
Foreground
#0d0205black
#ffffffwhite
Card
#fdf7f9snow
#030303black
Card foreground
#090104black
#ffffffwhite
Popover
#fdf7f9snow
#030303black
Popover foreground
#090104black
#ffffffwhite
Primary
#780d2dmaroon
#780d2dmaroon
Primary foreground
#f8bed0pink
#f8bed0pink
Secondary
#2d780dforestgreen
#2d780dforestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#edf6eahoneydew
#0d1509black
Muted foreground
#4a5346darkslategray
#b0b9acdarkgray
Accent
#0d2d78midnightblue
#0d2d78midnightblue
Accent foreground
#bed0f8lightblue
#bed0f8lightblue
Destructive
#df4007orangered
#ed4507orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#780d2dmaroon
#780d2dmaroon

Contrast

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

Light mode
Text on background19.86:1AAA
Text on card19.51:1AAA
Primary button7.01:1AAA
Secondary button5.52:1AA
Muted text7.23:1AAA
Accent8.17:1AAA
Destructive4.31:1AA Large
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.01:1AAA
Secondary button5.52:1AA
Muted text9.18:1AAA
Accent8.17:1AAA
Destructive3.84:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 356.747);
  --foreground: oklch(0.116 0.032 356.818);
  --muted: oklch(0.963 0.018 136.09);
  --muted-foreground: oklch(0.429 0.023 136.221);
  --popover: oklch(0.981 0.006 356.838);
  --popover-foreground: oklch(0.101 0.027 356.231);
  --card: oklch(0.981 0.006 356.838);
  --card-foreground: oklch(0.101 0.027 356.231);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.372 0.139 11.596);
  --primary-foreground: oklch(0.859 0.07 358.898);
  --secondary: oklch(0.506 0.153 139);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.328 0.134 263.317);
  --accent-foreground: oklch(0.857 0.06 266.877);
  --destructive: oklch(0.601 0.202 36.094);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.372 0.139 11.596);
  --chart-1: oklch(0.372 0.139 11.596);
  --chart-2: oklch(0.506 0.153 139);
  --chart-3: oklch(0.328 0.134 263.317);
  --chart-4: oklch(0.547 0.166 139.073);
  --chart-5: oklch(0.375 0.142 12.275);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.184 0.027 136.647);
  --muted-foreground: oklch(0.774 0.02 136.115);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.372 0.139 11.596);
  --primary-foreground: oklch(0.859 0.07 358.898);
  --secondary: oklch(0.506 0.153 139);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.328 0.134 263.317);
  --accent-foreground: oklch(0.857 0.06 266.877);
  --destructive: oklch(0.63 0.213 35.997);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.372 0.139 11.596);
  --chart-1: oklch(0.372 0.139 11.596);
  --chart-2: oklch(0.506 0.153 139);
  --chart-3: oklch(0.328 0.134 263.317);
  --chart-4: oklch(0.547 0.166 139.073);
  --chart-5: oklch(0.375 0.142 12.275);
}