Underground is a shadcn/ui theme built around a vivid yellow primary color (#e6b105) with vivid green accents (#aae605). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#e6b105) on a yellow-tinted background (#0d0c07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d0c07black |
| Foreground | #120e02black | #f9f8f6whitesmoke |
| Card | #fcfcfcsnow | #110f09black |
| Card foreground | #0e0b02black | #fbfaf9snow |
| Popover | #fcfcfcsnow | #110f09black |
| Popover foreground | #0e0b02black | #fbfaf9snow |
| Primary | #e6b105orange | #e6b105orange |
| Primary foreground | #1e1701black | #1e1701black |
| Secondary | #e64105orangered | #e64105orangered |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f5edealinen | #150d0ablack |
| Muted foreground | #6f5e58dimgray | #a79690rosybrown |
| Accent | #aae605greenyellow | #aae605greenyellow |
| Accent foreground | #161e01black | #161e01black |
| Destructive | #b8380afirebrick | #f4602atomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e6b105orange | #e6b105orange |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.27:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 9.06:1 | AAA |
| Secondary button | 4.10:1 | AA Large |
| Muted text | 5.32:1 | AA |
| Accent | 11.48:1 | AAA |
| Destructive | 5.80:1 | AA |
| Text on background | 18.44:1 | AAA |
| Text on card | 18.40:1 | AAA |
| Primary button | 9.06:1 | AAA |
| Secondary button | 4.10:1 | AA Large |
| Muted text | 6.78:1 | AA |
| Accent | 11.48:1 | AAA |
| Destructive | 6.53:1 | AA |
Paste this into your globals.css to use Underground in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.167 0.028 95.843);
--muted: oklch(0.952 0.01 41.225);
--muted-foreground: oklch(0.497 0.025 41.005);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.149 0.025 97.616);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.149 0.025 97.616);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.788 0.16 86.954);
--primary-foreground: oklch(0.208 0.041 93.953);
--secondary: oklch(0.614 0.209 35.816);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.852 0.217 126.377);
--accent-foreground: oklch(0.219 0.052 122.587);
--destructive: oklch(0.526 0.172 36.862);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.788 0.16 86.954);
--chart-1: oklch(0.788 0.16 86.954);
--chart-2: oklch(0.614 0.209 35.816);
--chart-3: oklch(0.852 0.217 126.377);
--chart-4: oklch(0.643 0.22 35.714);
--chart-5: oklch(0.795 0.162 86.566);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.011 93.984);
--foreground: oklch(0.979 0.003 92.684);
--muted: oklch(0.168 0.016 40.876);
--muted-foreground: oklch(0.687 0.023 41.084);
--popover: oklch(0.168 0.012 93.257);
--popover-foreground: oklch(0.986 0.002 92.675);
--card: oklch(0.168 0.012 93.257);
--card-foreground: oklch(0.986 0.002 92.675);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.788 0.16 86.954);
--primary-foreground: oklch(0.208 0.041 93.953);
--secondary: oklch(0.614 0.209 35.816);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.852 0.217 126.377);
--accent-foreground: oklch(0.219 0.052 122.587);
--destructive: oklch(0.672 0.193 38.74);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.788 0.16 86.954);
--chart-1: oklch(0.788 0.16 86.954);
--chart-2: oklch(0.614 0.209 35.816);
--chart-3: oklch(0.852 0.217 126.377);
--chart-4: oklch(0.643 0.22 35.714);
--chart-5: oklch(0.795 0.162 86.566);
}