Graph for shadcn/ui

Graph is a shadcn/ui theme built around a vivid light blue primary color (#a1b9f7) with vivid light yellow accents (#f7dfa1). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the vivid light blue primary (#a1b9f7) on a blue-tinted background (#06080e).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#06080eblack
Foreground
#040916black
#fcfcfdwhite
Card
#f8f9fcghostwhite
#06080eblack
Card foreground
#040916black
#fcfcfdwhite
Popover
#f8f9fcghostwhite
#06080eblack
Popover foreground
#040916black
#fcfcfdwhite
Primary
#a1b9f7lightsteelblue
#a1b9f7lightsteelblue
Primary foreground
#08205emidnightblue
#08205emidnightblue
Secondary
#f7dfa1navajowhite
#f7dfa1navajowhite
Secondary foreground
#5e4608saddlebrown
#5e4608saddlebrown
Muted
#ede9debeige
#211d12black
Muted foreground
#424242darkslategray
#bdbdbdsilver
Accent
#f7dfa1navajowhite
#f7dfa1navajowhite
Accent foreground
#5e4608saddlebrown
#5e4608saddlebrown
Destructive
#8f3000saddlebrown
#ff6d24tomato
Destructive foreground
#ffd6c2peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a1b9f7lightsteelblue
#a1b9f7lightsteelblue

Contrast

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

Light mode
Text on background18.88:1AAA
Text on card18.88:1AAA
Primary button7.86:1AAA
Secondary button6.78:1AA
Muted text8.27:1AAA
Accent6.78:1AA
Destructive6.06:1AA
Dark mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button7.86:1AAA
Secondary button6.78:1AA
Muted text8.95:1AAA
Accent6.78:1AA
Destructive7.45:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.004 268.761);
  --foreground: oklch(0.141 0.03 262.332);
  --muted: oklch(0.934 0.015 88.89);
  --muted-foreground: oklch(0.38 0 180);
  --popover: oklch(0.982 0.004 268.761);
  --popover-foreground: oklch(0.141 0.03 262.332);
  --card: oklch(0.982 0.004 268.761);
  --card-foreground: oklch(0.141 0.03 262.332);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.791 0.092 267.623);
  --primary-foreground: oklch(0.274 0.114 263.861);
  --secondary: oklch(0.908 0.083 88.926);
  --secondary-foreground: oklch(0.408 0.079 84.358);
  --accent: oklch(0.908 0.083 88.926);
  --accent-foreground: oklch(0.408 0.079 84.358);
  --destructive: oklch(0.444 0.138 40.509);
  --destructive-foreground: oklch(0.906 0.054 48.108);
  --ring: oklch(0.791 0.092 267.623);
  --chart-1: oklch(0.791 0.092 267.623);
  --chart-2: oklch(0.908 0.083 88.926);
  --chart-3: oklch(0.908 0.083 88.926);
  --chart-4: oklch(0.921 0.071 88.99);
  --chart-5: oklch(0.79 0.095 267.567);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.014 264.823);
  --foreground: oklch(0.991 0.002 268.778);
  --muted: oklch(0.231 0.021 88.933);
  --muted-foreground: oklch(0.797 0 180);
  --popover: oklch(0.137 0.014 264.823);
  --popover-foreground: oklch(0.991 0.002 268.778);
  --card: oklch(0.137 0.014 264.823);
  --card-foreground: oklch(0.991 0.002 268.778);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.791 0.092 267.623);
  --primary-foreground: oklch(0.274 0.114 263.861);
  --secondary: oklch(0.908 0.083 88.926);
  --secondary-foreground: oklch(0.408 0.079 84.358);
  --accent: oklch(0.908 0.083 88.926);
  --accent-foreground: oklch(0.408 0.079 84.358);
  --destructive: oklch(0.706 0.195 42.811);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.791 0.092 267.623);
  --chart-1: oklch(0.791 0.092 267.623);
  --chart-2: oklch(0.908 0.083 88.926);
  --chart-3: oklch(0.908 0.083 88.926);
  --chart-4: oklch(0.921 0.071 88.99);
  --chart-5: oklch(0.79 0.095 267.567);
}