Junker is a shadcn/ui theme built around a violet primary color (#7121d4) with purple accents (#cb21d4). The light mode uses a neutral background (#faf6fd). Dark mode keeps the violet primary (#7121d4) on a violet-tinted background (#0a060f).
| Token | Light | Dark |
|---|---|---|
| Background | #faf6fdghostwhite | #0a060fblack |
| Foreground | #020104black | #ffffffwhite |
| Card | #f7f2fdghostwhite | #0c0712black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f7f2fdghostwhite | #0c0712black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #7121d4blueviolet | #7121d4blueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #212ad4mediumblue | #212ad4mediumblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d4d6ecgainsboro | #13142bblack |
| Muted foreground | #46464edarkslategray | #b1b1b9darkgray |
| Accent | #cb21d4darkorchid | #cb21d4darkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #810803maroon | #fa352ecrimson |
| Destructive foreground | #fdbcb9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7121d4blueviolet | #7121d4blueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.52:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 8.95:1 | AAA |
| Muted text | 6.50:1 | AA |
| Accent | 4.46:1 | AA Large |
| Destructive | 6.62:1 | AA |
| Text on background | 20.10:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 7.30:1 | AAA |
| Secondary button | 8.95:1 | AAA |
| Muted text | 8.49:1 | AAA |
| Accent | 4.46:1 | AA Large |
| Destructive | 3.75:1 | AA Large |
Paste this into your globals.css to use Junker in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.01 306.298);
--foreground: oklch(0.08 0.018 307.878);
--muted: oklch(0.881 0.031 283.342);
--muted-foreground: oklch(0.397 0.014 283.336);
--popover: oklch(0.968 0.015 306.23);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.968 0.015 306.23);
--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.485 0.241 295.85);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.431 0.247 268.153);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.605 0.265 325.833);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.383 0.152 29.453);
--destructive-foreground: oklch(0.854 0.076 21.027);
--ring: oklch(0.485 0.241 295.85);
--chart-1: oklch(0.485 0.241 295.85);
--chart-2: oklch(0.431 0.247 268.153);
--chart-3: oklch(0.605 0.265 325.833);
--chart-4: oklch(0.451 0.251 268.739);
--chart-5: oklch(0.486 0.247 295.186);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.022 306.096);
--foreground: oklch(1 0 180);
--muted: oklch(0.203 0.045 279.327);
--muted-foreground: oklch(0.763 0.012 283.697);
--popover: oklch(0.144 0.025 304.712);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.144 0.025 304.712);
--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.485 0.241 295.85);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.431 0.247 268.153);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.605 0.265 325.833);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.64 0.232 28.096);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.485 0.241 295.85);
--chart-1: oklch(0.485 0.241 295.85);
--chart-2: oklch(0.431 0.247 268.153);
--chart-3: oklch(0.605 0.265 325.833);
--chart-4: oklch(0.451 0.251 268.739);
--chart-5: oklch(0.486 0.247 295.186);
}