Nickname is a shadcn/ui theme built around a green primary color (#89dd83) with purple accents (#d783dd). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the green primary (#89dd83) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #020302black |
| Foreground | #061505black | #f6f9f6whitesmoke |
| Card | #f5faf5whitesmoke | #040704black |
| Card foreground | #051004black | #f9fbf9mintcream |
| Popover | #f5faf5whitesmoke | #040704black |
| Popover foreground | #051004black | #f9fbf9mintcream |
| Primary | #89dd83lightgreen | #89dd83lightgreen |
| Primary foreground | #0c240ablack | #0c240ablack |
| Secondary | #d783ddorchid | #d783ddorchid |
| Secondary foreground | #220a24black | #220a24black |
| Muted | #f4eaf5whitesmoke | #140a15black |
| Muted foreground | #4c484cdarkslategray | #b7b3b7silver |
| Accent | #d783ddorchid | #d783ddorchid |
| Accent foreground | #220a24black | #220a24black |
| Destructive | #9b3208saddlebrown | #f45f25tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #89dd83lightgreen | #89dd83lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.12:1 | AAA |
| Text on card | 18.36:1 | AAA |
| Primary button | 10.00:1 | AAA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 7.69:1 | AAA |
| Accent | 7.18:1 | AAA |
| Destructive | 7.36:1 | AAA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 10.00:1 | AAA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 9.36:1 | AAA |
| Accent | 7.18:1 | AAA |
| Destructive | 6.51:1 | AA |
Paste this into your globals.css to use Nickname in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 143.604);
--foreground: oklch(0.175 0.039 141.994);
--muted: oklch(0.949 0.018 323.732);
--muted-foreground: oklch(0.406 0.009 323.751);
--popover: oklch(0.98 0.009 143.588);
--popover-foreground: oklch(0.158 0.034 141.888);
--card: oklch(0.98 0.009 143.588);
--card-foreground: oklch(0.158 0.034 141.888);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.822 0.148 142.652);
--primary-foreground: oklch(0.233 0.056 142.34);
--secondary: oklch(0.729 0.155 324.612);
--secondary-foreground: oklch(0.198 0.06 324.913);
--accent: oklch(0.729 0.155 324.612);
--accent-foreground: oklch(0.198 0.06 324.913);
--destructive: oklch(0.468 0.148 38.103);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.822 0.148 142.652);
--chart-1: oklch(0.822 0.148 142.652);
--chart-2: oklch(0.729 0.155 324.612);
--chart-3: oklch(0.729 0.155 324.612);
--chart-4: oklch(0.754 0.14 324.507);
--chart-5: oklch(0.826 0.155 142.612);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.01 142.7);
--foreground: oklch(0.979 0.005 143.611);
--muted: oklch(0.164 0.027 324.421);
--muted-foreground: oklch(0.771 0.008 323.688);
--popover: oklch(0.12 0.013 142.7);
--popover-foreground: oklch(0.986 0.003 143.619);
--card: oklch(0.12 0.013 142.7);
--card-foreground: oklch(0.986 0.003 143.619);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.822 0.148 142.652);
--primary-foreground: oklch(0.233 0.056 142.34);
--secondary: oklch(0.729 0.155 324.612);
--secondary-foreground: oklch(0.198 0.06 324.913);
--accent: oklch(0.729 0.155 324.612);
--accent-foreground: oklch(0.198 0.06 324.913);
--destructive: oklch(0.671 0.194 39.531);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.822 0.148 142.652);
--chart-1: oklch(0.822 0.148 142.652);
--chart-2: oklch(0.729 0.155 324.612);
--chart-3: oklch(0.729 0.155 324.612);
--chart-4: oklch(0.754 0.14 324.507);
--chart-5: oklch(0.826 0.155 142.612);
}