Solidity is a shadcn/ui theme built around a deep cyan primary color (#06181d) with deep blue accents (#060d1d). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#06181d) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020303black |
| Foreground | #040d10black | #f8fbfcghostwhite |
| Card | #ffffffwhite | #020303black |
| Card foreground | #040d10black | #f8fbfcghostwhite |
| Popover | #ffffffwhite | #020303black |
| Popover foreground | #040d10black | #f8fbfcghostwhite |
| Primary | #06181dblack | #06181dblack |
| Primary foreground | #2ba1c5lightseagreen | #2ba1c5lightseagreen |
| Secondary | #061d17black | #061d17black |
| Secondary foreground | #2bc59clightseagreen | #2bc59clightseagreen |
| Muted | #d9e2e0gainsboro | #1d2623black |
| Muted foreground | #4e504fdarkslategray | #afb1b0darkgray |
| Accent | #060d1dblack | #060d1dblack |
| Accent foreground | #7592e1cornflowerblue | #7592e1cornflowerblue |
| Destructive | #b53812firebrick | #eb6137tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #06181dblack | #06181dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.62:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 6.17:1 | AA |
| Accent | 6.43:1 | AA |
| Destructive | 5.93:1 | AA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 6.05:1 | AA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 7.21:1 | AAA |
| Accent | 6.43:1 | AA |
| Destructive | 6.32:1 | AA |
Paste this into your globals.css to use Solidity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.152 0.017 216.57);
--muted: oklch(0.907 0.011 178.448);
--muted-foreground: oklch(0.429 0.002 178.638);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.152 0.017 216.57);
--card: oklch(1 0 180);
--card-foreground: oklch(0.152 0.017 216.57);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.196 0.026 219.903);
--primary-foreground: oklch(0.661 0.112 223.401);
--secondary: oklch(0.211 0.032 173.198);
--secondary-foreground: oklch(0.736 0.137 169.69);
--accent: oklch(0.161 0.037 266.227);
--accent-foreground: oklch(0.671 0.122 267.877);
--destructive: oklch(0.521 0.168 35.95);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.196 0.026 219.903);
--chart-1: oklch(0.196 0.026 219.903);
--chart-2: oklch(0.211 0.032 173.198);
--chart-3: oklch(0.161 0.037 266.227);
--chart-4: oklch(0.257 0.041 172.124);
--chart-5: oklch(0.197 0.027 219.986);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.093 0.005 215.087);
--foreground: oklch(0.986 0.003 217.76);
--muted: oklch(0.258 0.014 177.131);
--muted-foreground: oklch(0.758 0.002 178.712);
--popover: oklch(0.093 0.005 215.087);
--popover-foreground: oklch(0.986 0.003 217.76);
--card: oklch(0.093 0.005 215.087);
--card-foreground: oklch(0.986 0.003 217.76);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.196 0.026 219.903);
--primary-foreground: oklch(0.661 0.112 223.401);
--secondary: oklch(0.211 0.032 173.198);
--secondary-foreground: oklch(0.736 0.137 169.69);
--accent: oklch(0.161 0.037 266.227);
--accent-foreground: oklch(0.671 0.122 267.877);
--destructive: oklch(0.663 0.18 37.215);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.196 0.026 219.903);
--chart-1: oklch(0.196 0.026 219.903);
--chart-2: oklch(0.211 0.032 173.198);
--chart-3: oklch(0.161 0.037 266.227);
--chart-4: oklch(0.257 0.041 172.124);
--chart-5: oklch(0.197 0.027 219.986);
}