Edge for shadcn/ui

Edge is a shadcn/ui theme built around a muted teal primary color (#9eaea8) with muted yellow accents (#aea89e). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted teal primary (#9eaea8) on a teal-tinted background (#050a09).

Color palette

TokenLightDark
Background
#fcfdfdwhite
#050a09black
Foreground
#03120dblack
#ffffffwhite
Card
#fcfdfdwhite
#050a09black
Card foreground
#03120dblack
#ffffffwhite
Popover
#fcfdfdwhite
#050a09black
Popover foreground
#03120dblack
#ffffffwhite
Primary
#9eaea8darkgray
#9eaea8darkgray
Primary foreground
#0c0e0dblack
#0c0e0dblack
Secondary
#a89eaedarkgray
#a89eaedarkgray
Secondary foreground
#0d0c0eblack
#0d0c0eblack
Muted
#e3d8e8gainsboro
#211727black
Muted foreground
#575757dimgray
#a8a8a8darkgray
Accent
#aea89edarkgray
#aea89edarkgray
Accent foreground
#0e0d0cblack
#0e0d0cblack
Destructive
#b2100afirebrick
#f33b35tomato
Destructive foreground
#fef1f1lavenderblush
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9eaea8darkgray
#9eaea8darkgray

Contrast

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

Light mode
Text on background18.81:1AAA
Text on card18.81:1AAA
Primary button8.35:1AAA
Secondary button7.57:1AAA
Muted text5.26:1AA
Accent8.24:1AAA
Destructive6.39:1AA
Dark mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button8.35:1AAA
Secondary button7.57:1AAA
Muted text7.27:1AAA
Accent8.24:1AAA
Destructive3.82:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 174.529);
  --foreground: oklch(0.164 0.026 171.465);
  --muted: oklch(0.897 0.024 314.695);
  --muted-foreground: oklch(0.456 0 180);
  --popover: oklch(0.994 0.002 174.529);
  --popover-foreground: oklch(0.164 0.026 171.465);
  --card: oklch(0.994 0.002 174.529);
  --card-foreground: oklch(0.164 0.026 171.465);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.736 0.02 173.794);
  --primary-foreground: oklch(0.16 0.004 173.826);
  --secondary: oklch(0.713 0.026 314.65);
  --secondary-foreground: oklch(0.155 0.005 314.657);
  --accent: oklch(0.734 0.016 84.591);
  --accent-foreground: oklch(0.16 0.003 84.591);
  --destructive: oklch(0.486 0.192 29.136);
  --destructive-foreground: oklch(0.968 0.014 19.814);
  --ring: oklch(0.736 0.02 173.794);
  --chart-1: oklch(0.736 0.02 173.794);
  --chart-2: oklch(0.713 0.026 314.65);
  --chart-3: oklch(0.734 0.016 84.591);
  --chart-4: oklch(0.738 0.024 314.672);
  --chart-5: oklch(0.74 0.026 173.532);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.011 174.735);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.224 0.034 314.071);
  --muted-foreground: oklch(0.733 0 180);
  --popover: oklch(0.139 0.011 174.735);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.011 174.735);
  --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.736 0.02 173.794);
  --primary-foreground: oklch(0.16 0.004 173.826);
  --secondary: oklch(0.713 0.026 314.65);
  --secondary-foreground: oklch(0.155 0.005 314.657);
  --accent: oklch(0.734 0.016 84.591);
  --accent-foreground: oklch(0.16 0.003 84.591);
  --destructive: oklch(0.634 0.221 27.647);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.736 0.02 173.794);
  --chart-1: oklch(0.736 0.02 173.794);
  --chart-2: oklch(0.713 0.026 314.65);
  --chart-3: oklch(0.734 0.016 84.591);
  --chart-4: oklch(0.738 0.024 314.672);
  --chart-5: oklch(0.74 0.026 173.532);
}