Gasoline for shadcn/ui

Gasoline is a shadcn/ui theme built around a muted deep teal primary color (#0b0e0e) with muted light teal accents (#c3d4d5). The light mode uses a neutral background (#f7fcfc). Dark mode keeps the muted deep teal primary (#0b0e0e) on a teal-tinted background (#060e0e).

Color palette

TokenLightDark
Background
#f7fcfcmintcream
#060e0eblack
Foreground
#010404black
#ffffffwhite
Card
#f4fbfbmintcream
#071112black
Card foreground
#000000black
#ffffffwhite
Popover
#f4fbfbmintcream
#071112black
Popover foreground
#000000black
#ffffffwhite
Primary
#0b0e0eblack
#0b0e0eblack
Primary foreground
#9caeb0darkgray
#9caeb0darkgray
Secondary
#c3d4d5lightgrey
#212121black
Secondary foreground
#2a3b3cdarkslategray
#bababasilver
Muted
#dce9e9gainsboro
#231616black
Muted foreground
#475152darkslategray
#b8adaddarkgray
Accent
#c3d4d5lightgrey
#212121black
Accent foreground
#2a3b3cdarkslategray
#bababasilver
Destructive
#ad0c00darkred
#f01000red
Destructive foreground
#ffe2e0mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b0e0eblack
#0b0e0eblack

Contrast

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

Light mode
Text on background19.90:1AAA
Text on card19.97:1AAA
Primary button8.39:1AAA
Secondary button7.63:1AAA
Muted text6.56:1AA
Accent7.63:1AAA
Destructive6.06:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.07:1AAA
Primary button8.39:1AAA
Secondary button8.28:1AAA
Muted text8.06:1AAA
Accent8.28:1AAA
Destructive4.40:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 202.16);
  --foreground: oklch(0.098 0.01 200.059);
  --muted: oklch(0.924 0.013 202.068);
  --muted-foreground: oklch(0.427 0.013 201.917);
  --popover: oklch(0.982 0.007 202.134);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.007 202.134);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.161 0.004 201.946);
  --primary-foreground: oklch(0.738 0.021 201.936);
  --secondary: oklch(0.857 0.018 202.004);
  --secondary-foreground: oklch(0.337 0.021 201.675);
  --accent: oklch(0.857 0.018 202.004);
  --accent-foreground: oklch(0.337 0.021 201.675);
  --destructive: oklch(0.474 0.19 30.079);
  --destructive-foreground: oklch(0.937 0.032 22.621);
  --ring: oklch(0.161 0.004 201.946);
  --chart-1: oklch(0.161 0.004 201.946);
  --chart-2: oklch(0.857 0.018 202.004);
  --chart-3: oklch(0.857 0.018 202.004);
  --chart-4: oklch(0.878 0.015 202.038);
  --chart-5: oklch(0.162 0.005 201.886);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.013 201.161);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.215 0.021 18.948);
  --muted-foreground: oklch(0.757 0.012 17.429);
  --popover: oklch(0.17 0.015 201.438);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.17 0.015 201.438);
  --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.161 0.004 201.946);
  --primary-foreground: oklch(0.738 0.021 201.936);
  --secondary: oklch(0.248 0 173.29);
  --secondary-foreground: oklch(0.789 0 171.254);
  --accent: oklch(0.248 0 173.29);
  --accent-foreground: oklch(0.789 0 171.254);
  --destructive: oklch(0.602 0.243 29.832);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.161 0.004 201.946);
  --chart-1: oklch(0.161 0.004 201.946);
  --chart-2: oklch(0.248 0 173.29);
  --chart-3: oklch(0.248 0 173.29);
  --chart-4: oklch(0.28 0 180);
  --chart-5: oklch(0.162 0.005 201.886);
}