Snorer for shadcn/ui

Snorer is a shadcn/ui theme built around a cyan primary color (#6aa4b9) with green accents (#a4b96a). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#6aa4b9) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020e12black
#f4f9famintcream
Card
#ffffffwhite
#000000black
Card foreground
#020e12black
#f4f9famintcream
Popover
#ffffffwhite
#000000black
Popover foreground
#020e12black
#f4f9famintcream
Primary
#6aa4b9cadetblue
#6aa4b9cadetblue
Primary foreground
#000000black
#000000black
Secondary
#b96aa4palevioletred
#b96aa4palevioletred
Secondary foreground
#000000black
#000000black
Muted
#e4d3dfgainsboro
#2c1b28darkslategray
Muted foreground
#6d5065dimgray
#af92a7darkgray
Accent
#a4b96adarkkhaki
#a4b96adarkkhaki
Accent foreground
#000000black
#000000black
Destructive
#751c0amaroon
#ec4422orangered
Destructive foreground
#f9c3b9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6aa4b9cadetblue
#6aa4b9cadetblue

Contrast

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

Light mode
Text on background19.55:1AAA
Text on card19.55:1AAA
Primary button7.60:1AAA
Secondary button5.64:1AA
Muted text4.90:1AA
Accent9.70:1AAA
Destructive7.00:1AAA
Dark mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button7.60:1AAA
Secondary button5.64:1AA
Muted text5.77:1AA
Accent9.70:1AAA
Destructive3.88:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.153 0.022 219.627);
  --muted: oklch(0.884 0.025 335.02);
  --muted-foreground: oklch(0.469 0.049 336.251);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.153 0.022 219.627);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.153 0.022 219.627);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.686 0.068 223.004);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.631 0.124 337.716);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.751 0.107 121.231);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.374 0.126 32.986);
  --destructive-foreground: oklch(0.863 0.064 31.372);
  --ring: oklch(0.686 0.068 223.004);
  --chart-1: oklch(0.686 0.068 223.004);
  --chart-2: oklch(0.631 0.124 337.716);
  --chart-3: oklch(0.751 0.107 121.231);
  --chart-4: oklch(0.656 0.115 337.376);
  --chart-5: oklch(0.689 0.073 223.22);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.005 221.351);
  --muted: oklch(0.25 0.034 336.783);
  --muted-foreground: oklch(0.694 0.044 335.606);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.979 0.005 221.351);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.979 0.005 221.351);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.686 0.068 223.004);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.631 0.124 337.716);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.751 0.107 121.231);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.628 0.209 33.039);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.686 0.068 223.004);
  --chart-1: oklch(0.686 0.068 223.004);
  --chart-2: oklch(0.631 0.124 337.716);
  --chart-3: oklch(0.751 0.107 121.231);
  --chart-4: oklch(0.656 0.115 337.376);
  --chart-5: oklch(0.689 0.073 223.22);
}