Gas for shadcn/ui

Gas is a shadcn/ui theme built around a light pink primary color (#f1acc9) with light red accents (#f1b2ac). The light mode uses a neutral background (#ffffff). Dark mode keeps the light pink primary (#f1acc9) on a pink-tinted background (#0e070a).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e070ablack
Foreground
#0c0307black
#fdfcfcsnow
Card
#ffffffwhite
#0e070ablack
Card foreground
#0c0307black
#fdfcfcsnow
Popover
#ffffffwhite
#0e070ablack
Popover foreground
#0c0307black
#fdfcfcsnow
Primary
#f1acc9lightpink
#f1acc9lightpink
Primary foreground
#5c102fmaroon
#5c102fmaroon
Secondary
#f1acebplum
#f1acebplum
Secondary foreground
#5c1055indigo
#5c1055indigo
Muted
#eeddeclavender
#221120black
Muted foreground
#463945darkslategray
#c6b9c5silver
Accent
#f1b2aclightpink
#f1b2aclightpink
Accent foreground
#5c1610maroon
#5c1610maroon
Destructive
#c52602firebrick
#e82c02orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f1acc9lightpink
#f1acc9lightpink

Contrast

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

Light mode
Text on background20.35:1AAA
Text on card20.35:1AAA
Primary button7.31:1AAA
Secondary button7.13:1AAA
Muted text8.39:1AAA
Accent7.41:1AAA
Destructive5.75:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button7.31:1AAA
Secondary button7.13:1AAA
Muted text9.52:1AAA
Accent7.41:1AAA
Destructive4.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.121 0.023 349.6);
  --muted: oklch(0.916 0.027 328.363);
  --muted-foreground: oklch(0.364 0.026 328.788);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.121 0.023 349.6);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.121 0.023 349.6);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.818 0.088 352.511);
  --primary-foreground: oklch(0.319 0.111 0.915);
  --secondary: oklch(0.829 0.114 329.409);
  --secondary-foreground: oklch(0.338 0.134 331.911);
  --accent: oklch(0.82 0.075 24.702);
  --accent-foreground: oklch(0.318 0.102 29.219);
  --destructive: oklch(0.533 0.198 32.545);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.818 0.088 352.511);
  --chart-1: oklch(0.818 0.088 352.511);
  --chart-2: oklch(0.829 0.114 329.409);
  --chart-3: oklch(0.82 0.075 24.702);
  --chart-4: oklch(0.855 0.096 329.17);
  --chart-5: oklch(0.817 0.092 352.633);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.015 350.754);
  --foreground: oklch(0.992 0.001 349.707);
  --muted: oklch(0.209 0.038 329.807);
  --muted-foreground: oklch(0.799 0.022 328.342);
  --popover: oklch(0.139 0.015 350.754);
  --popover-foreground: oklch(0.992 0.001 349.707);
  --card: oklch(0.139 0.015 350.754);
  --card-foreground: oklch(0.992 0.001 349.707);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.818 0.088 352.511);
  --primary-foreground: oklch(0.319 0.111 0.915);
  --secondary: oklch(0.829 0.114 329.409);
  --secondary-foreground: oklch(0.338 0.134 331.911);
  --accent: oklch(0.82 0.075 24.702);
  --accent-foreground: oklch(0.318 0.102 29.219);
  --destructive: oklch(0.602 0.225 32.318);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.818 0.088 352.511);
  --chart-1: oklch(0.818 0.088 352.511);
  --chart-2: oklch(0.829 0.114 329.409);
  --chart-3: oklch(0.82 0.075 24.702);
  --chart-4: oklch(0.855 0.096 329.17);
  --chart-5: oklch(0.817 0.092 352.633);
}