Orange is a shadcn/ui theme built around a deep blue primary color (#173464) with deep green accents (#346417). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#173464) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020203black |
| Foreground | #03070cblack | #f5f7fawhitesmoke |
| Card | #fcfcfcsnow | #030507black |
| Card foreground | #020408black | #f8fafcghostwhite |
| Popover | #fcfcfcsnow | #030507black |
| Popover foreground | #020408black | #f8fafcghostwhite |
| Primary | #173464midnightblue | #173464midnightblue |
| Primary foreground | #bcd0f0lightblue | #bcd0f0lightblue |
| Secondary | #641734maroon | #641734maroon |
| Secondary foreground | #f0bcd0pink | #f0bcd0pink |
| Muted | #f4ecefwhitesmoke | #130b0eblack |
| Muted foreground | #56484ddarkslategray | #b7a9aedarkgray |
| Accent | #346417darkolivegreen | #346417darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a83000firebrick | #e64100orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #173464midnightblue | #173464midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.07:1 | AAA |
| Primary button | 7.83:1 | AAA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 7.43:1 | AAA |
| Accent | 7.06:1 | AAA |
| Destructive | 6.79:1 | AA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 7.83:1 | AAA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 8.57:1 | AAA |
| Accent | 7.06:1 | AAA |
| Destructive | 4.11: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.124 0.015 252.33);
--muted: oklch(0.949 0.009 351.864);
--muted-foreground: oklch(0.418 0.021 352.98);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.109 0.013 251.95);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.109 0.013 251.95);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.331 0.091 259.526);
--primary-foreground: oklch(0.854 0.049 259.904);
--secondary: oklch(0.343 0.112 1.943);
--secondary-foreground: oklch(0.848 0.064 353.646);
--accent: oklch(0.452 0.119 136.083);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.489 0.164 36.993);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.331 0.091 259.526);
--chart-1: oklch(0.331 0.091 259.526);
--chart-2: oklch(0.343 0.112 1.943);
--chart-3: oklch(0.452 0.119 136.083);
--chart-4: oklch(0.371 0.123 2.201);
--chart-5: oklch(0.331 0.095 259.561);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.006 255.224);
--foreground: oklch(0.975 0.005 259.939);
--muted: oklch(0.164 0.014 353.977);
--muted-foreground: oklch(0.748 0.018 352.269);
--popover: oklch(0.111 0.008 255.224);
--popover-foreground: oklch(0.983 0.003 259.937);
--card: oklch(0.111 0.008 255.224);
--card-foreground: oklch(0.983 0.003 259.937);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.331 0.091 259.526);
--primary-foreground: oklch(0.854 0.049 259.904);
--secondary: oklch(0.343 0.112 1.943);
--secondary-foreground: oklch(0.848 0.064 353.646);
--accent: oklch(0.452 0.119 136.083);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.613 0.209 36.226);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.331 0.091 259.526);
--chart-1: oklch(0.331 0.091 259.526);
--chart-2: oklch(0.343 0.112 1.943);
--chart-3: oklch(0.452 0.119 136.083);
--chart-4: oklch(0.371 0.123 2.201);
--chart-5: oklch(0.331 0.095 259.561);
}