Dual is a shadcn/ui theme built around a vivid light green primary color (#e3feaa) with muted light green accents (#cbd2bc). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the vivid light green primary (#e3feaa) on a neutral background (#060703).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #060703black |
| Foreground | #070901black | #ffffffwhite |
| Card | #fbfdf7snow | #060703black |
| Card foreground | #070901black | #ffffffwhite |
| Popover | #fbfdf7snow | #060703black |
| Popover foreground | #070901black | #ffffffwhite |
| Primary | #e3feaapalegoldenrod | #e3feaapalegoldenrod |
| Primary foreground | #0a0f00black | #0a0f00black |
| Secondary | #e0e3d9gainsboro | #2c2e28darkslategray |
| Secondary foreground | #494f3bdarkolivegreen | #c6c8c0silver |
| Muted | #eff1e9linen | #13160eblack |
| Muted foreground | #5e6156dimgray | #a5a99edarkgray |
| Accent | #cbd2bcsilver | #414733darkslategray |
| Accent foreground | #313725darkslategray | #d9ddd0lightgrey |
| Destructive | #711509maroon | #ef4a34tomato |
| Destructive foreground | #f9bcb4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e3feaapalegoldenrod | #e3feaapalegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 17.55:1 | AAA |
| Secondary button | 6.54:1 | AA |
| Muted text | 5.54:1 | AA |
| Accent | 7.91:1 | AAA |
| Destructive | 7.08:1 | AAA |
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 17.55:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 7.64:1 | AAA |
| Accent | 6.99:1 | AA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Dual in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.009 120.915);
--foreground: oklch(0.132 0.025 120.466);
--muted: oklch(0.954 0.01 120.945);
--muted-foreground: oklch(0.487 0.018 121.371);
--popover: oklch(0.991 0.009 120.915);
--popover-foreground: oklch(0.132 0.025 120.466);
--card: oklch(0.991 0.009 120.915);
--card-foreground: oklch(0.132 0.025 120.466);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.957 0.111 122.777);
--primary-foreground: oklch(0.158 0.037 121.536);
--secondary: oklch(0.91 0.014 121.017);
--secondary-foreground: oklch(0.416 0.034 122.152);
--accent: oklch(0.853 0.031 121.378);
--accent-foreground: oklch(0.326 0.032 122.445);
--destructive: oklch(0.36 0.128 31.046);
--destructive-foreground: oklch(0.848 0.072 27.242);
--ring: oklch(0.957 0.111 122.777);
--chart-1: oklch(0.957 0.111 122.777);
--chart-2: oklch(0.91 0.014 121.017);
--chart-3: oklch(0.853 0.031 121.378);
--chart-4: oklch(0.931 0.011 120.954);
--chart-5: oklch(0.96 0.114 122.834);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.013 120.591);
--foreground: oklch(1 0 180);
--muted: oklch(0.193 0.015 122.079);
--muted-foreground: oklch(0.728 0.016 121.133);
--popover: oklch(0.125 0.013 120.591);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.125 0.013 120.591);
--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.957 0.111 122.777);
--primary-foreground: oklch(0.158 0.037 121.536);
--secondary: oklch(0.299 0.011 121.38);
--secondary-foreground: oklch(0.83 0.012 120.999);
--accent: oklch(0.386 0.033 122.21);
--accent-foreground: oklch(0.89 0.018 121.104);
--destructive: oklch(0.64 0.205 30.793);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.957 0.111 122.777);
--chart-1: oklch(0.957 0.111 122.777);
--chart-2: oklch(0.299 0.011 121.38);
--chart-3: oklch(0.386 0.033 122.21);
--chart-4: oklch(0.33 0.013 121.403);
--chart-5: oklch(0.96 0.114 122.834);
}