Gas is a shadcn/ui theme built around a near-black primary color (#03070c) with near-black accents (#070c03). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the near-black primary (#03070c) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #010204black |
| Foreground | #020508black | #f5f7fawhitesmoke |
| Card | #f7fafdghostwhite | #030507black |
| Card foreground | #010204black | #f8fafcghostwhite |
| Popover | #fbfcfewhite | #010204black |
| Popover foreground | #020508black | #f5f7fawhitesmoke |
| Primary | #03070cblack | #03070cblack |
| Primary foreground | #6a9bd7cornflowerblue | #6a9bd7cornflowerblue |
| Secondary | #0c0307black | #0c0307black |
| Secondary foreground | #d76a9bpalevioletred | #d76a9bpalevioletred |
| Muted | #e8c9d7thistle | #361725black |
| Muted foreground | #575254dimgray | #ada8abdarkgray |
| Accent | #070c03black | #070c03black |
| Accent foreground | #67ad2eolivedrab | #67ad2eolivedrab |
| Destructive | #aa2109firebrick | #f33c1borangered |
| Destructive foreground | #feeae7linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #03070cblack | #03070cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 6.99:1 | AA |
| Secondary button | 6.21:1 | AA |
| Muted text | 5.04:1 | AA |
| Accent | 7.13:1 | AAA |
| Destructive | 6.20:1 | AA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 6.99:1 | AA |
| Secondary button | 6.21:1 | AA |
| Muted text | 6.88:1 | AA |
| Accent | 7.13:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Gas in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 253.236);
--foreground: oklch(0.11 0.015 243.524);
--muted: oklch(0.867 0.039 348.999);
--muted-foreground: oklch(0.443 0.008 348.272);
--popover: oklch(0.991 0.002 253.236);
--popover-foreground: oklch(0.11 0.015 243.524);
--card: oklch(0.983 0.005 253.254);
--card-foreground: oklch(0.087 0.012 243.524);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.126 0.015 245.35);
--primary-foreground: oklch(0.68 0.104 254.062);
--secondary: oklch(0.121 0.024 347.816);
--secondary-foreground: oklch(0.667 0.147 353.546);
--accent: oklch(0.145 0.024 129.306);
--accent-foreground: oklch(0.677 0.173 134.235);
--destructive: oklch(0.478 0.175 31.925);
--destructive-foreground: oklch(0.952 0.022 29.561);
--ring: oklch(0.126 0.015 245.35);
--chart-1: oklch(0.126 0.015 245.35);
--chart-2: oklch(0.121 0.024 347.816);
--chart-3: oklch(0.145 0.024 129.306);
--chart-4: oklch(0.159 0.035 352.716);
--chart-5: oklch(0.126 0.016 244.982);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.008 246.454);
--foreground: oklch(0.976 0.004 253.249);
--muted: oklch(0.254 0.053 353.151);
--muted-foreground: oklch(0.738 0.007 348.056);
--popover: oklch(0.088 0.008 246.454);
--popover-foreground: oklch(0.976 0.004 253.249);
--card: oklch(0.111 0.011 246.454);
--card-foreground: oklch(0.984 0.003 253.239);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.126 0.015 245.35);
--primary-foreground: oklch(0.68 0.104 254.062);
--secondary: oklch(0.121 0.024 347.816);
--secondary-foreground: oklch(0.667 0.147 353.546);
--accent: oklch(0.145 0.024 129.306);
--accent-foreground: oklch(0.677 0.173 134.235);
--destructive: oklch(0.633 0.223 32.18);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.126 0.015 245.35);
--chart-1: oklch(0.126 0.015 245.35);
--chart-2: oklch(0.121 0.024 347.816);
--chart-3: oklch(0.145 0.024 129.306);
--chart-4: oklch(0.159 0.035 352.716);
--chart-5: oklch(0.126 0.016 244.982);
}