Qiita is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted cyan accents (#576f75). The light mode uses a cyan-tinted background (#364549). Dark mode keeps the near-white primary (#ffffff) on a cyan-tinted background (#364549).
| Token | Light | Dark |
|---|---|---|
| Background | #364549darkslategray | #364549darkslategray |
| Foreground | #e3e3e3gainsboro | #e3e3e3gainsboro |
| Card | #324043darkslategray | #324043darkslategray |
| Card foreground | #f0f0f0whitesmoke | #f0f0f0whitesmoke |
| Popover | #303d41darkslategray | #303d41darkslategray |
| Popover foreground | #fcfcfcsnow | #fcfcfcsnow |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #414f53darkslategray | #414f53darkslategray |
| Muted foreground | #c3cdd0lightgrey | #c3cdd0lightgrey |
| Accent | #576f75dimgray | #576f75dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #f35d3ftomato | #f35d3ftomato |
| Destructive foreground | #000000black | #000000black |
| Border | #494f50darkslategray | #494f50darkslategray |
| Input | #505758darkslategray | #505758darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.75:1 | AAA |
| Text on card | 9.48:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.25:1 | AA |
| Accent | 5.35:1 | AA |
| Destructive | 6.44:1 | AA |
| Text on background | 7.75:1 | AAA |
| Text on card | 9.48:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.25:1 | AA |
| Accent | 5.35:1 | AA |
| Destructive | 6.44:1 | AA |
Paste this into your globals.css to use Qiita in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.38 0.02 216.427);
--foreground: oklch(0.916 0 180);
--muted: oklch(0.417 0.019 216.323);
--muted-foreground: oklch(0.842 0.012 216.076);
--popover: oklch(0.349 0.018 216.413);
--popover-foreground: oklch(0.992 0 161.565);
--card: oklch(0.359 0.019 216.418);
--card-foreground: oklch(0.954 0 180);
--border: oklch(0.422 0.008 216.11);
--input: oklch(0.45 0.009 216.112);
--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.524 0.03 216.473);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.669 0.19 33.182);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.524 0.03 216.473);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.38 0.02 216.427);
--foreground: oklch(0.916 0 180);
--muted: oklch(0.417 0.019 216.323);
--muted-foreground: oklch(0.842 0.012 216.076);
--popover: oklch(0.349 0.018 216.413);
--popover-foreground: oklch(0.992 0 161.565);
--card: oklch(0.359 0.019 216.418);
--card-foreground: oklch(0.954 0 180);
--border: oklch(0.422 0.008 216.11);
--input: oklch(0.45 0.009 216.112);
--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.524 0.03 216.473);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.669 0.19 33.182);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.524 0.03 216.473);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}