Tiara is a shadcn/ui theme built around a muted deep indigo primary color (#424252) with neutral gray accents (#dedede). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep indigo primary (#424252) on a neutral background (#010104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010104black |
| Foreground | #04040cblack | #f9f9fbghostwhite |
| Card | #fcfcfcsnow | #030307black |
| Card foreground | #020208black | #fcfcfdwhite |
| Popover | #ffffffwhite | #010104black |
| Popover foreground | #04040cblack | #f9f9fbghostwhite |
| Primary | #424252darkslategray | #424252darkslategray |
| Primary foreground | #e0e0e6gainsboro | #e0e0e6gainsboro |
| Secondary | #dededegainsboro | #111117black |
| Secondary foreground | #444446darkslategray | #a1a1badarkgray |
| Muted | #dedeedgainsboro | #121221black |
| Muted foreground | #5a5a68dimgray | #9797a5darkgray |
| Accent | #dededegainsboro | #111117black |
| Accent foreground | #444446darkslategray | #a1a1badarkgray |
| Destructive | #682308maroon | #ed5012orangered |
| Destructive foreground | #f9c0aalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #424252darkslategray | #424252darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.19:1 | AAA |
| Muted text | 5.07:1 | AA |
| Accent | 7.19:1 | AAA |
| Destructive | 7.15:1 | AAA |
| Text on background | 19.78:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.43:1 | AAA |
| Muted text | 6.44:1 | AA |
| Accent | 7.43:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Tiara in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.11 0.023 281.924);
--muted: oklch(0.904 0.021 285.963);
--muted-foreground: oklch(0.473 0.022 285.541);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.11 0.023 281.924);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.096 0.02 281.957);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.385 0.027 285.037);
--primary-foreground: oklch(0.908 0.008 286.233);
--secondary: oklch(0.899 0.001 286.382);
--secondary-foreground: oklch(0.388 0.002 286.292);
--accent: oklch(0.899 0.001 286.382);
--accent-foreground: oklch(0.388 0.002 286.292);
--destructive: oklch(0.359 0.106 39.327);
--destructive-foreground: oklch(0.853 0.072 42.585);
--ring: oklch(0.385 0.027 285.037);
--chart-1: oklch(0.385 0.027 285.037);
--chart-2: oklch(0.899 0.001 286.382);
--chart-3: oklch(0.899 0.001 286.382);
--chart-4: oklch(0.923 0.001 286.386);
--chart-5: oklch(0.379 0.035 284.597);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.079 0.013 282.947);
--foreground: oklch(0.983 0.002 286.362);
--muted: oklch(0.189 0.032 282.93);
--muted-foreground: oklch(0.682 0.02 285.864);
--popover: oklch(0.079 0.013 282.947);
--popover-foreground: oklch(0.983 0.002 286.362);
--card: oklch(0.099 0.017 282.947);
--card-foreground: oklch(0.991 0.001 286.381);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.385 0.027 285.037);
--primary-foreground: oklch(0.908 0.008 286.233);
--secondary: oklch(0.182 0.012 285.097);
--secondary-foreground: oklch(0.718 0.035 285.476);
--accent: oklch(0.182 0.012 285.097);
--accent-foreground: oklch(0.718 0.035 285.476);
--destructive: oklch(0.642 0.203 37.98);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.385 0.027 285.037);
--chart-1: oklch(0.385 0.027 285.037);
--chart-2: oklch(0.182 0.012 285.097);
--chart-3: oklch(0.182 0.012 285.097);
--chart-4: oklch(0.212 0.016 284.908);
--chart-5: oklch(0.379 0.035 284.597);
}