Available Grapest for shadcn/ui

Available Grapest is a shadcn/ui theme built around a vivid deep purple primary color (#850569) with muted light purple accents (#d8cad5). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the vivid deep purple primary (#850569) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#000000black
Foreground
#080207black
#ffffffwhite
Card
#fcf8fbsnow
#000000black
Card foreground
#080207black
#ffffffwhite
Popover
#fcf8fbsnow
#000000black
Popover foreground
#080207black
#ffffffwhite
Primary
#850569purple
#850569purple
Primary foreground
#fdbfefpink
#fdbfefpink
Secondary
#d8cad5lightgrey
#20181eblack
Secondary foreground
#41303ddarkslategray
#bfabbasilver
Muted
#eae1e8gainsboro
#1e151cblack
Muted foreground
#584654darkslategray
#b9a7b5darkgray
Accent
#d8cad5lightgrey
#20181eblack
Accent foreground
#41303ddarkslategray
#bfabbasilver
Destructive
#7f240bsaddlebrown
#eb4314orangered
Destructive foreground
#facec2peachpuff
#ffffffwhite
Border
#e8e3e7gainsboro
#292328darkslategray
Input
#e8e3e7gainsboro
#292328darkslategray
Ring
#850569purple
#850569purple

Contrast

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

Light mode
Text on background19.51:1AAA
Text on card19.51:1AAA
Primary button6.24:1AA
Secondary button7.78:1AAA
Muted text6.80:1AA
Accent7.78:1AAA
Destructive6.80:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.24:1AA
Secondary button8.03:1AAA
Muted text7.83:1AAA
Accent8.03:1AAA
Destructive3.94:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 332.707);
  --foreground: oklch(0.107 0.024 333.499);
  --muted: oklch(0.919 0.012 332.822);
  --muted-foreground: oklch(0.418 0.032 333.749);
  --popover: oklch(0.983 0.006 332.707);
  --popover-foreground: oklch(0.107 0.024 333.499);
  --card: oklch(0.983 0.006 332.707);
  --card-foreground: oklch(0.107 0.024 333.499);
  --border: oklch(0.921 0.006 332.72);
  --input: oklch(0.921 0.006 332.72);
  --primary: oklch(0.418 0.178 340.409);
  --primary-foreground: oklch(0.875 0.094 334.189);
  --secondary: oklch(0.854 0.021 332.995);
  --secondary-foreground: oklch(0.332 0.033 334.063);
  --accent: oklch(0.854 0.021 332.995);
  --accent-foreground: oklch(0.332 0.033 334.063);
  --destructive: oklch(0.401 0.129 35.284);
  --destructive-foreground: oklch(0.886 0.052 35.957);
  --ring: oklch(0.418 0.178 340.409);
  --chart-1: oklch(0.418 0.178 340.409);
  --chart-2: oklch(0.854 0.021 332.995);
  --chart-3: oklch(0.854 0.021 332.995);
  --chart-4: oklch(0.879 0.017 332.922);
  --chart-5: oklch(0.421 0.181 340.606);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.211 0.018 333.866);
  --muted-foreground: oklch(0.748 0.028 333.176);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.266 0.013 333.331);
  --input: oklch(0.266 0.013 333.331);
  --primary: oklch(0.418 0.178 340.409);
  --primary-foreground: oklch(0.875 0.094 334.189);
  --secondary: oklch(0.222 0.016 333.669);
  --secondary-foreground: oklch(0.764 0.03 333.219);
  --accent: oklch(0.222 0.016 333.669);
  --accent-foreground: oklch(0.764 0.03 333.219);
  --destructive: oklch(0.624 0.211 34.721);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.418 0.178 340.409);
  --chart-1: oklch(0.418 0.178 340.409);
  --chart-2: oklch(0.222 0.016 333.669);
  --chart-3: oklch(0.222 0.016 333.669);
  --chart-4: oklch(0.253 0.019 333.748);
  --chart-5: oklch(0.421 0.181 340.606);
}