codeSTACKr Theme is a shadcn/ui theme built around a near-white primary color (#ffffff) with deep blue accents (#1c3b54). The light mode uses a blue-tinted background (#09131b). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#09131b).
| Token | Light | Dark |
|---|---|---|
| Background | #09131bblack | #09131bblack |
| Foreground | #ffffffwhite | #ffffffwhite |
| Card | #060d13black | #060d13black |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #050b0fblack | #050b0fblack |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #22272bdarkslategray | #22272bdarkslategray |
| Muted foreground | #9ba7b0darkgray | #9ba7b0darkgray |
| Accent | #1c3b54darkslategray | #1c3b54darkslategray |
| Accent foreground | #bad3e8lightblue | #bad3e8lightblue |
| Destructive | #f53632crimson | #f53632crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #12202bblack | #12202bblack |
| Input | #172836darkslategray | #172836darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.77:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.15:1 | AA |
| Accent | 7.53:1 | AAA |
| Destructive | 3.84:1 | AA Large |
| Text on background | 18.77:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.15:1 | AA |
| Accent | 7.53:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use codeSTACKr Theme in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.18 0.022 244.05);
--foreground: oklch(1 0 180);
--muted: oklch(0.268 0.011 242.723);
--muted-foreground: oklch(0.722 0.019 242.55);
--popover: oklch(0.144 0.015 239.46);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.156 0.017 242.108);
--card-foreground: oklch(1 0 180);
--border: oklch(0.236 0.028 244.085);
--input: oklch(0.268 0.034 244.249);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.341 0.058 245.338);
--accent-foreground: oklch(0.856 0.04 242.818);
--destructive: oklch(0.634 0.227 27.307);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.341 0.058 245.338);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.18 0.022 244.05);
--foreground: oklch(1 0 180);
--muted: oklch(0.268 0.011 242.723);
--muted-foreground: oklch(0.722 0.019 242.55);
--popover: oklch(0.144 0.015 239.46);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.156 0.017 242.108);
--card-foreground: oklch(1 0 180);
--border: oklch(0.236 0.028 244.085);
--input: oklch(0.268 0.034 244.249);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.341 0.058 245.338);
--accent-foreground: oklch(0.856 0.04 242.818);
--destructive: oklch(0.634 0.227 27.307);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.341 0.058 245.338);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}