Junker is a shadcn/ui theme built around an indigo primary color (#8a71e5) with green accents (#71e58a). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#8a71e5) on an indigo-tinted background (#070410).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070410black |
| Foreground | #030109black | #f9f8fbghostwhite |
| Card | #fcfcfcsnow | #090614black |
| Card foreground | #010104black | #fcfcfdwhite |
| Popover | #ffffffwhite | #070410black |
| Popover foreground | #030109black | #f9f8fbghostwhite |
| Primary | #8a71e5mediumpurple | #8a71e5mediumpurple |
| Primary foreground | #000000black | #000000black |
| Secondary | #e58a71darksalmon | #e58a71darksalmon |
| Secondary foreground | #1e0b06black | #1e0b06black |
| Muted | #f4edeblinen | #140d0bblack |
| Muted foreground | #725f5adimgray | #a5928drosybrown |
| Accent | #71e58alightgreen | #71e58alightgreen |
| Accent foreground | #061e0bblack | #061e0bblack |
| Destructive | #c9390dfirebrick | #f26236tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8a71e5mediumpurple | #8a71e5mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.74:1 | AAA |
| Text on card | 20.39:1 | AAA |
| Primary button | 5.56:1 | AA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 5.19:1 | AA |
| Accent | 11.06:1 | AAA |
| Destructive | 5.14:1 | AA |
| Text on background | 19.16:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 5.56:1 | AA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 6.50:1 | AA |
| Accent | 11.06:1 | AAA |
| Destructive | 6.56:1 | AA |
Paste this into your globals.css to use Junker in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.09 0.03 295.056);
--muted: oklch(0.951 0.009 35.983);
--muted-foreground: oklch(0.503 0.026 35.95);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.09 0.03 295.056);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.071 0.024 295.056);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.626 0.169 290.648);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.723 0.118 36.275);
--secondary-foreground: oklch(0.178 0.036 38.294);
--accent: oklch(0.832 0.165 148.803);
--accent-foreground: oklch(0.21 0.049 148.477);
--destructive: oklch(0.557 0.188 35.267);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.626 0.169 290.648);
--chart-1: oklch(0.626 0.169 290.648);
--chart-2: oklch(0.723 0.118 36.275);
--chart-3: oklch(0.832 0.165 148.803);
--chart-4: oklch(0.747 0.106 36.2);
--chart-5: oklch(0.622 0.176 290.308);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.028 294.423);
--foreground: oklch(0.981 0.004 296.252);
--muted: oklch(0.166 0.014 36.002);
--muted-foreground: oklch(0.676 0.024 35.944);
--popover: oklch(0.124 0.028 294.423);
--popover-foreground: oklch(0.981 0.004 296.252);
--card: oklch(0.135 0.033 293.146);
--card-foreground: oklch(0.991 0.002 296.292);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.626 0.169 290.648);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.723 0.118 36.275);
--secondary-foreground: oklch(0.178 0.036 38.294);
--accent: oklch(0.832 0.165 148.803);
--accent-foreground: oklch(0.21 0.049 148.477);
--destructive: oklch(0.673 0.187 37.111);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.626 0.169 290.648);
--chart-1: oklch(0.626 0.169 290.648);
--chart-2: oklch(0.723 0.118 36.275);
--chart-3: oklch(0.832 0.165 148.803);
--chart-4: oklch(0.747 0.106 36.2);
--chart-5: oklch(0.622 0.176 290.308);
}