Geometry for shadcn/ui

Geometry is a shadcn/ui theme built around a vivid blue primary color (#2d96eb) with muted light blue accents (#ced4da). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid blue primary (#2d96eb) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#fbfdfewhite
#010304black
Foreground
#030e17black
#fcfdfdwhite
Card
#f6fafdghostwhite
#020508black
Card foreground
#020b12black
#ffffffwhite
Popover
#f6fafdghostwhite
#020508black
Popover foreground
#020b12black
#ffffffwhite
Primary
#2d96ebdodgerblue
#2d96ebdodgerblue
Primary foreground
#000000black
#000000black
Secondary
#e3e6e8gainsboro
#1e2429darkslategray
Secondary foreground
#464d53darkslategray
#b2bec7silver
Muted
#e7eef3lavender
#0c1218black
Muted foreground
#4f5d69dimgray
#96a4b0darkgray
Accent
#ced4dalightgrey
#27343fdarkslategray
Accent foreground
#323b43darkslategray
#c0cdd8lightsteelblue
Destructive
#be1e09firebrick
#f4381forangered
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2d96ebdodgerblue
#2d96ebdodgerblue

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card18.94:1AAA
Primary button6.66:1AA
Secondary button6.83:1AA
Muted text5.76:1AA
Accent7.63:1AAA
Destructive6.04:1AA
Dark mode
Text on background20.30:1AAA
Text on card20.39:1AAA
Primary button6.66:1AA
Secondary button8.24:1AAA
Muted text7.36:1AAA
Accent7.84:1AAA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 242.233);
  --foreground: oklch(0.156 0.028 240.274);
  --muted: oklch(0.945 0.01 242.337);
  --muted-foreground: oklch(0.471 0.026 242.937);
  --popover: oklch(0.984 0.006 242.274);
  --popover-foreground: oklch(0.143 0.024 237.278);
  --card: oklch(0.984 0.006 242.274);
  --card-foreground: oklch(0.143 0.024 237.278);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.655 0.158 248.253);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.923 0.004 242.25);
  --secondary-foreground: oklch(0.416 0.014 242.65);
  --accent: oklch(0.867 0.01 242.354);
  --accent-foreground: oklch(0.349 0.018 242.882);
  --destructive: oklch(0.515 0.195 30.86);
  --destructive-foreground: oklch(0.99 0.004 26.47);
  --ring: oklch(0.655 0.158 248.253);
  --chart-1: oklch(0.655 0.158 248.253);
  --chart-2: oklch(0.923 0.004 242.25);
  --chart-3: oklch(0.867 0.01 242.354);
  --chart-4: oklch(0.946 0.003 242.232);
  --chart-5: oklch(0.658 0.162 248.6);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.09 0.01 234.522);
  --foreground: oklch(0.992 0.001 242.205);
  --muted: oklch(0.18 0.015 243.413);
  --muted-foreground: oklch(0.713 0.023 242.629);
  --popover: oklch(0.113 0.012 234.522);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.113 0.012 234.522);
  --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.655 0.158 248.253);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.257 0.013 242.895);
  --secondary-foreground: oklch(0.795 0.019 242.506);
  --accent: oklch(0.319 0.027 243.397);
  --accent-foreground: oklch(0.842 0.021 242.529);
  --destructive: oklch(0.632 0.227 31.04);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.655 0.158 248.253);
  --chart-1: oklch(0.655 0.158 248.253);
  --chart-2: oklch(0.257 0.013 242.895);
  --chart-3: oklch(0.319 0.027 243.397);
  --chart-4: oklch(0.289 0.016 242.934);
  --chart-5: oklch(0.658 0.162 248.6);
}