Adapta Nokto is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted blue accents (#495f69). The light mode uses a blue-tinted background (#2a363c). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#2a363c).
| Token | Light | Dark |
|---|---|---|
| Background | #2a363cdarkslategray | #2a363cdarkslategray |
| Foreground | #c3cfd5lightgrey | #c3cfd5lightgrey |
| Card | #263136darkslategray | #263136darkslategray |
| Card foreground | #d2dbe0gainsboro | #d2dbe0gainsboro |
| Popover | #242e33darkslategray | #242e33darkslategray |
| Popover foreground | #e1e7ealavender | #e1e7ealavender |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #364045darkslategray | #364045darkslategray |
| Muted foreground | #b5bfc5silver | #b5bfc5silver |
| Accent | #495f69dimgray | #495f69dimgray |
| Accent foreground | #f0f3f5whitesmoke | #f0f3f5whitesmoke |
| Destructive | #f4462ftomato | #f4462ftomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #3b4145darkslategray | #3b4145darkslategray |
| Input | #42494ddarkslategray | #42494ddarkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.80:1 | AAA |
| Text on card | 9.53:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 6.05:1 | AA |
| Destructive | 3.64:1 | AA Large |
| Text on background | 7.80:1 | AAA |
| Text on card | 9.53:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.70:1 | AA |
| Accent | 6.05:1 | AA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Adapta Nokto in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.325 0.02 229.73);
--foreground: oklch(0.847 0.016 229.005);
--muted: oklch(0.363 0.015 229.387);
--muted-foreground: oklch(0.799 0.014 228.986);
--popover: oklch(0.293 0.017 229.687);
--popover-foreground: oklch(0.924 0.008 228.861);
--card: oklch(0.304 0.018 229.703);
--card-foreground: oklch(0.886 0.012 228.928);
--border: oklch(0.372 0.011 229.159);
--input: oklch(0.401 0.012 229.168);
--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.471 0.031 229.853);
--accent-foreground: oklch(0.962 0.004 228.803);
--destructive: oklch(0.644 0.214 30.922);
--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.471 0.031 229.853);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.325 0.02 229.73);
--foreground: oklch(0.847 0.016 229.005);
--muted: oklch(0.363 0.015 229.387);
--muted-foreground: oklch(0.799 0.014 228.986);
--popover: oklch(0.293 0.017 229.687);
--popover-foreground: oklch(0.924 0.008 228.861);
--card: oklch(0.304 0.018 229.703);
--card-foreground: oklch(0.886 0.012 228.928);
--border: oklch(0.372 0.011 229.159);
--input: oklch(0.401 0.012 229.168);
--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.471 0.031 229.853);
--accent-foreground: oklch(0.962 0.004 228.803);
--destructive: oklch(0.644 0.214 30.922);
--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.471 0.031 229.853);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}