Widget is a shadcn/ui theme built around a deep orange primary color (#1b1408) with deep green accents (#191b08). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#1b1408) on a neutral background (#080602).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080602black |
| Foreground | #090602black | #ffffffwhite |
| Card | #ffffffwhite | #080602black |
| Card foreground | #090602black | #ffffffwhite |
| Popover | #ffffffwhite | #080602black |
| Popover foreground | #090602black | #ffffffwhite |
| Primary | #1b1408black | #1b1408black |
| Primary foreground | #d8b57dburlywood | #d8b57dburlywood |
| Secondary | #1b0a08black | #1b0a08black |
| Secondary foreground | #d8887ddarksalmon | #d8887ddarksalmon |
| Muted | #f2e5e3mistyrose | #1c0f0dblack |
| Muted foreground | #494646darkslategray | #b9b7b6silver |
| Accent | #191b08black | #191b08black |
| Accent foreground | #a9b937yellowgreen | #a9b937yellowgreen |
| Destructive | #c93808firebrick | #dc3e09orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1b1408black | #1b1408black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 9.39:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 7.60:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 5.17:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 9.39:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 9.36:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 4.42:1 | AA Large |
Paste this into your globals.css to use Widget in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.017 88.114);
--muted: oklch(0.932 0.014 26.545);
--muted-foreground: oklch(0.398 0.003 26.498);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.124 0.017 88.114);
--card: oklch(1 0 180);
--card-foreground: oklch(0.124 0.017 88.114);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.197 0.025 78.693);
--primary-foreground: oklch(0.792 0.083 78.987);
--secondary: oklch(0.173 0.031 28.875);
--secondary-foreground: oklch(0.707 0.101 28.005);
--accent: oklch(0.216 0.034 114.738);
--accent-foreground: oklch(0.749 0.15 115.92);
--destructive: oklch(0.556 0.188 35.646);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.197 0.025 78.693);
--chart-1: oklch(0.197 0.025 78.693);
--chart-2: oklch(0.173 0.031 28.875);
--chart-3: oklch(0.216 0.034 114.738);
--chart-4: oklch(0.205 0.042 28.966);
--chart-5: oklch(0.198 0.026 78.65);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.013 86.147);
--foreground: oklch(1 0 180);
--muted: oklch(0.185 0.022 27.673);
--muted-foreground: oklch(0.78 0.003 26.465);
--popover: oklch(0.122 0.013 86.147);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.013 86.147);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.197 0.025 78.693);
--primary-foreground: oklch(0.792 0.083 78.987);
--secondary: oklch(0.173 0.031 28.875);
--secondary-foreground: oklch(0.707 0.101 28.005);
--accent: oklch(0.216 0.034 114.738);
--accent-foreground: oklch(0.749 0.15 115.92);
--destructive: oklch(0.595 0.202 35.519);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.197 0.025 78.693);
--chart-1: oklch(0.197 0.025 78.693);
--chart-2: oklch(0.173 0.031 28.875);
--chart-3: oklch(0.216 0.034 114.738);
--chart-4: oklch(0.205 0.042 28.966);
--chart-5: oklch(0.198 0.026 78.65);
}