Hydrocarbon is a shadcn/ui theme built around a muted purple primary color (#b285a9) with muted pink accents (#b28592). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the muted purple primary (#b285a9) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #000000black |
| Foreground | #140511black | #f9f6f8whitesmoke |
| Card | #fbf4f9lavenderblush | #030303black |
| Card foreground | #10040eblack | #fbf9fasnow |
| Popover | #fbf4f9lavenderblush | #030303black |
| Popover foreground | #10040eblack | #fbf9fasnow |
| Primary | #b285a9rosybrown | #b285a9rosybrown |
| Primary foreground | #030203black | #030203black |
| Secondary | #a585b2darkgray | #a585b2darkgray |
| Secondary foreground | #030203black | #030203black |
| Muted | #e0dae2gainsboro | #231d25black |
| Muted foreground | #63536adimgray | #a695acdarkgray |
| Accent | #b28592rosybrown | #b28592rosybrown |
| Accent foreground | #030202black | #030202black |
| Destructive | #c2240ffirebrick | #f15641tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b285a9rosybrown | #b285a9rosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.80:1 | AAA |
| Text on card | 18.54:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 6.50:1 | AA |
| Muted text | 5.13:1 | AA |
| Accent | 6.56:1 | AA |
| Destructive | 5.89:1 | AA |
| Text on background | 19.56:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 6.50:1 | AA |
| Muted text | 5.89:1 | AA |
| Accent | 6.56:1 | AA |
| Destructive | 6.13:1 | AA |
Paste this into your globals.css to use Hydrocarbon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.007 332.724);
--foreground: oklch(0.15 0.037 335.584);
--muted: oklch(0.895 0.012 316.568);
--muted-foreground: oklch(0.467 0.041 316.35);
--popover: oklch(0.974 0.01 332.778);
--popover-foreground: oklch(0.137 0.033 334.925);
--card: oklch(0.974 0.01 332.778);
--card-foreground: oklch(0.137 0.033 334.925);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.671 0.074 334.237);
--primary-foreground: oklch(0.089 0.007 332.957);
--secondary: oklch(0.662 0.076 316.267);
--secondary-foreground: oklch(0.089 0.007 317.357);
--accent: oklch(0.664 0.059 0.143);
--accent-foreground: oklch(0.089 0.006 357.634);
--destructive: oklch(0.527 0.196 30.97);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.671 0.074 334.237);
--chart-1: oklch(0.671 0.074 334.237);
--chart-2: oklch(0.662 0.076 316.267);
--chart-3: oklch(0.664 0.059 0.143);
--chart-4: oklch(0.689 0.07 316.31);
--chart-5: oklch(0.67 0.084 334.441);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.004 332.685);
--muted: oklch(0.241 0.017 316.402);
--muted-foreground: oklch(0.692 0.037 316.451);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.984 0.003 332.662);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.984 0.003 332.662);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.671 0.074 334.237);
--primary-foreground: oklch(0.089 0.007 332.957);
--secondary: oklch(0.662 0.076 316.267);
--secondary-foreground: oklch(0.089 0.007 317.357);
--accent: oklch(0.664 0.059 0.143);
--accent-foreground: oklch(0.089 0.006 357.634);
--destructive: oklch(0.658 0.194 30.465);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.671 0.074 334.237);
--chart-1: oklch(0.671 0.074 334.237);
--chart-2: oklch(0.662 0.076 316.267);
--chart-3: oklch(0.664 0.059 0.143);
--chart-4: oklch(0.689 0.07 316.31);
--chart-5: oklch(0.67 0.084 334.441);
}