Treasure is a shadcn/ui theme built around a deep teal primary color (#112c28) with deep yellow accents (#2c2811). The light mode uses a neutral background (#fbfefd). Dark mode keeps the deep teal primary (#112c28) on a teal-tinted background (#050a0a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #050a0ablack |
| Foreground | #000000black | #ffffffwhite |
| Card | #f8fcfcmintcream | #060e0dblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfefdwhite | #050a0ablack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #112c28darkslategray | #112c28darkslategray |
| Primary foreground | #50b9abmediumaquamarine | #50b9abmediumaquamarine |
| Secondary | #28112cblack | #28112cblack |
| Secondary foreground | #ce99d6plum | #ce99d6plum |
| Muted | #e1d4e3gainsboro | #291c2bdarkslategray |
| Muted foreground | #413e42darkslategray | #c1bdc1silver |
| Accent | #2c2811black | #2c2811black |
| Accent foreground | #b9ab50darkkhaki | #b9ab50darkkhaki |
| Destructive | #791202maroon | #fb2909orangered |
| Destructive foreground | #feb9aflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #112c28darkslategray | #112c28darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 6.27:1 | AA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 7.37:1 | AAA |
| Accent | 6.33:1 | AA |
| Destructive | 6.75:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 6.27:1 | AA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 8.71:1 | AAA |
| Accent | 6.33:1 | AA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Treasure in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 187.685);
--foreground: oklch(0 0 0);
--muted: oklch(0.884 0.025 321.67);
--muted-foreground: oklch(0.368 0.008 321.651);
--popover: oklch(0.994 0.003 187.685);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.005 187.621);
--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.27 0.033 184.146);
--primary-foreground: oklch(0.721 0.099 183.461);
--secondary: oklch(0.226 0.058 322.126);
--secondary-foreground: oklch(0.753 0.104 321.943);
--accent: oklch(0.275 0.038 100.689);
--accent-foreground: oklch(0.735 0.114 100.666);
--destructive: oklch(0.371 0.139 31.877);
--destructive-foreground: oklch(0.847 0.082 28.73);
--ring: oklch(0.27 0.033 184.146);
--chart-1: oklch(0.27 0.033 184.146);
--chart-2: oklch(0.226 0.058 322.126);
--chart-3: oklch(0.275 0.038 100.689);
--chart-4: oklch(0.257 0.07 322.136);
--chart-5: oklch(0.273 0.035 183.924);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.011 187.336);
--foreground: oklch(1 0 180);
--muted: oklch(0.25 0.033 321.934);
--muted-foreground: oklch(0.803 0.006 321.615);
--popover: oklch(0.14 0.011 187.336);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.013 186.182);
--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.27 0.033 184.146);
--primary-foreground: oklch(0.721 0.099 183.461);
--secondary: oklch(0.226 0.058 322.126);
--secondary-foreground: oklch(0.753 0.104 321.943);
--accent: oklch(0.275 0.038 100.689);
--accent-foreground: oklch(0.735 0.114 100.666);
--destructive: oklch(0.634 0.243 31.078);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.27 0.033 184.146);
--chart-1: oklch(0.27 0.033 184.146);
--chart-2: oklch(0.226 0.058 322.126);
--chart-3: oklch(0.275 0.038 100.689);
--chart-4: oklch(0.257 0.07 322.136);
--chart-5: oklch(0.273 0.035 183.924);
}