Downright is a shadcn/ui theme built around an orange primary color (#976930) with violet accents (#693097). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the orange primary (#976930) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #000000black |
| Foreground | #120b03black | #faf8f4whitesmoke |
| Card | #fdfdfbsnow | #000000black |
| Card foreground | #120b03black | #faf8f4whitesmoke |
| Popover | #fdfdfbsnow | #000000black |
| Popover foreground | #120b03black | #faf8f4whitesmoke |
| Primary | #976930sienna | #976930sienna |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #309769seagreen | #309769seagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d0e7dcgainsboro | #182f25darkslategray |
| Muted foreground | #576b62dimgray | #94a89fdarkgray |
| Accent | #693097rebeccapurple | #693097rebeccapurple |
| Accent foreground | #fdfbfewhite | #fdfbfewhite |
| Destructive | #8a240asaddlebrown | #d53810firebrick |
| Destructive foreground | #fbd4cbbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #976930sienna | #976930sienna |
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 | 4.80:1 | AA |
| Secondary button | 3.64:1 | AA Large |
| Muted text | 4.38:1 | AA Large |
| Accent | 8.28:1 | AAA |
| Destructive | 6.60:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 4.80:1 | AA |
| Secondary button | 3.64:1 | AA Large |
| Muted text | 5.65:1 | AA |
| Accent | 8.28:1 | AAA |
| Destructive | 4.76:1 | AA |
Paste this into your globals.css to use Downright in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 73.207);
--foreground: oklch(0.155 0.023 77.832);
--muted: oklch(0.908 0.029 166.91);
--muted-foreground: oklch(0.508 0.027 166.252);
--popover: oklch(0.993 0.002 73.207);
--popover-foreground: oklch(0.155 0.023 77.832);
--card: oklch(0.993 0.002 73.207);
--card-foreground: oklch(0.155 0.023 77.832);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.557 0.094 69.05);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.606 0.118 159.802);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.438 0.163 305.925);
--accent-foreground: oklch(0.99 0.004 310.402);
--destructive: oklch(0.421 0.141 34.263);
--destructive-foreground: oklch(0.901 0.045 34.335);
--ring: oklch(0.557 0.094 69.05);
--chart-1: oklch(0.557 0.094 69.05);
--chart-2: oklch(0.606 0.118 159.802);
--chart-3: oklch(0.438 0.163 305.925);
--chart-4: oklch(0.639 0.126 159.734);
--chart-5: oklch(0.561 0.098 68.587);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.005 73.179);
--muted: oklch(0.284 0.036 163.588);
--muted-foreground: oklch(0.713 0.025 166.807);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.979 0.005 73.179);
--card: oklch(0 0 0);
--card-foreground: oklch(0.979 0.005 73.179);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.557 0.094 69.05);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.606 0.118 159.802);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.438 0.163 305.925);
--accent-foreground: oklch(0.99 0.004 310.402);
--destructive: oklch(0.577 0.2 33.885);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.557 0.094 69.05);
--chart-1: oklch(0.557 0.094 69.05);
--chart-2: oklch(0.606 0.118 159.802);
--chart-3: oklch(0.438 0.163 305.925);
--chart-4: oklch(0.639 0.126 159.734);
--chart-5: oklch(0.561 0.098 68.587);
}