Adviser is a shadcn/ui theme built around a violet primary color (#6442b8) with green accents (#96b842). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#6442b8) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020203black |
| Foreground | #000000black | #f7f7f8whitesmoke |
| Card | #fcfcfcsnow | #040307black |
| Card foreground | #000000black | #faf9fasnow |
| Popover | #ffffffwhite | #020203black |
| Popover foreground | #000000black | #f7f7f8whitesmoke |
| Primary | #6442b8slateblue | #6442b8slateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #96b842yellowgreen | #96b842yellowgreen |
| Secondary foreground | #1c220cblack | #1c220cblack |
| Muted | #edefe6linen | #171910black |
| Muted foreground | #494c43darkslategray | #b9bcb3silver |
| Accent | #96b842yellowgreen | #96b842yellowgreen |
| Accent foreground | #1c220cblack | #1c220cblack |
| Destructive | #9b3e08saddlebrown | #f57d38coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6442b8slateblue | #6442b8slateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 7.56:1 | AAA |
| Accent | 7.17:1 | AAA |
| Destructive | 6.80:1 | AA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 7.17:1 | AAA |
| Muted text | 9.21:1 | AAA |
| Accent | 7.17:1 | AAA |
| Destructive | 7.87:1 | AAA |
Paste this into your globals.css to use Adviser in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.949 0.013 119.545);
--muted-foreground: oklch(0.41 0.014 119.905);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.483 0.176 291.433);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.734 0.148 123.548);
--secondary-foreground: oklch(0.238 0.038 122.367);
--accent: oklch(0.734 0.148 123.548);
--accent-foreground: oklch(0.238 0.038 122.367);
--destructive: oklch(0.485 0.137 43.819);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.483 0.176 291.433);
--chart-1: oklch(0.483 0.176 291.433);
--chart-2: oklch(0.734 0.148 123.548);
--chart-3: oklch(0.734 0.148 123.548);
--chart-4: oklch(0.754 0.147 123.28);
--chart-5: oklch(0.479 0.186 290.695);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.009 299.326);
--foreground: oklch(0.976 0.002 299.268);
--muted: oklch(0.208 0.019 120.91);
--muted-foreground: oklch(0.79 0.012 119.569);
--popover: oklch(0.085 0.009 299.326);
--popover-foreground: oklch(0.976 0.002 299.268);
--card: oklch(0.107 0.012 299.326);
--card-foreground: oklch(0.984 0.001 299.28);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.483 0.176 291.433);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.734 0.148 123.548);
--secondary-foreground: oklch(0.238 0.038 122.367);
--accent: oklch(0.734 0.148 123.548);
--accent-foreground: oklch(0.238 0.038 122.367);
--destructive: oklch(0.716 0.167 47.563);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.483 0.176 291.433);
--chart-1: oklch(0.483 0.176 291.433);
--chart-2: oklch(0.734 0.148 123.548);
--chart-3: oklch(0.734 0.148 123.548);
--chart-4: oklch(0.754 0.147 123.28);
--chart-5: oklch(0.479 0.186 290.695);
}