Gaseous for shadcn/ui

Gaseous is a shadcn/ui theme built around a deep blue primary color (#171b2c) with deep green accents (#1b2c17). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the deep blue primary (#171b2c) on a blue-tinted background (#06080f).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#06080fblack
Foreground
#020408black
#ffffffwhite
Card
#f4f5fbwhitesmoke
#070a12black
Card foreground
#010204black
#ffffffwhite
Popover
#f4f5fbwhitesmoke
#070a12black
Popover foreground
#010204black
#ffffffwhite
Primary
#171b2cblack
#171b2cblack
Primary foreground
#a4aed0lightsteelblue
#a4aed0lightsteelblue
Secondary
#2c171bblack
#2c171bblack
Secondary foreground
#d0a4aesilver
#d0a4aesilver
Muted
#eeececlinen
#131111black
Muted foreground
#4a4a4adarkslategray
#b5b5b5silver
Accent
#1b2c17black
#1b2c17black
Accent foreground
#aed0a4silver
#aed0a4silver
Destructive
#e60400red
#f00400red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#171b2cblack
#171b2cblack

Contrast

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

Light mode
Text on background19.43:1AAA
Text on card19.12:1AAA
Primary button7.74:1AAA
Secondary button7.73:1AAA
Muted text7.53:1AAA
Accent8.72:1AAA
Destructive4.81:1AA
Dark mode
Text on background20.03:1AAA
Text on card19.79:1AAA
Primary button7.74:1AAA
Secondary button7.73:1AAA
Muted text9.19:1AAA
Accent8.72:1AAA
Destructive4.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.005 272.605);
  --foreground: oklch(0.104 0.015 265.869);
  --muted: oklch(0.945 0.003 1.043);
  --muted-foreground: oklch(0.409 0 190.305);
  --popover: oklch(0.972 0.007 272.578);
  --popover-foreground: oklch(0.083 0.012 265.869);
  --card: oklch(0.972 0.007 272.578);
  --card-foreground: oklch(0.083 0.012 265.869);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.228 0.033 270.691);
  --primary-foreground: oklch(0.755 0.05 271.859);
  --secondary: oklch(0.234 0.035 5.053);
  --secondary-foreground: oklch(0.762 0.054 2.862);
  --accent: oklch(0.271 0.044 138.61);
  --accent-foreground: oklch(0.822 0.07 138.436);
  --destructive: oklch(0.581 0.237 29.382);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.228 0.033 270.691);
  --chart-1: oklch(0.228 0.033 270.691);
  --chart-2: oklch(0.234 0.035 5.053);
  --chart-3: oklch(0.271 0.044 138.61);
  --chart-4: oklch(0.263 0.042 5.323);
  --chart-5: oklch(0.226 0.036 270.445);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.135 0.016 268.422);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.179 0.004 1.62);
  --muted-foreground: oklch(0.773 0 180);
  --popover: oklch(0.146 0.019 269.708);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.146 0.019 269.708);
  --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.228 0.033 270.691);
  --primary-foreground: oklch(0.755 0.05 271.859);
  --secondary: oklch(0.234 0.035 5.053);
  --secondary-foreground: oklch(0.762 0.054 2.862);
  --accent: oklch(0.271 0.044 138.61);
  --accent-foreground: oklch(0.822 0.07 138.436);
  --destructive: oklch(0.6 0.245 29.374);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.228 0.033 270.691);
  --chart-1: oklch(0.228 0.033 270.691);
  --chart-2: oklch(0.234 0.035 5.053);
  --chart-3: oklch(0.271 0.044 138.61);
  --chart-4: oklch(0.263 0.042 5.323);
  --chart-5: oklch(0.226 0.036 270.445);
}