Soliloquy for shadcn/ui

Soliloquy is a shadcn/ui theme built around a muted teal primary color (#4b6861) with muted yellow accents (#68614b). The light mode uses a neutral background (#fbfefd). Dark mode keeps the muted teal primary (#4b6861) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#fbfefdwhite
#010403black
Foreground
#000000black
#f9fbfbghostwhite
Card
#fbfefdwhite
#010403black
Card foreground
#000000black
#f9fbfbghostwhite
Popover
#fbfefdwhite
#010403black
Popover foreground
#000000black
#f9fbfbghostwhite
Primary
#4b6861dimgray
#4b6861dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#614b68dimgray
#614b68dimgray
Secondary foreground
#f3f0f4whitesmoke
#f3f0f4whitesmoke
Muted
#e5d7eagainsboro
#231528black
Muted foreground
#4f4e50darkslategray
#b0afb1darkgray
Accent
#68614bdimgray
#68614bdimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#6d2503maroon
#e44d07orangered
Destructive foreground
#fcc1a6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4b6861dimgray
#4b6861dimgray

Contrast

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

Light mode
Text on background20.68:1AAA
Text on card20.68:1AAA
Primary button6.11:1AA
Secondary button6.85:1AA
Muted text6.01:1AA
Accent6.19:1AA
Destructive6.96:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button6.11:1AA
Secondary button6.85:1AA
Muted text7.91:1AAA
Accent6.19:1AA
Destructive3.92:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 180.87);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.897 0.029 318.298);
  --muted-foreground: oklch(0.427 0.003 318.323);
  --popover: oklch(0.994 0.003 180.87);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.003 180.87);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.491 0.035 178.748);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.446 0.053 318.201);
  --secondary-foreground: oklch(0.959 0.006 318.324);
  --accent: oklch(0.492 0.034 93.142);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.369 0.11 40.894);
  --destructive-foreground: oklch(0.858 0.078 46.022);
  --ring: oklch(0.491 0.035 178.748);
  --chart-1: oklch(0.491 0.035 178.748);
  --chart-2: oklch(0.446 0.053 318.201);
  --chart-3: oklch(0.492 0.034 93.142);
  --chart-4: oklch(0.473 0.057 318.199);
  --chart-5: oklch(0.496 0.041 178.347);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.099 0.011 180.949);
  --foreground: oklch(0.987 0.003 180.877);
  --muted: oklch(0.225 0.04 318.105);
  --muted-foreground: oklch(0.756 0.003 318.327);
  --popover: oklch(0.099 0.011 180.949);
  --popover-foreground: oklch(0.987 0.003 180.877);
  --card: oklch(0.099 0.011 180.949);
  --card-foreground: oklch(0.987 0.003 180.877);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.491 0.035 178.748);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.446 0.053 318.201);
  --secondary-foreground: oklch(0.959 0.006 318.324);
  --accent: oklch(0.492 0.034 93.142);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.623 0.197 38.858);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.491 0.035 178.748);
  --chart-1: oklch(0.491 0.035 178.748);
  --chart-2: oklch(0.446 0.053 318.201);
  --chart-3: oklch(0.492 0.034 93.142);
  --chart-4: oklch(0.473 0.057 318.199);
  --chart-5: oklch(0.496 0.041 178.347);
}