Comfortable for shadcn/ui

Comfortable is a shadcn/ui theme built around a muted light cyan primary color (#dde2e3) with muted light blue accents (#dddfe3). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted light cyan primary (#dde2e3) on a cyan-tinted background (#040e10).

Color palette

TokenLightDark
Background
#fbfdfewhite
#040e10black
Foreground
#030b0dblack
#f6f8f9whitesmoke
Card
#fbfdfewhite
#040e10black
Card foreground
#030b0dblack
#f6f8f9whitesmoke
Popover
#fbfdfewhite
#040e10black
Popover foreground
#030b0dblack
#f6f8f9whitesmoke
Primary
#dde2e3gainsboro
#dde2e3gainsboro
Primary foreground
#404c4fdarkslategray
#404c4fdarkslategray
Secondary
#dde3e2gainsboro
#dde3e2gainsboro
Secondary foreground
#404f4adarkslategray
#404f4adarkslategray
Muted
#e6eae9lavender
#151918black
Muted foreground
#3d514bdarkslategray
#aec2bcsilver
Accent
#dddfe3gainsboro
#dddfe3gainsboro
Accent foreground
#40454fdarkslategray
#40454fdarkslategray
Destructive
#cd470echocolate
#f27640coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#dde2e3gainsboro
#dde2e3gainsboro

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.49:1AAA
Primary button6.81:1AA
Secondary button6.65:1AA
Muted text6.97:1AA
Accent7.22:1AAA
Destructive4.64:1AA
Dark mode
Text on background18.34:1AAA
Text on card18.34:1AAA
Primary button6.81:1AA
Secondary button6.65:1AA
Muted text9.52:1AAA
Accent7.22:1AAA
Destructive7.40:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 214.323);
  --foreground: oklch(0.139 0.016 210.993);
  --muted: oklch(0.933 0.004 176.543);
  --muted-foreground: oklch(0.418 0.027 174.639);
  --popover: oklch(0.993 0.002 214.323);
  --popover-foreground: oklch(0.139 0.016 210.993);
  --card: oklch(0.993 0.002 214.323);
  --card-foreground: oklch(0.139 0.016 210.993);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.91 0.006 214.333);
  --primary-foreground: oklch(0.406 0.015 214.494);
  --secondary: oklch(0.912 0.007 176.433);
  --secondary-foreground: oklch(0.412 0.019 175.209);
  --accent: oklch(0.904 0.006 267.38);
  --accent-foreground: oklch(0.389 0.018 267.091);
  --destructive: oklch(0.58 0.179 39.048);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.91 0.006 214.333);
  --chart-1: oklch(0.91 0.006 214.333);
  --chart-2: oklch(0.912 0.007 176.433);
  --chart-3: oklch(0.904 0.006 267.38);
  --chart-4: oklch(0.934 0.005 176.494);
  --chart-5: oklch(0.911 0.007 214.338);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.016 213.27);
  --foreground: oklch(0.978 0.002 214.323);
  --muted: oklch(0.208 0.005 175.9);
  --muted-foreground: oklch(0.796 0.023 175.777);
  --popover: oklch(0.153 0.016 213.27);
  --popover-foreground: oklch(0.978 0.002 214.323);
  --card: oklch(0.153 0.016 213.27);
  --card-foreground: oklch(0.978 0.002 214.323);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.91 0.006 214.333);
  --primary-foreground: oklch(0.406 0.015 214.494);
  --secondary: oklch(0.912 0.007 176.433);
  --secondary-foreground: oklch(0.412 0.019 175.209);
  --accent: oklch(0.904 0.006 267.38);
  --accent-foreground: oklch(0.389 0.018 267.091);
  --destructive: oklch(0.701 0.167 42.379);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.91 0.006 214.333);
  --chart-1: oklch(0.91 0.006 214.333);
  --chart-2: oklch(0.912 0.007 176.433);
  --chart-3: oklch(0.904 0.006 267.38);
  --chart-4: oklch(0.934 0.005 176.494);
  --chart-5: oklch(0.911 0.007 214.338);
}