Glider for shadcn/ui

Glider is a shadcn/ui theme built around a light teal primary color (#f2fdfc) with light blue accents (#f2f8fd). The light mode uses a neutral background (#fbfefe). Dark mode keeps the light teal primary (#f2fdfc) on a teal-tinted background (#060f0e).

Color palette

TokenLightDark
Background
#fbfefewhite
#060f0eblack
Foreground
#010504black
#f9fbfbghostwhite
Card
#fbfefewhite
#060f0eblack
Card foreground
#010504black
#f9fbfbghostwhite
Popover
#fbfefewhite
#060f0eblack
Popover foreground
#010504black
#f9fbfbghostwhite
Primary
#f2fdfcazure
#f2fdfcazure
Primary foreground
#0b4c46darkslategray
#0b4c46darkslategray
Secondary
#f2fdf6mintcream
#f2fdf6mintcream
Secondary foreground
#0b4c26darkgreen
#0b4c26darkgreen
Muted
#dae2ddgainsboro
#1d2520black
Muted foreground
#4b4e4cdarkslategray
#b1b4b2darkgray
Accent
#f2f8fdaliceblue
#f2f8fdaliceblue
Accent foreground
#0b314cmidnightblue
#0b314cmidnightblue
Destructive
#833207saddlebrown
#ed5b0corangered
Destructive foreground
#fcd5c0peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2fdfcazure
#f2fdfcazure

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button9.46:1AAA
Secondary button9.71:1AAA
Muted text6.37:1AA
Accent12.61:1AAA
Destructive6.35:1AA
Dark mode
Text on background18.70:1AAA
Text on card18.70:1AAA
Primary button9.46:1AAA
Secondary button9.71:1AAA
Muted text7.49:1AAA
Accent12.61:1AAA
Destructive3.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 191.18);
  --foreground: oklch(0.102 0.014 190.135);
  --muted: oklch(0.905 0.011 160.736);
  --muted-foreground: oklch(0.421 0.005 160.735);
  --popover: oklch(0.995 0.003 191.18);
  --popover-foreground: oklch(0.102 0.014 190.135);
  --card: oklch(0.995 0.003 191.18);
  --card-foreground: oklch(0.102 0.014 190.135);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.986 0.012 190.98);
  --primary-foreground: oklch(0.377 0.062 186.277);
  --secondary: oklch(0.984 0.015 160.652);
  --secondary-foreground: oklch(0.367 0.09 152.069);
  --accent: oklch(0.976 0.01 238.502);
  --accent-foreground: oklch(0.301 0.064 244.361);
  --destructive: oklch(0.427 0.122 43.008);
  --destructive-foreground: oklch(0.9 0.052 49.973);
  --ring: oklch(0.986 0.012 190.98);
  --chart-1: oklch(0.986 0.012 190.98);
  --chart-2: oklch(0.984 0.015 160.652);
  --chart-3: oklch(0.976 0.01 238.502);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.986 0.013 190.97);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.015 189.539);
  --foreground: oklch(0.986 0.002 191.214);
  --muted: oklch(0.255 0.014 159.624);
  --muted-foreground: oklch(0.767 0.004 160.882);
  --popover: oklch(0.157 0.015 189.539);
  --popover-foreground: oklch(0.986 0.002 191.214);
  --card: oklch(0.157 0.015 189.539);
  --card-foreground: oklch(0.986 0.002 191.214);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.986 0.012 190.98);
  --primary-foreground: oklch(0.377 0.062 186.277);
  --secondary: oklch(0.984 0.015 160.652);
  --secondary-foreground: oklch(0.367 0.09 152.069);
  --accent: oklch(0.976 0.01 238.502);
  --accent-foreground: oklch(0.301 0.064 244.361);
  --destructive: oklch(0.655 0.195 41.676);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.986 0.012 190.98);
  --chart-1: oklch(0.986 0.012 190.98);
  --chart-2: oklch(0.984 0.015 160.652);
  --chart-3: oklch(0.976 0.01 238.502);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.986 0.013 190.97);
}