Orange is a shadcn/ui theme built around a near-white primary color (#fefdfb) with neutral gray accents (#e3e0de). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fefdfb) on a neutral background (#080502).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080502black |
| Foreground | #140d05black | #fafaf9snow |
| Card | #fcfcfcsnow | #0c0804black |
| Card foreground | #100a04black | #fdfcfcsnow |
| Popover | #ffffffwhite | #080502black |
| Popover foreground | #140d05black | #fafaf9snow |
| Primary | #fefdfbsnow | #fefdfbsnow |
| Primary foreground | #4f3112saddlebrown | #4f3112saddlebrown |
| Secondary | #e3e0degainsboro | #171717black |
| Secondary foreground | #4c4842darkslategray | #b1b0afdarkgray |
| Muted | #e9e3ddgainsboro | #221c16black |
| Muted foreground | #56524ddarkolivegreen | #b2aea9darkgray |
| Accent | #e3e0degainsboro | #171717black |
| Accent foreground | #4c4842darkslategray | #b1b0afdarkgray |
| Destructive | #c31c13firebrick | #eb3c33crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fefdfbsnow | #fefdfbsnow |
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 | 11.56:1 | AAA |
| Secondary button | 6.92:1 | AA |
| Muted text | 6.08:1 | AA |
| Accent | 6.92:1 | AA |
| Destructive | 6.00:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 11.56:1 | AAA |
| Secondary button | 8.28:1 | AAA |
| Muted text | 7.63:1 | AAA |
| Accent | 8.28:1 | AAA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use Orange in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.166 0.021 70.641);
--muted: oklch(0.919 0.01 69.544);
--muted-foreground: oklch(0.441 0.01 69.409);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.166 0.021 70.641);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.152 0.018 73.687);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.993 0.003 69.623);
--primary-foreground: oklch(0.344 0.062 64.682);
--secondary: oklch(0.909 0.004 69.61);
--secondary-foreground: oklch(0.403 0.011 69.372);
--accent: oklch(0.909 0.004 69.61);
--accent-foreground: oklch(0.403 0.011 69.372);
--destructive: oklch(0.524 0.2 29.241);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.993 0.003 69.623);
--chart-1: oklch(0.993 0.003 69.623);
--chart-2: oklch(0.909 0.004 69.61);
--chart-3: oklch(0.909 0.004 69.61);
--chart-4: oklch(0.932 0.003 69.621);
--chart-5: oklch(0.993 0.003 69.622);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.012 76.892);
--foreground: oklch(0.985 0.001 69.64);
--muted: oklch(0.232 0.014 68.94);
--muted-foreground: oklch(0.752 0.009 69.531);
--popover: oklch(0.119 0.012 76.892);
--popover-foreground: oklch(0.985 0.001 69.64);
--card: oklch(0.137 0.014 76.448);
--card-foreground: oklch(0.993 0 69.645);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.993 0.003 69.623);
--primary-foreground: oklch(0.344 0.062 64.682);
--secondary: oklch(0.205 0.001 69.622);
--secondary-foreground: oklch(0.758 0.001 69.631);
--accent: oklch(0.205 0.001 69.622);
--accent-foreground: oklch(0.758 0.001 69.631);
--destructive: oklch(0.621 0.212 28.181);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.993 0.003 69.623);
--chart-1: oklch(0.993 0.003 69.623);
--chart-2: oklch(0.205 0.001 69.622);
--chart-3: oklch(0.205 0.001 69.622);
--chart-4: oklch(0.238 0.001 69.619);
--chart-5: oklch(0.993 0.003 69.622);
}