Opportunity is a shadcn/ui theme built around a neutral gray primary color (#dfe2df) with neutral gray accents (#e2dfe2). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the neutral gray primary (#dfe2df) on a green-tinted background (#060e07).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfcwhite | #060e07black |
| Foreground | #010402black | #ffffffwhite |
| Card | #f8fcf8mintcream | #071209black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fcf8mintcream | #071209black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #dfe2dfgainsboro | #dfe2dfgainsboro |
| Primary foreground | #434c44darkslategray | #434c44darkslategray |
| Secondary | #e2dfe2gainsboro | #e2dfe2gainsboro |
| Secondary foreground | #4c434bdarkslategray | #4c434bdarkslategray |
| Muted | #f5eaf4whitesmoke | #150a14black |
| Muted foreground | #4e464ddarkslategray | #b9b1b8silver |
| Accent | #e2dfe2gainsboro | #e2dfe2gainsboro |
| Accent foreground | #4c434bdarkslategray | #4c434bdarkslategray |
| Destructive | #ca2702firebrick | #f72f02orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dfe2dfgainsboro | #dfe2dfgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 7.79:1 | AAA |
| Accent | 7.16:1 | AAA |
| Destructive | 5.53:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 6.83:1 | AA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 9.26:1 | AAA |
| Accent | 7.16:1 | AAA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use Opportunity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 149.094);
--foreground: oklch(0.097 0.016 148.045);
--muted: oklch(0.949 0.017 329.346);
--muted-foreground: oklch(0.405 0.015 329.543);
--popover: oklch(0.987 0.007 149.055);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.007 149.055);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.91 0.006 149.057);
--primary-foreground: oklch(0.405 0.017 148.637);
--secondary: oklch(0.906 0.006 329.208);
--secondary-foreground: oklch(0.395 0.017 329.622);
--accent: oklch(0.906 0.006 329.208);
--accent-foreground: oklch(0.395 0.017 329.622);
--destructive: oklch(0.543 0.202 32.507);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.91 0.006 149.057);
--chart-1: oklch(0.91 0.006 149.057);
--chart-2: oklch(0.906 0.006 329.208);
--chart-3: oklch(0.906 0.006 329.208);
--chart-4: oklch(0.93 0.004 329.188);
--chart-5: oklch(0.911 0.009 149.019);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.022 147.935);
--foreground: oklch(1 0 180);
--muted: oklch(0.164 0.027 330.892);
--muted-foreground: oklch(0.77 0.012 329.319);
--popover: oklch(0.169 0.025 147.501);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.169 0.025 147.501);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.91 0.006 149.057);
--primary-foreground: oklch(0.405 0.017 148.637);
--secondary: oklch(0.906 0.006 329.208);
--secondary-foreground: oklch(0.395 0.017 329.622);
--accent: oklch(0.906 0.006 329.208);
--accent-foreground: oklch(0.395 0.017 329.622);
--destructive: oklch(0.631 0.236 32.242);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.91 0.006 149.057);
--chart-1: oklch(0.91 0.006 149.057);
--chart-2: oklch(0.906 0.006 329.208);
--chart-3: oklch(0.906 0.006 329.208);
--chart-4: oklch(0.93 0.004 329.188);
--chart-5: oklch(0.911 0.009 149.019);
}