Orange is a shadcn/ui theme built around a near-black primary color (#030500) with near-black accents (#020005). The light mode uses a neutral background (#fdfefb). Dark mode keeps the near-black primary (#030500) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #000000black |
| Foreground | #050802black | #fafcf8snow |
| Card | #fdfefbwhite | #000000black |
| Card foreground | #050802black | #fafcf8snow |
| Popover | #fdfefbwhite | #000000black |
| Popover foreground | #050802black | #fafcf8snow |
| Primary | #030500black | #030500black |
| Primary foreground | #6fcf02lawngreen | #6fcf02lawngreen |
| Secondary | #020005black | #020005black |
| Secondary foreground | #cb9ffeplum | #cb9ffeplum |
| Muted | #ddd9e3gainsboro | #211c26black |
| Muted foreground | #56525bdimgray | #a8a4addarkgray |
| Accent | #020005black | #020005black |
| Accent foreground | #cb9ffeplum | #cb9ffeplum |
| Destructive | #991605darkred | #f83a20orangered |
| Destructive foreground | #fed8d2bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030500black | #030500black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 10.33:1 | AAA |
| Secondary button | 9.87:1 | AAA |
| Muted text | 5.47:1 | AA |
| Accent | 9.87:1 | AAA |
| Destructive | 6.44:1 | AA |
| Text on background | 20.34:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 10.33:1 | AAA |
| Secondary button | 9.87:1 | AAA |
| Muted text | 6.82:1 | AA |
| Accent | 9.87:1 | AAA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Orange in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 127.166);
--foreground: oklch(0.128 0.021 126.017);
--muted: oklch(0.891 0.015 306.902);
--muted-foreground: oklch(0.447 0.015 306.706);
--popover: oklch(0.995 0.004 127.166);
--popover-foreground: oklch(0.128 0.021 126.017);
--card: oklch(0.995 0.004 127.166);
--card-foreground: oklch(0.128 0.021 126.017);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.107 0.026 125.499);
--primary-foreground: oklch(0.765 0.221 134.625);
--secondary: oklch(0.07 0.034 310.298);
--secondary-foreground: oklch(0.778 0.139 304.845);
--accent: oklch(0.07 0.034 310.298);
--accent-foreground: oklch(0.778 0.139 304.845);
--destructive: oklch(0.439 0.167 30.986);
--destructive-foreground: oklch(0.911 0.043 26.829);
--ring: oklch(0.107 0.026 125.499);
--chart-1: oklch(0.107 0.026 125.499);
--chart-2: oklch(0.07 0.034 310.298);
--chart-3: oklch(0.07 0.034 310.298);
--chart-4: oklch(0.113 0.056 306.988);
--chart-5: oklch(0.107 0.027 125.458);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.988 0.005 127.172);
--muted: oklch(0.236 0.021 306.009);
--muted-foreground: oklch(0.725 0.013 306.89);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.988 0.005 127.172);
--card: oklch(0 0 0);
--card-foreground: oklch(0.988 0.005 127.172);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.107 0.026 125.499);
--primary-foreground: oklch(0.765 0.221 134.625);
--secondary: oklch(0.07 0.034 310.298);
--secondary-foreground: oklch(0.778 0.139 304.845);
--accent: oklch(0.07 0.034 310.298);
--accent-foreground: oklch(0.778 0.139 304.845);
--destructive: oklch(0.64 0.229 31.041);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.107 0.026 125.499);
--chart-1: oklch(0.107 0.026 125.499);
--chart-2: oklch(0.07 0.034 310.298);
--chart-3: oklch(0.07 0.034 310.298);
--chart-4: oklch(0.113 0.056 306.988);
--chart-5: oklch(0.107 0.027 125.458);
}