Eviction is a shadcn/ui theme built around an orange primary color (#7d5121) with violet accents (#51217d). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the orange primary (#7d5121) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfaf8snow | #000000black |
| Foreground | #0d0802black | #ffffffwhite |
| Card | #fcfaf8snow | #000000black |
| Card foreground | #0d0802black | #ffffffwhite |
| Popover | #fcfaf8snow | #000000black |
| Popover foreground | #0d0802black | #ffffffwhite |
| Primary | #7d5121saddlebrown | #7d5121saddlebrown |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #217d51seagreen | #217d51seagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #eaf1edwhitesmoke | #0e1512black |
| Muted foreground | #4e5552darkslategray | #aab1aedarkgray |
| Accent | #51217ddarkslateblue | #51217ddarkslateblue |
| Accent foreground | #e8dbf5lavender | #e8dbf5lavender |
| Destructive | #b71001firebrick | #fe1b06red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7d5121saddlebrown | #7d5121saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.14:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 6.86:1 | AA |
| Secondary button | 5.10:1 | AA |
| Muted text | 6.64:1 | AA |
| Accent | 8.53:1 | AAA |
| Destructive | 6.81:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.86:1 | AA |
| Secondary button | 5.10:1 | AA |
| Muted text | 8.45:1 | AAA |
| Accent | 8.53:1 | AAA |
| Destructive | 3.91:1 | AA Large |
Paste this into your globals.css to use Eviction in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.003 69.621);
--foreground: oklch(0.138 0.02 78.612);
--muted: oklch(0.951 0.008 165.779);
--muted-foreground: oklch(0.442 0.01 165.415);
--popover: oklch(0.986 0.003 69.621);
--popover-foreground: oklch(0.138 0.02 78.612);
--card: oklch(0.986 0.003 69.621);
--card-foreground: oklch(0.138 0.02 78.612);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.474 0.086 64.607);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.525 0.11 157.5);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.368 0.147 303.454);
--accent-foreground: oklch(0.91 0.039 308.68);
--destructive: oklch(0.494 0.196 30.24);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.474 0.086 64.607);
--chart-1: oklch(0.474 0.086 64.607);
--chart-2: oklch(0.525 0.11 157.5);
--chart-3: oklch(0.368 0.147 303.454);
--chart-4: oklch(0.561 0.118 157.393);
--chart-5: oklch(0.477 0.089 64.118);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.188 0.012 164.139);
--muted-foreground: oklch(0.753 0.009 165.71);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.474 0.086 64.607);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.525 0.11 157.5);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.368 0.147 303.454);
--accent-foreground: oklch(0.91 0.039 308.68);
--destructive: oklch(0.632 0.251 29.995);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.474 0.086 64.607);
--chart-1: oklch(0.474 0.086 64.607);
--chart-2: oklch(0.525 0.11 157.5);
--chart-3: oklch(0.368 0.147 303.454);
--chart-4: oklch(0.561 0.118 157.393);
--chart-5: oklch(0.477 0.089 64.118);
}