Mythology is a shadcn/ui theme built around a deep orange primary color (#271d0c) with deep violet accents (#1d0c27). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#271d0c) on a neutral background (#080602).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080602black |
| Foreground | #130e06black | #f9f8f5whitesmoke |
| Card | #ffffffwhite | #080602black |
| Card foreground | #130e06black | #f9f8f5whitesmoke |
| Popover | #ffffffwhite | #080602black |
| Popover foreground | #130e06black | #f9f8f5whitesmoke |
| Primary | #271d0cblack | #271d0cblack |
| Primary foreground | #dabc8bburlywood | #dabc8bburlywood |
| Secondary | #0c271dblack | #0c271dblack |
| Secondary foreground | #3ec18fmediumseagreen | #3ec18fmediumseagreen |
| Muted | #ebefeewhitesmoke | #101412black |
| Muted foreground | #656766dimgray | #989a99darkgray |
| Accent | #1d0c27black | #1d0c27black |
| Accent foreground | #bc8bdaplum | #bc8bdaplum |
| Destructive | #d73d09orangered | #f65b28tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #271d0cblack | #271d0cblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 9.15:1 | AAA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 4.91:1 | AA |
| Accent | 6.91:1 | AA |
| Destructive | 4.60:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 9.15:1 | AAA |
| Secondary button | 7.00:1 | AAA |
| Muted text | 6.57:1 | AA |
| Accent | 6.91:1 | AA |
| Destructive | 6.45:1 | AA |
Paste this into your globals.css to use Mythology in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.168 0.018 80.409);
--muted: oklch(0.949 0.004 171.463);
--muted-foreground: oklch(0.512 0.003 171.433);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.168 0.018 80.409);
--card: oklch(1 0 180);
--card-foreground: oklch(0.168 0.018 80.409);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.236 0.031 78.226);
--primary-foreground: oklch(0.808 0.072 79.285);
--secondary: oklch(0.247 0.038 165.75);
--secondary-foreground: oklch(0.726 0.135 163.513);
--accent: oklch(0.195 0.054 310.82);
--accent-foreground: oklch(0.713 0.122 311.786);
--destructive: oklch(0.585 0.198 35.548);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.236 0.031 78.226);
--chart-1: oklch(0.236 0.031 78.226);
--chart-2: oklch(0.247 0.038 165.75);
--chart-3: oklch(0.195 0.054 310.82);
--chart-4: oklch(0.288 0.046 165.241);
--chart-5: oklch(0.238 0.033 78.011);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.014 86.92);
--foreground: oklch(0.979 0.004 79.928);
--muted: oklch(0.185 0.006 170.585);
--muted-foreground: oklch(0.684 0.003 171.481);
--popover: oklch(0.122 0.014 86.92);
--popover-foreground: oklch(0.979 0.004 79.928);
--card: oklch(0.122 0.014 86.92);
--card-foreground: oklch(0.979 0.004 79.928);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.236 0.031 78.226);
--primary-foreground: oklch(0.808 0.072 79.285);
--secondary: oklch(0.247 0.038 165.75);
--secondary-foreground: oklch(0.726 0.135 163.513);
--accent: oklch(0.195 0.054 310.82);
--accent-foreground: oklch(0.713 0.122 311.786);
--destructive: oklch(0.67 0.2 37.532);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.236 0.031 78.226);
--chart-1: oklch(0.236 0.031 78.226);
--chart-2: oklch(0.247 0.038 165.75);
--chart-3: oklch(0.195 0.054 310.82);
--chart-4: oklch(0.288 0.046 165.241);
--chart-5: oklch(0.238 0.033 78.011);
}