Cloak is a shadcn/ui theme built around a deep blue primary color (#060922) with deep green accents (#092206). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the deep blue primary (#060922) on a blue-tinted background (#04050b).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #04050bblack |
| Foreground | #010209black | #f6f6f9whitesmoke |
| Card | #f5f5fawhitesmoke | #05060fblack |
| Card foreground | #010105black | #f9f9fbghostwhite |
| Popover | #f5f5fawhitesmoke | #05060fblack |
| Popover foreground | #010105black | #f9f9fbghostwhite |
| Primary | #060922black | #060922black |
| Primary foreground | #cbd0f6gainsboro | #cbd0f6gainsboro |
| Secondary | #220609black | #220609black |
| Secondary foreground | #e67580lightcoral | #e67580lightcoral |
| Muted | #f6eeefwhitesmoke | #110909black |
| Muted foreground | #584143darkslategray | #bea7a9darkgray |
| Accent | #092206black | #092206black |
| Accent foreground | #37cf26limegreen | #37cf26limegreen |
| Destructive | #972511brown | #ea5c43tomato |
| Destructive foreground | #fbe3dfmistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #060922black | #060922black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 12.96:1 | AAA |
| Secondary button | 6.55:1 | AA |
| Muted text | 8.18:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 6.60:1 | AA |
| Text on background | 18.88:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 12.96:1 | AAA |
| Secondary button | 6.55:1 | AA |
| Muted text | 8.72:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 6.10:1 | AA |
Paste this into your globals.css to use Cloak in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 281.213);
--foreground: oklch(0.089 0.027 270.49);
--muted: oklch(0.956 0.009 10.288);
--muted-foreground: oklch(0.401 0.032 11.92);
--popover: oklch(0.971 0.007 281.174);
--popover-foreground: oklch(0.071 0.022 270.49);
--card: oklch(0.971 0.007 281.174);
--card-foreground: oklch(0.071 0.022 270.49);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.156 0.053 273.108);
--primary-foreground: oklch(0.865 0.053 280.235);
--secondary: oklch(0.178 0.049 16.869);
--secondary-foreground: oklch(0.695 0.14 15.135);
--accent: oklch(0.226 0.059 141.431);
--accent-foreground: oklch(0.747 0.235 141.785);
--destructive: oklch(0.448 0.154 32.299);
--destructive-foreground: oklch(0.935 0.027 29.595);
--ring: oklch(0.156 0.053 273.108);
--chart-1: oklch(0.156 0.053 273.108);
--chart-2: oklch(0.178 0.049 16.869);
--chart-3: oklch(0.226 0.059 141.431);
--chart-4: oklch(0.21 0.063 18.692);
--chart-5: oklch(0.155 0.055 272.414);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.116 0.018 276.667);
--foreground: oklch(0.975 0.003 281.239);
--muted: oklch(0.15 0.015 12.015);
--muted-foreground: oklch(0.749 0.027 10.896);
--popover: oklch(0.129 0.021 276.861);
--popover-foreground: oklch(0.983 0.002 281.255);
--card: oklch(0.129 0.021 276.861);
--card-foreground: oklch(0.983 0.002 281.255);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.156 0.053 273.108);
--primary-foreground: oklch(0.865 0.053 280.235);
--secondary: oklch(0.178 0.049 16.869);
--secondary-foreground: oklch(0.695 0.14 15.135);
--accent: oklch(0.226 0.059 141.431);
--accent-foreground: oklch(0.747 0.235 141.785);
--destructive: oklch(0.655 0.181 32.158);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.156 0.053 273.108);
--chart-1: oklch(0.156 0.053 273.108);
--chart-2: oklch(0.178 0.049 16.869);
--chart-3: oklch(0.226 0.059 141.431);
--chart-4: oklch(0.21 0.063 18.692);
--chart-5: oklch(0.155 0.055 272.414);
}