Sight for shadcn/ui

Sight is a shadcn/ui theme built around a muted teal primary color (#759998) with near-white accents (#eaebeb). The light mode uses a neutral background (#f6fdfd). Dark mode keeps the muted teal primary (#759998) on a teal-tinted background (#060e0e).

Color palette

TokenLightDark
Background
#f6fdfdmintcream
#060e0eblack
Foreground
#020908black
#fcfdfdwhite
Card
#f6fdfdmintcream
#060e0eblack
Card foreground
#020908black
#fcfdfdwhite
Popover
#f6fdfdmintcream
#060e0eblack
Popover foreground
#020908black
#fcfdfdwhite
Primary
#759998lightslategray
#759998lightslategray
Primary foreground
#000000black
#000000black
Secondary
#eaebeblavender
#303131darkslategray
Secondary foreground
#4f5454darkslategray
#c9cacalightgrey
Muted
#cee4e3gainsboro
#1b3131darkslategray
Muted foreground
#3d5251darkslategray
#adc2c2silver
Accent
#eaebeblavender
#303131darkslategray
Accent foreground
#4f5454darkslategray
#c9cacalightgrey
Destructive
#ca4b07chocolate
#f87935coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#759998lightslategray
#759998lightslategray

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button6.77:1AA
Secondary button6.45:1AA
Muted text6.26:1AA
Accent6.45:1AA
Destructive4.64:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.13:1AAA
Primary button6.77:1AA
Secondary button7.95:1AAA
Muted text7.33:1AAA
Accent7.95:1AAA
Destructive7.78:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 194.654);
  --foreground: oklch(0.127 0.016 193.307);
  --muted: oklch(0.902 0.024 194.306);
  --muted-foreground: oklch(0.421 0.026 193.639);
  --popover: oklch(0.99 0.007 194.654);
  --popover-foreground: oklch(0.127 0.016 193.307);
  --card: oklch(0.99 0.007 194.654);
  --card-foreground: oklch(0.127 0.016 193.307);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.656 0.04 193.678);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.94 0.001 194.764);
  --secondary-foreground: oklch(0.442 0.006 194.525);
  --accent: oklch(0.94 0.001 194.764);
  --accent-foreground: oklch(0.442 0.006 194.525);
  --destructive: oklch(0.579 0.173 41.466);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.656 0.04 193.678);
  --chart-1: oklch(0.656 0.04 193.678);
  --chart-2: oklch(0.94 0.001 194.764);
  --chart-3: oklch(0.94 0.001 194.764);
  --chart-4: oklch(0.962 0.001 194.774);
  --chart-5: oklch(0.663 0.047 193.492);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.012 193.482);
  --foreground: oklch(0.993 0.001 194.769);
  --muted: oklch(0.296 0.028 193.025);
  --muted-foreground: oklch(0.799 0.023 194.249);
  --popover: oklch(0.155 0.012 193.482);
  --popover-foreground: oklch(0.993 0.001 194.769);
  --card: oklch(0.155 0.012 193.482);
  --card-foreground: oklch(0.993 0.001 194.769);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.656 0.04 193.678);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.312 0.001 194.708);
  --secondary-foreground: oklch(0.838 0.001 194.763);
  --accent: oklch(0.312 0.001 194.708);
  --accent-foreground: oklch(0.838 0.001 194.763);
  --destructive: oklch(0.714 0.174 45.784);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.656 0.04 193.678);
  --chart-1: oklch(0.656 0.04 193.678);
  --chart-2: oklch(0.312 0.001 194.708);
  --chart-3: oklch(0.312 0.001 194.708);
  --chart-4: oklch(0.342 0.002 194.705);
  --chart-5: oklch(0.663 0.047 193.492);
}