High is a shadcn/ui theme built around a deep blue primary color (#121830) with muted light blue accents (#e3e4e8). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#121830) on a neutral background (#030407).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030407black |
| Foreground | #010105black | #f5f6fawhitesmoke |
| Card | #ffffffwhite | #030407black |
| Card foreground | #010105black | #f5f6fawhitesmoke |
| Popover | #ffffffwhite | #030407black |
| Popover foreground | #010105black | #f5f6fawhitesmoke |
| Primary | #121830black | #121830black |
| Primary foreground | #9aa7dalightsteelblue | #9aa7dalightsteelblue |
| Secondary | #e3e4e8gainsboro | #23252fdarkslategray |
| Secondary foreground | #464853darkslategray | #b9bdcasilver |
| Muted | #d8dadegainsboro | #212227black |
| Muted foreground | #474b5cdarkslategray | #a3a7b8darkgray |
| Accent | #e3e4e8gainsboro | #23252fdarkslategray |
| Accent foreground | #464853darkslategray | #b9bdcasilver |
| Destructive | #b23e10firebrick | #ef7443coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #121830black | #121830black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.83:1 | AAA |
| Text on card | 20.83:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 6.16:1 | AA |
| Accent | 7.15:1 | AAA |
| Destructive | 5.85:1 | AA |
| Text on background | 18.97:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 6.64:1 | AA |
| Accent | 8.10:1 | AAA |
| Destructive | 7.23:1 | AAA |
Paste this into your globals.css to use High in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.076 0.018 263.85);
--muted: oklch(0.888 0.006 274.947);
--muted-foreground: oklch(0.416 0.029 274.074);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.076 0.018 263.85);
--card: oklch(1 0 180);
--card-foreground: oklch(0.076 0.018 263.85);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.217 0.049 271.279);
--primary-foreground: oklch(0.737 0.075 273.552);
--secondary: oklch(0.92 0.005 274.967);
--secondary-foreground: oklch(0.405 0.019 274.417);
--accent: oklch(0.92 0.005 274.967);
--accent-foreground: oklch(0.405 0.019 274.417);
--destructive: oklch(0.523 0.16 38.616);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.217 0.049 271.279);
--chart-1: oklch(0.217 0.049 271.279);
--chart-2: oklch(0.92 0.005 274.967);
--chart-3: oklch(0.92 0.005 274.967);
--chart-4: oklch(0.944 0.004 274.989);
--chart-5: oklch(0.216 0.052 270.949);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.01 271.043);
--foreground: oklch(0.973 0.006 274.959);
--muted: oklch(0.253 0.009 274.584);
--muted-foreground: oklch(0.731 0.025 274.592);
--popover: oklch(0.107 0.01 271.043);
--popover-foreground: oklch(0.973 0.006 274.959);
--card: oklch(0.107 0.01 271.043);
--card-foreground: oklch(0.973 0.006 274.959);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.217 0.049 271.279);
--primary-foreground: oklch(0.737 0.075 273.552);
--secondary: oklch(0.268 0.017 274.143);
--secondary-foreground: oklch(0.799 0.02 274.722);
--accent: oklch(0.268 0.017 274.143);
--accent-foreground: oklch(0.799 0.02 274.722);
--destructive: oklch(0.695 0.164 41.205);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.217 0.049 271.279);
--chart-1: oklch(0.217 0.049 271.279);
--chart-2: oklch(0.268 0.017 274.143);
--chart-3: oklch(0.268 0.017 274.143);
--chart-4: oklch(0.297 0.02 274.098);
--chart-5: oklch(0.216 0.052 270.949);
}