Comfortable for shadcn/ui

Comfortable is a shadcn/ui theme built around a vivid green primary color (#91fd44) with neutral gray accents (#dbded9). The light mode uses a neutral background (#fafbf8). Dark mode keeps the vivid green primary (#91fd44) on a green-tinted background (#070c03).

Color palette

TokenLightDark
Background
#fafbf8snow
#070c03black
Foreground
#091203black
#fcfdfcwhite
Card
#f7faf5whitesmoke
#091004black
Card foreground
#070d02black
#ffffffwhite
Popover
#fafbf8snow
#070c03black
Popover foreground
#091203black
#fcfdfcwhite
Primary
#91fd44greenyellow
#91fd44greenyellow
Primary foreground
#060f00black
#060f00black
Secondary
#dbded9gainsboro
#292a27darkslategray
Secondary foreground
#42473edarkslategray
#c1c4bfsilver
Muted
#d7e1d0gainsboro
#252f1edarkslategray
Muted foreground
#647359dimgray
#97a68cdarkseagreen
Accent
#dbded9gainsboro
#292a27darkslategray
Accent foreground
#42473edarkslategray
#c1c4bfsilver
Destructive
#600606maroon
#d80e0ered
Destructive foreground
#f99f9flightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#91fd44greenyellow
#91fd44greenyellow

Contrast

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

Light mode
Text on background18.43:1AAA
Text on card18.65:1AAA
Primary button15.20:1AAA
Secondary button7.00:1AAA
Muted text3.77:1AA Large
Accent7.00:1AAA
Destructive6.87:1AA
Dark mode
Text on background19.37:1AAA
Text on card19.31:1AAA
Primary button15.20:1AAA
Secondary button8.16:1AAA
Muted text5.44:1AA
Accent8.16:1AAA
Destructive5.27:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 131.762);
  --foreground: oklch(0.166 0.035 131.415);
  --muted: oklch(0.898 0.025 131.953);
  --muted-foreground: oklch(0.536 0.044 132.437);
  --popover: oklch(0.987 0.005 131.762);
  --popover-foreground: oklch(0.166 0.035 131.415);
  --card: oklch(0.981 0.007 131.782);
  --card-foreground: oklch(0.148 0.03 130.325);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.896 0.235 135.309);
  --primary-foreground: oklch(0.154 0.041 130.1);
  --secondary: oklch(0.896 0.007 131.792);
  --secondary-foreground: oklch(0.39 0.017 132.086);
  --accent: oklch(0.896 0.007 131.792);
  --accent-foreground: oklch(0.39 0.017 132.086);
  --destructive: oklch(0.312 0.121 28.041);
  --destructive-foreground: oklch(0.793 0.107 19.732);
  --ring: oklch(0.896 0.235 135.309);
  --chart-1: oklch(0.896 0.235 135.309);
  --chart-2: oklch(0.896 0.007 131.792);
  --chart-3: oklch(0.896 0.007 131.792);
  --chart-4: oklch(0.919 0.006 131.776);
  --chart-5: oklch(0.902 0.24 135.434);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.023 130.497);
  --foreground: oklch(0.994 0.002 131.744);
  --muted: oklch(0.289 0.032 132.729);
  --muted-foreground: oklch(0.706 0.042 132.22);
  --popover: oklch(0.144 0.023 130.497);
  --popover-foreground: oklch(0.994 0.002 131.744);
  --card: oklch(0.161 0.027 131.5);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.896 0.235 135.309);
  --primary-foreground: oklch(0.154 0.041 130.1);
  --secondary: oklch(0.284 0.006 131.911);
  --secondary-foreground: oklch(0.817 0.007 131.799);
  --accent: oklch(0.284 0.006 131.911);
  --accent-foreground: oklch(0.817 0.007 131.799);
  --destructive: oklch(0.557 0.223 28.735);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.896 0.235 135.309);
  --chart-1: oklch(0.896 0.235 135.309);
  --chart-2: oklch(0.284 0.006 131.911);
  --chart-3: oklch(0.284 0.006 131.911);
  --chart-4: oklch(0.315 0.007 131.919);
  --chart-5: oklch(0.902 0.24 135.434);
}