Opulent is a shadcn/ui theme built around a muted deep orange primary color (#17100d) with muted deep blue accents (#0d1317). The light mode uses a neutral background (#fdfcfb). Dark mode keeps the muted deep orange primary (#17100d) on a neutral background (#040202).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfbsnow | #040202black |
| Foreground | #050201black | #ffffffwhite |
| Card | #fcf9f8snow | #070403black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcf9f8snow | #070403black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #17100dblack | #17100dblack |
| Primary foreground | #c2a493rosybrown | #c2a493rosybrown |
| Secondary | #0d1317black | #0d1317black |
| Secondary foreground | #93b2c2darkgray | #93b2c2darkgray |
| Muted | #d7e3eagainsboro | #152228black |
| Muted foreground | #636363dimgray | #9c9c9cdarkgray |
| Accent | #0d1317black | #0d1317black |
| Accent foreground | #93b2c2darkgray | #93b2c2darkgray |
| Destructive | #671104maroon | #f52e0forangered |
| Destructive foreground | #fbaea2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #17100dblack | #17100dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 4.60:1 | AA |
| Accent | 8.34:1 | AAA |
| Destructive | 7.03:1 | AAA |
| Text on background | 20.68:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 8.34:1 | AAA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Opulent in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 50.637);
--foreground: oklch(0.091 0.015 63.478);
--muted: oklch(0.909 0.017 230.917);
--muted-foreground: oklch(0.501 0 180);
--popover: oklch(0.985 0.004 50.613);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.985 0.004 50.613);
--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.182 0.013 49.816);
--primary-foreground: oklch(0.741 0.043 49.968);
--secondary: oklch(0.183 0.012 231.796);
--secondary-foreground: oklch(0.746 0.041 231.548);
--accent: oklch(0.183 0.012 231.796);
--accent-foreground: oklch(0.746 0.041 231.548);
--destructive: oklch(0.335 0.121 31.927);
--destructive-foreground: oklch(0.821 0.093 28.928);
--ring: oklch(0.182 0.013 49.816);
--chart-1: oklch(0.182 0.013 49.816);
--chart-2: oklch(0.183 0.012 231.796);
--chart-3: oklch(0.183 0.012 231.796);
--chart-4: oklch(0.218 0.017 232.011);
--chart-5: oklch(0.182 0.014 49.728);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.091 0.007 56.476);
--foreground: oklch(1 0 180);
--muted: oklch(0.241 0.022 232.39);
--muted-foreground: oklch(0.691 0 180);
--popover: oklch(0.115 0.009 56.476);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.115 0.009 56.476);
--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.182 0.013 49.816);
--primary-foreground: oklch(0.741 0.043 49.968);
--secondary: oklch(0.183 0.012 231.796);
--secondary-foreground: oklch(0.746 0.041 231.548);
--accent: oklch(0.183 0.012 231.796);
--accent-foreground: oklch(0.746 0.041 231.548);
--destructive: oklch(0.626 0.235 31.307);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.182 0.013 49.816);
--chart-1: oklch(0.182 0.013 49.816);
--chart-2: oklch(0.183 0.012 231.796);
--chart-3: oklch(0.183 0.012 231.796);
--chart-4: oklch(0.218 0.017 232.011);
--chart-5: oklch(0.182 0.014 49.728);
}