Skloresurs for shadcn/ui

Skloresurs is a shadcn/ui theme built around a cyan primary color (#9ddbe2) with blue accents (#9db8e2). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the cyan primary (#9ddbe2) on a cyan-tinted background (#050a0a).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#050a0ablack
Foreground
#041011black
#f5f9faghostwhite
Card
#f8fbfcghostwhite
#050a0ablack
Card foreground
#041011black
#f5f9faghostwhite
Popover
#f8fbfcghostwhite
#050a0ablack
Popover foreground
#041011black
#f5f9faghostwhite
Primary
#9ddbe2lightblue
#9ddbe2lightblue
Primary foreground
#12373bdarkslategray
#12373bdarkslategray
Secondary
#9de2c6lightblue
#9de2c6lightblue
Secondary foreground
#123b2adarkslategray
#123b2adarkslategray
Muted
#d7e0dcgainsboro
#1f2825darkslategray
Muted foreground
#4a4f4ddarkslategray
#b0b5b3darkgray
Accent
#9db8e2lightsteelblue
#9db8e2lightsteelblue
Accent foreground
#12223bmidnightblue
#12223bmidnightblue
Destructive
#602206maroon
#de4f0dchocolate
Destructive foreground
#f9bb9flightpink
#ffffffwhite
Border
#eceeeewhitesmoke
#202222black
Input
#eceeeewhitesmoke
#202222black
Ring
#9ddbe2lightblue
#9ddbe2lightblue

Contrast

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

Light mode
Text on background18.61:1AAA
Text on card18.61:1AAA
Primary button8.33:1AAA
Secondary button8.36:1AAA
Muted text6.18:1AA
Accent7.90:1AAA
Destructive7.27:1AAA
Dark mode
Text on background18.82:1AAA
Text on card18.82:1AAA
Primary button8.33:1AAA
Secondary button8.36:1AAA
Muted text7.25:1AAA
Accent7.90:1AAA
Destructive4.02:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 204.962);
  --foreground: oklch(0.159 0.019 203.702);
  --muted: oklch(0.898 0.011 170.265);
  --muted-foreground: oklch(0.422 0.007 170.167);
  --popover: oklch(0.987 0.004 204.962);
  --popover-foreground: oklch(0.159 0.019 203.702);
  --card: oklch(0.987 0.004 204.962);
  --card-foreground: oklch(0.159 0.019 203.702);
  --border: oklch(0.947 0.001 204.979);
  --input: oklch(0.947 0.001 204.979);
  --primary: oklch(0.851 0.063 204.688);
  --primary-foreground: oklch(0.311 0.042 205.329);
  --secondary: oklch(0.858 0.079 167.618);
  --secondary-foreground: oklch(0.318 0.055 163.618);
  --accent: oklch(0.778 0.067 258.352);
  --accent-foreground: oklch(0.252 0.052 258.294);
  --destructive: oklch(0.343 0.098 41.644);
  --destructive-foreground: oklch(0.843 0.082 45.963);
  --ring: oklch(0.851 0.063 204.688);
  --chart-1: oklch(0.851 0.063 204.688);
  --chart-2: oklch(0.858 0.079 167.618);
  --chart-3: oklch(0.778 0.067 258.352);
  --chart-4: oklch(0.875 0.07 168.071);
  --chart-5: oklch(0.854 0.067 204.693);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.008 203.341);
  --foreground: oklch(0.98 0.004 204.956);
  --muted: oklch(0.268 0.015 168.947);
  --muted-foreground: oklch(0.768 0.006 170.408);
  --popover: oklch(0.137 0.008 203.341);
  --popover-foreground: oklch(0.98 0.004 204.956);
  --card: oklch(0.137 0.008 203.341);
  --card-foreground: oklch(0.98 0.004 204.956);
  --border: oklch(0.25 0.004 204.886);
  --input: oklch(0.25 0.004 204.886);
  --primary: oklch(0.851 0.063 204.688);
  --primary-foreground: oklch(0.311 0.042 205.329);
  --secondary: oklch(0.858 0.079 167.618);
  --secondary-foreground: oklch(0.318 0.055 163.618);
  --accent: oklch(0.778 0.067 258.352);
  --accent-foreground: oklch(0.252 0.052 258.294);
  --destructive: oklch(0.616 0.19 39.687);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.851 0.063 204.688);
  --chart-1: oklch(0.851 0.063 204.688);
  --chart-2: oklch(0.858 0.079 167.618);
  --chart-3: oklch(0.778 0.067 258.352);
  --chart-4: oklch(0.875 0.07 168.071);
  --chart-5: oklch(0.854 0.067 204.693);
}