Mythology for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.21:1AAA
Text on card19.21:1AAA
Primary button9.15:1AAA
Secondary button7.00:1AAA
Muted text4.91:1AA
Accent6.91:1AA
Destructive4.60:1AA
Dark mode
Text on background19.07:1AAA
Text on card19.07:1AAA
Primary button9.15:1AAA
Secondary button7.00:1AAA
Muted text6.57:1AA
Accent6.91:1AA
Destructive6.45:1AA

CSS variables

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);
}