Opposite Steampunk Gold is a shadcn/ui theme built around an orange primary color (#c69c53) with violet accents (#9c53c6). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the orange primary (#c69c53) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfaf8snow | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfaf8snow | #000000black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfaf8snow | #000000black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #c69c53peru | #c69c53peru |
| Primary foreground | #000000black | #000000black |
| Secondary | #53c69cmediumaquamarine | #53c69cmediumaquamarine |
| Secondary foreground | #000000black | #000000black |
| Muted | #eef7f3whitesmoke | #08110eblack |
| Muted foreground | #515c58dimgray | #a3aeaadarkgray |
| Accent | #9c53c6mediumorchid | #9c53c6mediumorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #982806saddlebrown | #f54c19orangered |
| Destructive foreground | #fdddd3antiquewhite | #ffffffwhite |
| Border | #e1e1e0gainsboro | #272625darkslategray |
| Input | #e1e1e0gainsboro | #272625darkslategray |
| Ring | #c69c53peru | #c69c53peru |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 9.88:1 | AAA |
| Muted text | 6.35:1 | AA |
| Accent | 4.71:1 | AA |
| Destructive | 6.23:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 9.88:1 | AAA |
| Muted text | 8.36:1 | AAA |
| Accent | 4.71:1 | AA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Opposite Steampunk Gold in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.003 81.514);
--foreground: oklch(0 0 0);
--muted: oklch(0.968 0.01 172.262);
--muted-foreground: oklch(0.464 0.014 171.649);
--popover: oklch(0.986 0.003 81.514);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.003 81.514);
--card-foreground: oklch(0 0 0);
--border: oklch(0.909 0.001 81.514);
--input: oklch(0.909 0.001 81.514);
--primary: oklch(0.715 0.104 79.524);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.748 0.122 166.024);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.578 0.18 311.269);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.452 0.152 35.293);
--destructive-foreground: oklch(0.921 0.039 37.608);
--ring: oklch(0.715 0.104 79.524);
--chart-1: oklch(0.715 0.104 79.524);
--chart-2: oklch(0.748 0.122 166.024);
--chart-3: oklch(0.578 0.18 311.269);
--chart-4: oklch(0.763 0.115 166.735);
--chart-5: oklch(0.72 0.109 79.251);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.168 0.015 169.802);
--muted-foreground: oklch(0.74 0.013 172.063);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.271 0.002 81.512);
--input: oklch(0.271 0.002 81.512);
--primary: oklch(0.715 0.104 79.524);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.748 0.122 166.024);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.578 0.18 311.269);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.652 0.213 35.725);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.715 0.104 79.524);
--chart-1: oklch(0.715 0.104 79.524);
--chart-2: oklch(0.748 0.122 166.024);
--chart-3: oklch(0.578 0.18 311.269);
--chart-4: oklch(0.763 0.115 166.735);
--chart-5: oklch(0.72 0.109 79.251);
}