Myth is a shadcn/ui theme built around an indigo primary color (#7257cb) with violet accents (#ac57cb). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#7257cb) on a neutral background (#040208).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #040208black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #f8f6fdghostwhite | #05030cblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8f6fdghostwhite | #05030cblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #7257cbslateblue | #7257cbslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #5776cbsteelblue | #5776cbsteelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dcdee5gainsboro | #1a1c23black |
| Muted foreground | #444546darkslategray | #b9babbsilver |
| Accent | #ac57cbmediumorchid | #ac57cbmediumorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c1260bfirebrick | #ec2f0eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7257cbslateblue | #7257cbslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.31:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 5.30:1 | AA |
| Secondary button | 4.30:1 | AA Large |
| Muted text | 7.15:1 | AAA |
| Accent | 4.19:1 | AA Large |
| Destructive | 5.91:1 | AA |
| Text on background | 20.11:1 | AAA |
| Text on card | 20.44:1 | AAA |
| Primary button | 5.30:1 | AA |
| Secondary button | 4.30:1 | AA Large |
| Muted text | 8.72:1 | AAA |
| Accent | 4.19:1 | AA Large |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Myth in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 296.992);
--foreground: oklch(0 0 0);
--muted: oklch(0.901 0.01 270.032);
--muted-foreground: oklch(0.389 0.002 270.084);
--popover: oklch(0.977 0.01 296.903);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.977 0.01 296.903);
--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.545 0.173 290.232);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.584 0.136 267.112);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.607 0.186 316.156);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.526 0.193 31.895);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.545 0.173 290.232);
--chart-1: oklch(0.545 0.173 290.232);
--chart-2: oklch(0.584 0.136 267.112);
--chart-3: oklch(0.607 0.186 316.156);
--chart-4: oklch(0.613 0.125 267.543);
--chart-5: oklch(0.54 0.181 289.678);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.021 296.54);
--foreground: oklch(0.991 0.002 297.051);
--muted: oklch(0.229 0.014 269.536);
--muted-foreground: oklch(0.788 0.001 270.105);
--popover: oklch(0.113 0.024 296.383);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.113 0.024 296.383);
--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.545 0.173 290.232);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.584 0.136 267.112);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.607 0.186 316.156);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.611 0.226 31.789);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.545 0.173 290.232);
--chart-1: oklch(0.545 0.173 290.232);
--chart-2: oklch(0.584 0.136 267.112);
--chart-3: oklch(0.607 0.186 316.156);
--chart-4: oklch(0.613 0.125 267.543);
--chart-5: oklch(0.54 0.181 289.678);
}