Gaseous for shadcn/ui

Gaseous is a shadcn/ui theme built around a purple primary color (#b875a7) with red accents (#b87586). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#b875a7) on a purple-tinted background (#0e060c).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e060cblack
Foreground
#11040eblack
#ffffffwhite
Card
#ffffffwhite
#0e060cblack
Card foreground
#11040eblack
#ffffffwhite
Popover
#ffffffwhite
#0e060cblack
Popover foreground
#11040eblack
#ffffffwhite
Primary
#b875a7rosybrown
#b875a7rosybrown
Primary foreground
#000000black
#000000black
Secondary
#a775b8mediumpurple
#a775b8mediumpurple
Secondary foreground
#000000black
#000000black
Muted
#ede7eelavender
#161118black
Muted foreground
#676567dimgray
#9a989adarkgray
Accent
#b87586rosybrown
#b87586rosybrown
Accent foreground
#000000black
#000000black
Destructive
#a12608firebrick
#f4461aorangered
Destructive foreground
#fde3ddmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b875a7rosybrown
#b875a7rosybrown

Contrast

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

Light mode
Text on background20.04:1AAA
Text on card20.04:1AAA
Primary button6.13:1AA
Secondary button5.88:1AA
Muted text4.73:1AA
Accent5.92:1AA
Destructive6.16:1AA
Dark mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button6.13:1AA
Secondary button5.88:1AA
Muted text6.51:1AA
Accent5.92:1AA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.136 0.035 336.401);
  --muted: oklch(0.934 0.012 317.742);
  --muted-foreground: oklch(0.509 0.004 317.751);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.136 0.035 336.401);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.136 0.035 336.401);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.649 0.107 336.442);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.638 0.112 317.432);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.638 0.086 3.565);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.466 0.163 33.781);
  --destructive-foreground: oklch(0.936 0.03 34.303);
  --ring: oklch(0.649 0.107 336.442);
  --chart-1: oklch(0.649 0.107 336.442);
  --chart-2: oklch(0.638 0.112 317.432);
  --chart-3: oklch(0.638 0.086 3.565);
  --chart-4: oklch(0.664 0.103 317.481);
  --chart-5: oklch(0.648 0.116 336.67);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.022 335.574);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.186 0.018 317.602);
  --muted-foreground: oklch(0.682 0.003 317.755);
  --popover: oklch(0.139 0.022 335.574);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.022 335.574);
  --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.649 0.107 336.442);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.638 0.112 317.432);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.638 0.086 3.565);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.643 0.217 34.195);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.649 0.107 336.442);
  --chart-1: oklch(0.649 0.107 336.442);
  --chart-2: oklch(0.638 0.112 317.432);
  --chart-3: oklch(0.638 0.086 3.565);
  --chart-4: oklch(0.664 0.103 317.481);
  --chart-5: oklch(0.648 0.116 336.67);
}