Solid is a shadcn/ui theme built around a deep cyan primary color (#041115) with deep blue accents (#040815). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the deep cyan primary (#041115) on a neutral background (#010304).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fbfdghostwhite | #010304black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f3f9fbaliceblue | #030607black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f7fbfdghostwhite | #010304black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #041115black | #041115black |
| Primary foreground | #69c0e2skyblue | #69c0e2skyblue |
| Secondary | #041512black | #041512black |
| Secondary foreground | #25c19flightseagreen | #25c19flightseagreen |
| Muted | #d6e6e3gainsboro | #192926darkslategray |
| Muted foreground | #506d66dimgray | #92afa9darkgray |
| Accent | #040815black | #040815black |
| Accent foreground | #bfcaf3lightblue | #bfcaf3lightblue |
| Destructive | #6b2505maroon | #f4550borangered |
| Destructive foreground | #fbc2a7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #041115black | #041115black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 9.36:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 4.37:1 | AA Large |
| Accent | 12.33:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 20.65:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 9.36:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 6.41:1 | AA |
| Accent | 12.33:1 | AAA |
| Destructive | 3.42:1 | AA Large |
Paste this into your globals.css to use Solid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.005 223.176);
--foreground: oklch(0 0 0);
--muted: oklch(0.912 0.018 181.502);
--muted-foreground: oklch(0.509 0.035 180.025);
--popover: oklch(0.986 0.005 223.176);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.979 0.007 223.2);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.166 0.022 223.552);
--primary-foreground: oklch(0.766 0.097 225.994);
--secondary: oklch(0.181 0.026 178.041);
--secondary-foreground: oklch(0.726 0.132 173.311);
--accent: oklch(0.137 0.032 266.735);
--accent-foreground: oklch(0.844 0.058 272.964);
--destructive: oklch(0.367 0.107 41.14);
--destructive-foreground: oklch(0.858 0.075 46.046);
--ring: oklch(0.166 0.022 223.552);
--chart-1: oklch(0.166 0.022 223.552);
--chart-2: oklch(0.181 0.026 178.041);
--chart-3: oklch(0.137 0.032 266.735);
--chart-4: oklch(0.23 0.036 176.223);
--chart-5: oklch(0.166 0.023 223.515);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.093 0.008 218.719);
--foreground: oklch(1 0 180);
--muted: oklch(0.267 0.023 179.35);
--muted-foreground: oklch(0.73 0.032 180.782);
--popover: oklch(0.093 0.008 218.719);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.118 0.01 218.719);
--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.166 0.022 223.552);
--primary-foreground: oklch(0.766 0.097 225.994);
--secondary: oklch(0.181 0.026 178.041);
--secondary-foreground: oklch(0.726 0.132 173.311);
--accent: oklch(0.137 0.032 266.735);
--accent-foreground: oklch(0.844 0.058 272.964);
--destructive: oklch(0.658 0.206 39.218);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.166 0.022 223.552);
--chart-1: oklch(0.166 0.022 223.552);
--chart-2: oklch(0.181 0.026 178.041);
--chart-3: oklch(0.137 0.032 266.735);
--chart-4: oklch(0.23 0.036 176.223);
--chart-5: oklch(0.166 0.023 223.515);
}