Different is a shadcn/ui theme built around a muted deep green primary color (#131a0f) with muted deep green accents (#0f1a10). The light mode uses a neutral background (#fafcf8). Dark mode keeps the muted deep green primary (#131a0f) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #020401black |
| Foreground | #091203black | #fafbf9snow |
| Card | #f7faf5whitesmoke | #050703black |
| Card foreground | #070d02black | #fcfdfcwhite |
| Popover | #fafcf8snow | #020401black |
| Popover foreground | #091203black | #fafbf9snow |
| Primary | #131a0fblack | #131a0fblack |
| Primary foreground | #a9c497darkseagreen | #a9c497darkseagreen |
| Secondary | #191a0fblack | #191a0fblack |
| Secondary foreground | #969d58darkkhaki | #969d58darkkhaki |
| Muted | #e2e4d3gainsboro | #2a2c1bdarkslategray |
| Muted foreground | #474936darkslategray | #c7c9b6silver |
| Accent | #0f1a10black | #0f1a10black |
| Accent foreground | #97c49bdarkseagreen | #97c49bdarkseagreen |
| Destructive | #ad3201firebrick | #fe6a2ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #131a0fblack | #131a0fblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.44:1 | AAA |
| Text on card | 18.66:1 | AAA |
| Primary button | 9.31:1 | AAA |
| Secondary button | 6.06:1 | AA |
| Muted text | 7.12:1 | AAA |
| Accent | 9.08:1 | AAA |
| Destructive | 6.53:1 | AA |
| Text on background | 19.84:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 9.31:1 | AAA |
| Secondary button | 6.06:1 | AA |
| Muted text | 8.44:1 | AAA |
| Accent | 9.08:1 | AAA |
| Destructive | 7.29:1 | AAA |
Paste this into your globals.css to use Different in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 132.395);
--foreground: oklch(0.167 0.036 131.911);
--muted: oklch(0.912 0.022 111.464);
--muted-foreground: oklch(0.399 0.031 112.436);
--popover: oklch(0.987 0.005 132.395);
--popover-foreground: oklch(0.167 0.036 131.911);
--card: oklch(0.981 0.007 132.415);
--card-foreground: oklch(0.148 0.031 130.863);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.207 0.024 133.325);
--primary-foreground: oklch(0.789 0.07 133.065);
--secondary: oklch(0.213 0.021 112.846);
--secondary-foreground: oklch(0.673 0.092 113.558);
--accent: oklch(0.204 0.026 147.036);
--accent-foreground: oklch(0.777 0.075 147.443);
--destructive: oklch(0.499 0.166 36.999);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.207 0.024 133.325);
--chart-1: oklch(0.207 0.024 133.325);
--chart-2: oklch(0.213 0.021 112.846);
--chart-3: oklch(0.204 0.026 147.036);
--chart-4: oklch(0.253 0.028 113.031);
--chart-5: oklch(0.209 0.026 133.431);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.013 131.203);
--foreground: oklch(0.987 0.003 132.383);
--muted: oklch(0.286 0.028 112.839);
--muted-foreground: oklch(0.829 0.026 111.601);
--popover: oklch(0.098 0.013 131.203);
--popover-foreground: oklch(0.987 0.003 132.383);
--card: oklch(0.124 0.016 131.203);
--card-foreground: oklch(0.993 0.002 132.371);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.207 0.024 133.325);
--primary-foreground: oklch(0.789 0.07 133.065);
--secondary: oklch(0.213 0.021 112.846);
--secondary-foreground: oklch(0.673 0.092 113.558);
--accent: oklch(0.204 0.026 147.036);
--accent-foreground: oklch(0.777 0.075 147.443);
--destructive: oklch(0.701 0.194 40.039);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.207 0.024 133.325);
--chart-1: oklch(0.207 0.024 133.325);
--chart-2: oklch(0.213 0.021 112.846);
--chart-3: oklch(0.204 0.026 147.036);
--chart-4: oklch(0.253 0.028 113.031);
--chart-5: oklch(0.209 0.026 133.431);
}