Risk is a shadcn/ui theme built around a muted teal primary color (#79af97) with muted pink accents (#af7990). The light mode uses a neutral background (#fbfefd). Dark mode keeps the muted teal primary (#79af97) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #000000black |
| Foreground | #03170eblack | #f5faf8mintcream |
| Card | #f6fdfamintcream | #030303black |
| Card foreground | #02120bblack | #f8fcfamintcream |
| Popover | #f6fdfamintcream | #030303black |
| Popover foreground | #02120bblack | #f8fcfamintcream |
| Primary | #79af97darkseagreen | #79af97darkseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #af7990rosybrown | #af7990rosybrown |
| Secondary foreground | #000000black | #000000black |
| Muted | #ece9ealinen | #161314black |
| Muted foreground | #6a5860dimgray | #a7959ddarkgray |
| Accent | #af7990rosybrown | #af7990rosybrown |
| Accent foreground | #000000black | #000000black |
| Destructive | #60200bmaroon | #e64d1achocolate |
| Destructive foreground | #f5bba8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #79af97darkseagreen | #79af97darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.27:1 | AAA |
| Text on card | 18.65:1 | AAA |
| Primary button | 8.37:1 | AAA |
| Secondary button | 5.96:1 | AA |
| Muted text | 5.48:1 | AA |
| Accent | 5.96:1 | AA |
| Destructive | 7.32:1 | AAA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 8.37:1 | AAA |
| Secondary button | 5.96:1 | AA |
| Muted text | 6.53:1 | AA |
| Accent | 5.96:1 | AA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Risk in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 168.618);
--foreground: oklch(0.183 0.034 163.825);
--muted: oklch(0.937 0.003 348.837);
--muted-foreground: oklch(0.481 0.025 350.149);
--popover: oklch(0.989 0.008 168.501);
--popover-foreground: oklch(0.165 0.029 165.61);
--card: oklch(0.989 0.008 168.501);
--card-foreground: oklch(0.165 0.029 165.61);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.709 0.066 165.773);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.638 0.073 351.73);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.638 0.073 351.73);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.34 0.099 37.77);
--destructive-foreground: oklch(0.84 0.073 39.226);
--ring: oklch(0.709 0.066 165.773);
--chart-1: oklch(0.709 0.066 165.773);
--chart-2: oklch(0.638 0.073 351.73);
--chart-3: oklch(0.638 0.073 351.73);
--chart-4: oklch(0.664 0.067 351.386);
--chart-5: oklch(0.715 0.073 165.419);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.981 0.007 168.539);
--muted: oklch(0.191 0.005 349.479);
--muted-foreground: oklch(0.689 0.023 349.645);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.987 0.005 168.605);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.987 0.005 168.605);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.709 0.066 165.773);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.638 0.073 351.73);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.638 0.073 351.73);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.626 0.198 36.833);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.709 0.066 165.773);
--chart-1: oklch(0.709 0.066 165.773);
--chart-2: oklch(0.638 0.073 351.73);
--chart-3: oklch(0.638 0.073 351.73);
--chart-4: oklch(0.664 0.067 351.386);
--chart-5: oklch(0.715 0.073 165.419);
}