Grid for shadcn/ui

Grid is a shadcn/ui theme built around a vivid cyan primary color (#5ac1ed) with vivid green accents (#c1ed5a). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid cyan primary (#5ac1ed) on a neutral background (#030607).

Color palette

TokenLightDark
Background
#fbfdfewhite
#030607black
Foreground
#000000black
#fcfdfdwhite
Card
#fbfdfewhite
#030607black
Card foreground
#000000black
#fcfdfdwhite
Popover
#fbfdfewhite
#030607black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#5ac1edmediumturquoise
#5ac1edmediumturquoise
Primary foreground
#020d12black
#020d12black
Secondary
#ed5ac1hotpink
#ed5ac1hotpink
Secondary foreground
#12020dblack
#12020dblack
Muted
#f5f0f3whitesmoke
#0f0a0eblack
Muted foreground
#616161dimgray
#9e9e9edarkgray
Accent
#c1ed5agreenyellow
#c1ed5agreenyellow
Accent foreground
#0d1202black
#0d1202black
Destructive
#993b0fsaddlebrown
#d15015chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5ac1edmediumturquoise
#5ac1edmediumturquoise

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button9.58:1AAA
Secondary button6.54:1AA
Muted text5.48:1AA
Accent14.01:1AAA
Destructive7.03:1AAA
Dark mode
Text on background19.95:1AAA
Text on card19.95:1AAA
Primary button9.58:1AAA
Secondary button6.54:1AA
Muted text7.31:1AAA
Accent14.01:1AAA
Destructive4.31:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 225.014);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.959 0.008 336.016);
  --muted-foreground: oklch(0.492 0 180);
  --popover: oklch(0.993 0.003 225.014);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.993 0.003 225.014);
  --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.766 0.114 229.041);
  --primary-foreground: oklch(0.151 0.023 222.888);
  --secondary: oklch(0.69 0.211 341.363);
  --secondary-foreground: oklch(0.133 0.044 338.923);
  --accent: oklch(0.886 0.179 124.201);
  --accent-foreground: oklch(0.173 0.035 122.022);
  --destructive: oklch(0.477 0.137 41.328);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.766 0.114 229.041);
  --chart-1: oklch(0.766 0.114 229.041);
  --chart-2: oklch(0.69 0.211 341.363);
  --chart-3: oklch(0.886 0.179 124.201);
  --chart-4: oklch(0.71 0.196 340.737);
  --chart-5: oklch(0.769 0.117 229.277);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.117 0.008 221.295);
  --foreground: oklch(0.993 0.001 224.998);
  --muted: oklch(0.154 0.012 337.274);
  --muted-foreground: oklch(0.7 0 180);
  --popover: oklch(0.117 0.008 221.295);
  --popover-foreground: oklch(0.993 0.001 224.998);
  --card: oklch(0.117 0.008 221.295);
  --card-foreground: oklch(0.993 0.001 224.998);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.766 0.114 229.041);
  --primary-foreground: oklch(0.151 0.023 222.888);
  --secondary: oklch(0.69 0.211 341.363);
  --secondary-foreground: oklch(0.133 0.044 338.923);
  --accent: oklch(0.886 0.179 124.201);
  --accent-foreground: oklch(0.173 0.035 122.022);
  --destructive: oklch(0.597 0.175 40.851);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.766 0.114 229.041);
  --chart-1: oklch(0.766 0.114 229.041);
  --chart-2: oklch(0.69 0.211 341.363);
  --chart-3: oklch(0.886 0.179 124.201);
  --chart-4: oklch(0.71 0.196 340.737);
  --chart-5: oklch(0.769 0.117 229.277);
}