Treasured is a shadcn/ui theme built around a deep violet primary color (#160d2b) with muted light violet accents (#d6d2e0). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the deep violet primary (#160d2b) on a neutral background (#050307).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #050307black |
| Foreground | #080410black | #fcfcfdwhite |
| Card | #fcfcfdwhite | #050307black |
| Card foreground | #080410black | #fcfcfdwhite |
| Popover | #fcfcfdwhite | #050307black |
| Popover foreground | #080410black | #fcfcfdwhite |
| Primary | #160d2bblack | #160d2bblack |
| Primary foreground | #a68cdemediumpurple | #a68cdemediumpurple |
| Secondary | #e7e6eblavender | #27232edarkslategray |
| Secondary foreground | #4c4658darkslategray | #bfbacasilver |
| Muted | #e3deedlavender | #171221black |
| Muted foreground | #5a526bdimgray | #9c94addarkgray |
| Accent | #d6d2e0gainsboro | #342c44darkslategray |
| Accent foreground | #3c344bdarkslategray | #cdc7dbthistle |
| Destructive | #941010darkred | #e82121crimson |
| Destructive foreground | #fbdadamistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #160d2bblack | #160d2bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 6.59:1 | AA |
| Secondary button | 7.25:1 | AAA |
| Muted text | 5.57:1 | AA |
| Accent | 7.92:1 | AAA |
| Destructive | 6.92:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 6.59:1 | AA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 6.34:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Treasured in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 300.73);
--foreground: oklch(0.126 0.029 299.735);
--muted: oklch(0.908 0.021 300.382);
--muted-foreground: oklch(0.456 0.04 299.287);
--popover: oklch(0.991 0.002 300.73);
--popover-foreground: oklch(0.126 0.029 299.735);
--card: oklch(0.991 0.002 300.73);
--card-foreground: oklch(0.126 0.029 299.735);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.191 0.06 294.662);
--primary-foreground: oklch(0.696 0.119 297.798);
--secondary: oklch(0.926 0.007 300.644);
--secondary-foreground: oklch(0.408 0.03 299.565);
--accent: oklch(0.871 0.019 300.402);
--accent-foreground: oklch(0.344 0.041 298.78);
--destructive: oklch(0.425 0.164 27.975);
--destructive-foreground: oklch(0.916 0.037 17.844);
--ring: oklch(0.191 0.06 294.662);
--chart-1: oklch(0.191 0.06 294.662);
--chart-2: oklch(0.926 0.007 300.644);
--chart-3: oklch(0.871 0.019 300.402);
--chart-4: oklch(0.951 0.005 300.688);
--chart-5: oklch(0.189 0.063 294.196);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.012 300.959);
--foreground: oklch(0.992 0.001 300.755);
--muted: oklch(0.196 0.031 298.05);
--muted-foreground: oklch(0.683 0.037 299.881);
--popover: oklch(0.107 0.012 300.959);
--popover-foreground: oklch(0.992 0.001 300.755);
--card: oklch(0.107 0.012 300.959);
--card-foreground: oklch(0.992 0.001 300.755);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.191 0.06 294.662);
--primary-foreground: oklch(0.696 0.119 297.798);
--secondary: oklch(0.266 0.02 299.519);
--secondary-foreground: oklch(0.797 0.023 300.296);
--accent: oklch(0.312 0.045 298.335);
--accent-foreground: oklch(0.841 0.029 300.207);
--destructive: oklch(0.596 0.228 27.812);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.191 0.06 294.662);
--chart-1: oklch(0.191 0.06 294.662);
--chart-2: oklch(0.266 0.02 299.519);
--chart-3: oklch(0.312 0.045 298.335);
--chart-4: oklch(0.295 0.023 299.462);
--chart-5: oklch(0.189 0.063 294.196);
}