Digital is a shadcn/ui theme built around a muted deep blue primary color (#14161a) with muted deep indigo accents (#14141a). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep blue primary (#14161a) on a blue-tinted background (#040910).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040910black |
| Foreground | #030b16black | #f5f7f9whitesmoke |
| Card | #ffffffwhite | #040910black |
| Card foreground | #030b16black | #f5f7f9whitesmoke |
| Popover | #ffffffwhite | #040910black |
| Popover foreground | #030b16black | #f5f7f9whitesmoke |
| Primary | #14161ablack | #14161ablack |
| Primary foreground | #a5adbbdarkgray | #a5adbbdarkgray |
| Secondary | #14191ablack | #14191ablack |
| Secondary foreground | #a5b8bbdarkgray | #a5b8bbdarkgray |
| Muted | #d9dddegainsboro | #212626darkslategray |
| Muted foreground | #4c5657darkslategray | #a8b2b3darkgray |
| Accent | #14141ablack | #14141ablack |
| Accent foreground | #a7a5bbdarkgray | #a7a5bbdarkgray |
| Destructive | #ae3c0ffirebrick | #d34912chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #14161ablack | #14161ablack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 8.57:1 | AAA |
| Muted text | 5.53:1 | AA |
| Accent | 7.64:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 18.60:1 | AAA |
| Text on card | 18.60:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 8.57:1 | AAA |
| Muted text | 7.08:1 | AAA |
| Accent | 7.64:1 | AAA |
| Destructive | 4.43:1 | AA Large |
Paste this into your globals.css to use Digital in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.146 0.03 254.553);
--muted: oklch(0.895 0.005 206.408);
--muted-foreground: oklch(0.445 0.013 206.299);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.03 254.553);
--card: oklch(1 0 180);
--card-foreground: oklch(0.146 0.03 254.553);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.2 0.009 259.927);
--primary-foreground: oklch(0.746 0.022 259.942);
--secondary: oklch(0.21 0.009 206.267);
--secondary-foreground: oklch(0.77 0.022 206.301);
--accent: oklch(0.194 0.013 290.494);
--accent-foreground: oklch(0.731 0.032 290.947);
--destructive: oklch(0.513 0.157 38.654);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.2 0.009 259.927);
--chart-1: oklch(0.2 0.009 259.927);
--chart-2: oklch(0.21 0.009 206.267);
--chart-3: oklch(0.194 0.013 290.494);
--chart-4: oklch(0.244 0.011 206.261);
--chart-5: oklch(0.199 0.011 259.911);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.019 254.13);
--foreground: oklch(0.975 0.004 259.938);
--muted: oklch(0.263 0.006 206.315);
--muted-foreground: oklch(0.755 0.011 206.356);
--popover: oklch(0.137 0.019 254.13);
--popover-foreground: oklch(0.975 0.004 259.938);
--card: oklch(0.137 0.019 254.13);
--card-foreground: oklch(0.975 0.004 259.938);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.2 0.009 259.927);
--primary-foreground: oklch(0.746 0.022 259.942);
--secondary: oklch(0.21 0.009 206.267);
--secondary-foreground: oklch(0.77 0.022 206.301);
--accent: oklch(0.194 0.013 290.494);
--accent-foreground: oklch(0.731 0.032 290.947);
--destructive: oklch(0.591 0.184 38.392);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.2 0.009 259.927);
--chart-1: oklch(0.2 0.009 259.927);
--chart-2: oklch(0.21 0.009 206.267);
--chart-3: oklch(0.194 0.013 290.494);
--chart-4: oklch(0.244 0.011 206.261);
--chart-5: oklch(0.199 0.011 259.911);
}