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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.35:1 | AAA |
| Text on card | 20.35:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 7.13:1 | AAA |
| Muted text | 8.39:1 | AAA |
| Accent | 7.41:1 | AAA |
| Destructive | 5.75:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 7.13:1 | AAA |
| Muted text | 9.52:1 | AAA |
| Accent | 7.41:1 | AAA |
| Destructive | 4.36:1 | AA Large |
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);
}