Treasured is a shadcn/ui theme built around a vivid light pink primary color (#fa94cf) with muted light pink accents (#c9bbc3). The light mode uses a neutral background (#fdf7fa). Dark mode keeps the vivid light pink primary (#fa94cf) on a pink-tinted background (#0a0508).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fasnow | #0a0508black |
| Foreground | #0c0308black | #ffffffwhite |
| Card | #fdf7fasnow | #0a0508black |
| Card foreground | #0c0308black | #ffffffwhite |
| Popover | #fdf7fasnow | #0a0508black |
| Popover foreground | #0c0308black | #ffffffwhite |
| Primary | #fa94cfplum | #fa94cfplum |
| Primary foreground | #580435maroon | #580435maroon |
| Secondary | #dbd7d9gainsboro | #282427darkslategray |
| Secondary foreground | #433d40darkslategray | #c2bcc0silver |
| Muted | #f0eaeewhitesmoke | #150f12black |
| Muted foreground | #554a50darkslategray | #b5aab1darkgray |
| Accent | #c9bbc3silver | #44363edarkslategray |
| Accent foreground | #2d242adarkslategray | #dbd2d7lightgrey |
| Destructive | #d7410forangered | #f16537tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fa94cfplum | #fa94cfplum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.23:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 7.42:1 | AAA |
| Muted text | 7.14:1 | AAA |
| Accent | 8.13:1 | AAA |
| Destructive | 4.52:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 8.43:1 | AAA |
| Accent | 7.67:1 | AAA |
| Destructive | 6.67:1 | AA |
Paste this into your globals.css to use Treasured in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 341.196);
--foreground: oklch(0.121 0.027 341.513);
--muted: oklch(0.943 0.008 341.199);
--muted-foreground: oklch(0.421 0.018 341.983);
--popover: oklch(0.981 0.008 341.196);
--popover-foreground: oklch(0.121 0.027 341.513);
--card: oklch(0.981 0.008 341.196);
--card-foreground: oklch(0.121 0.027 341.513);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.79 0.141 344.877);
--primary-foreground: oklch(0.305 0.121 352.312);
--secondary: oklch(0.882 0.005 341.149);
--secondary-foreground: oklch(0.366 0.011 341.683);
--accent: oklch(0.806 0.019 341.543);
--accent-foreground: oklch(0.274 0.016 342.347);
--destructive: oklch(0.588 0.194 36.134);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.79 0.141 344.877);
--chart-1: oklch(0.79 0.141 344.877);
--chart-2: oklch(0.882 0.005 341.149);
--chart-3: oklch(0.806 0.019 341.543);
--chart-4: oklch(0.906 0.004 341.118);
--chart-5: oklch(0.79 0.146 345.003);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.014 341.064);
--foreground: oklch(1 0 180);
--muted: oklch(0.177 0.012 342.472);
--muted-foreground: oklch(0.751 0.016 341.489);
--popover: oklch(0.126 0.014 341.064);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.126 0.014 341.064);
--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.79 0.141 344.877);
--primary-foreground: oklch(0.305 0.121 352.312);
--secondary: oklch(0.267 0.007 341.611);
--secondary-foreground: oklch(0.802 0.009 341.267);
--accent: oklch(0.352 0.023 342.47);
--accent-foreground: oklch(0.872 0.012 341.335);
--destructive: oklch(0.676 0.183 38.261);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.79 0.141 344.877);
--chart-1: oklch(0.79 0.141 344.877);
--chart-2: oklch(0.267 0.007 341.611);
--chart-3: oklch(0.352 0.023 342.47);
--chart-4: oklch(0.297 0.008 341.639);
--chart-5: oklch(0.79 0.146 345.003);
}