Digital is a shadcn/ui theme built around a vivid green primary color (#c6fd44) with vivid green accents (#69fd44). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the vivid green primary (#c6fd44) on a green-tinted background (#090b04).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfcwhite | #090b04black |
| Foreground | #101405black | #fafbf8snow |
| Card | #fdfdfcwhite | #090b04black |
| Card foreground | #101405black | #fafbf8snow |
| Popover | #fdfdfcwhite | #090b04black |
| Popover foreground | #101405black | #fafbf8snow |
| Primary | #c6fd44greenyellow | #c6fd44greenyellow |
| Primary foreground | #0b0f00black | #0b0f00black |
| Secondary | #fdd844sandybrown | #fdd844sandybrown |
| Secondary foreground | #0f0c00black | #0f0c00black |
| Muted | #eae8e1beige | #1e1c15black |
| Muted foreground | #474438darkslategray | #c7c4b8silver |
| Accent | #69fd44lawngreen | #69fd44lawngreen |
| Accent foreground | #030f00black | #030f00black |
| Destructive | #d40d02red | #ed0e02red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c6fd44greenyellow | #c6fd44greenyellow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.36:1 | AAA |
| Text on card | 18.36:1 | AAA |
| Primary button | 16.20:1 | AAA |
| Secondary button | 14.07:1 | AAA |
| Muted text | 7.96:1 | AAA |
| Accent | 14.69:1 | AAA |
| Destructive | 5.44:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 16.20:1 | AAA |
| Secondary button | 14.07:1 | AAA |
| Muted text | 9.74:1 | AAA |
| Accent | 14.69:1 | AAA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Digital in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 120.074);
--foreground: oklch(0.183 0.031 122.475);
--muted: oklch(0.931 0.009 95.152);
--muted-foreground: oklch(0.387 0.02 95.561);
--popover: oklch(0.994 0.002 120.074);
--popover-foreground: oklch(0.183 0.031 122.475);
--card: oklch(0.994 0.002 120.074);
--card-foreground: oklch(0.183 0.031 122.475);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.924 0.21 125.221);
--primary-foreground: oklch(0.159 0.037 120.996);
--secondary: oklch(0.889 0.162 94.456);
--secondary-foreground: oklch(0.154 0.032 100.165);
--accent: oklch(0.88 0.253 140.157);
--accent-foreground: oklch(0.15 0.045 136.764);
--destructive: oklch(0.549 0.221 29.649);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.924 0.21 125.221);
--chart-1: oklch(0.924 0.21 125.221);
--chart-2: oklch(0.889 0.162 94.456);
--chart-3: oklch(0.88 0.253 140.157);
--chart-4: oklch(0.897 0.155 94.928);
--chart-5: oklch(0.931 0.214 125.363);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.017 120.049);
--foreground: oklch(0.988 0.004 120.104);
--muted: oklch(0.226 0.013 95.602);
--muted-foreground: oklch(0.819 0.017 95.27);
--popover: oklch(0.145 0.017 120.049);
--popover-foreground: oklch(0.988 0.004 120.104);
--card: oklch(0.145 0.017 120.049);
--card-foreground: oklch(0.988 0.004 120.104);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.924 0.21 125.221);
--primary-foreground: oklch(0.159 0.037 120.996);
--secondary: oklch(0.889 0.162 94.456);
--secondary-foreground: oklch(0.154 0.032 100.165);
--accent: oklch(0.88 0.253 140.157);
--accent-foreground: oklch(0.15 0.045 136.764);
--destructive: oklch(0.598 0.241 29.604);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.924 0.21 125.221);
--chart-1: oklch(0.924 0.21 125.221);
--chart-2: oklch(0.889 0.162 94.456);
--chart-3: oklch(0.88 0.253 140.157);
--chart-4: oklch(0.897 0.155 94.928);
--chart-5: oklch(0.931 0.214 125.363);
}