Grand for shadcn/ui

Grand is a shadcn/ui theme built around a light purple primary color (#f0c1ea) with light cyan accents (#c1eaf0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#f0c1ea) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#f0c1eathistle
#f0c1eathistle
Primary foreground
#67195cpurple
#67195cpurple
Secondary
#eaf0c1bisque
#eaf0c1bisque
Secondary foreground
#121505black
#121505black
Muted
#e5e7d5gainsboro
#282a18black
Muted foreground
#6a6d54dimgray
#a7ab92darkgray
Accent
#c1eaf0paleturquoise
#c1eaf0paleturquoise
Accent foreground
#051215black
#051215black
Destructive
#680603maroon
#f9221ared
Destructive foreground
#fda4a1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0c1eathistle
#f0c1eathistle

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.24:1AAA
Secondary button15.62:1AAA
Muted text4.25:1AA Large
Accent14.75:1AAA
Destructive6.78:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.24:1AAA
Secondary button15.62:1AAA
Muted text6.16:1AA
Accent14.75:1AAA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.921 0.025 113.047);
  --muted-foreground: oklch(0.526 0.038 113.888);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.865 0.075 330.701);
  --primary-foreground: oklch(0.369 0.136 333.937);
  --secondary: oklch(0.939 0.061 113.756);
  --secondary-foreground: oklch(0.186 0.03 115.261);
  --accent: oklch(0.91 0.043 207.84);
  --accent-foreground: oklch(0.172 0.02 207.63);
  --destructive: oklch(0.33 0.13 29.519);
  --destructive-foreground: oklch(0.805 0.106 21.842);
  --ring: oklch(0.865 0.075 330.701);
  --chart-1: oklch(0.865 0.075 330.701);
  --chart-2: oklch(0.939 0.061 113.756);
  --chart-3: oklch(0.91 0.043 207.84);
  --chart-4: oklch(0.951 0.049 113.504);
  --chart-5: oklch(0.865 0.078 330.749);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.279 0.032 114.696);
  --muted-foreground: oklch(0.731 0.035 113.447);
  --popover: oklch(0 0 0);
  --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.865 0.075 330.701);
  --primary-foreground: oklch(0.369 0.136 333.937);
  --secondary: oklch(0.939 0.061 113.756);
  --secondary-foreground: oklch(0.186 0.03 115.261);
  --accent: oklch(0.91 0.043 207.84);
  --accent-foreground: oklch(0.172 0.02 207.63);
  --destructive: oklch(0.627 0.243 28.947);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.865 0.075 330.701);
  --chart-1: oklch(0.865 0.075 330.701);
  --chart-2: oklch(0.939 0.061 113.756);
  --chart-3: oklch(0.91 0.043 207.84);
  --chart-4: oklch(0.951 0.049 113.504);
  --chart-5: oklch(0.865 0.078 330.749);
}