Gray for shadcn/ui

Gray is a shadcn/ui theme built around a vivid pink primary color (#f44e9b) with vivid blue accents (#4e9bf4). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the vivid pink primary (#f44e9b) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#fdf7fasnow
#040102black
Foreground
#090105black
#ffffffwhite
Card
#fcf2f7lavenderblush
#070305black
Card foreground
#040102black
#ffffffwhite
Popover
#fdf7fasnow
#040102black
Popover foreground
#090105black
#ffffffwhite
Primary
#f44e9bhotpink
#f44e9bhotpink
Primary foreground
#0e0107black
#0e0107black
Secondary
#9bf44egreenyellow
#9bf44egreenyellow
Secondary foreground
#070e01black
#070e01black
Muted
#e8ede3beige
#171c12black
Muted foreground
#4e5a44darkolivegreen
#afbba5darkgray
Accent
#4e9bf4cornflowerblue
#4e9bf4cornflowerblue
Accent foreground
#01070eblack
#01070eblack
Destructive
#b41504firebrick
#fb422dtomato
Destructive foreground
#ffedeblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f44e9bhotpink
#f44e9bhotpink

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.03:1AAA
Primary button6.22:1AA
Secondary button14.36:1AAA
Muted text6.16:1AA
Accent7.05:1AAA
Destructive6.08:1AA
Dark mode
Text on background20.75:1AAA
Text on card20.51:1AAA
Primary button6.22:1AA
Secondary button14.36:1AAA
Muted text8.64:1AAA
Accent7.05:1AAA
Destructive3.55:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.008 347.134);
  --foreground: oklch(0.103 0.028 346.525);
  --muted: oklch(0.94 0.015 129.948);
  --muted-foreground: oklch(0.451 0.038 130.67);
  --popover: oklch(0.981 0.008 347.134);
  --popover-foreground: oklch(0.103 0.028 346.525);
  --card: oklch(0.971 0.012 347.25);
  --card-foreground: oklch(0.081 0.022 346.525);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.674 0.212 355.756);
  --primary-foreground: oklch(0.115 0.04 347.375);
  --secondary: oklch(0.879 0.214 133.414);
  --secondary-foreground: oklch(0.152 0.036 128.557);
  --accent: oklch(0.682 0.152 253.517);
  --accent-foreground: oklch(0.124 0.024 240.077);
  --destructive: oklch(0.491 0.191 30.489);
  --destructive-foreground: oklch(0.959 0.019 25.165);
  --ring: oklch(0.674 0.212 355.756);
  --chart-1: oklch(0.674 0.212 355.756);
  --chart-2: oklch(0.879 0.214 133.414);
  --chart-3: oklch(0.682 0.152 253.517);
  --chart-4: oklch(0.886 0.201 132.951);
  --chart-5: oklch(0.675 0.218 356.091);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.086 0.013 346.69);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.218 0.022 130.845);
  --muted-foreground: oklch(0.777 0.033 130.223);
  --popover: oklch(0.086 0.013 346.69);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.108 0.016 346.69);
  --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.674 0.212 355.756);
  --primary-foreground: oklch(0.115 0.04 347.375);
  --secondary: oklch(0.879 0.214 133.414);
  --secondary-foreground: oklch(0.152 0.036 128.557);
  --accent: oklch(0.682 0.152 253.517);
  --accent-foreground: oklch(0.124 0.024 240.077);
  --destructive: oklch(0.652 0.224 30.325);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.674 0.212 355.756);
  --chart-1: oklch(0.674 0.212 355.756);
  --chart-2: oklch(0.879 0.214 133.414);
  --chart-3: oklch(0.682 0.152 253.517);
  --chart-4: oklch(0.886 0.201 132.951);
  --chart-5: oklch(0.675 0.218 356.091);
}