Silicon is a shadcn/ui theme built around a green primary color (#66cc92) with neutral gray accents (#ccd1ce). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#66cc92) on a green-tinted background (#041009).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #041009black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #fbfefcwhite | #041009black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #fbfefcwhite | #041009black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #66cc92mediumaquamarine | #66cc92mediumaquamarine |
| Primary foreground | #000000black | #000000black |
| Secondary | #ccd1celightgrey | #2a3c32darkslategray |
| Secondary foreground | #323935darkslategray | #c3d5cblightgrey |
| Muted | #dbf0e4gainsboro | #0f2418black |
| Muted foreground | #596960dimgray | #96a69ddarkgray |
| Accent | #ccd1celightgrey | #2a3c32darkslategray |
| Accent foreground | #323935darkslategray | #c3d5cblightgrey |
| Destructive | #aa1b08firebrick | #f42b10orangered |
| Destructive foreground | #fee9e7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #66cc92mediumaquamarine | #66cc92mediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.66:1 | AAA |
| Primary button | 10.61:1 | AAA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 4.86:1 | AA |
| Accent | 7.68:1 | AAA |
| Destructive | 6.25:1 | AA |
| Text on background | 18.98:1 | AAA |
| Text on card | 18.98:1 | AAA |
| Primary button | 10.61:1 | AAA |
| Secondary button | 7.63:1 | AAA |
| Muted text | 6.42:1 | AA |
| Accent | 7.63:1 | AAA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Silicon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 161.723);
--foreground: oklch(0 0 0);
--muted: oklch(0.936 0.026 161.109);
--muted-foreground: oklch(0.504 0.023 160.64);
--popover: oklch(0.994 0.003 161.723);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.994 0.003 161.723);
--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.768 0.128 156.719);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.857 0.008 161.588);
--secondary-foreground: oklch(0.336 0.011 161.014);
--accent: oklch(0.857 0.008 161.588);
--accent-foreground: oklch(0.336 0.011 161.014);
--destructive: oklch(0.476 0.18 30.909);
--destructive-foreground: oklch(0.951 0.023 26.615);
--ring: oklch(0.768 0.128 156.719);
--chart-1: oklch(0.768 0.128 156.719);
--chart-2: oklch(0.857 0.008 161.588);
--chart-3: oklch(0.857 0.008 161.588);
--chart-4: oklch(0.88 0.006 161.629);
--chart-5: oklch(0.775 0.134 156.421);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.024 159.88);
--foreground: oklch(0.993 0.001 161.789);
--muted: oklch(0.238 0.035 157.495);
--muted-foreground: oklch(0.71 0.022 161.056);
--popover: oklch(0.159 0.024 159.88);
--popover-foreground: oklch(0.993 0.001 161.789);
--card: oklch(0.159 0.024 159.88);
--card-foreground: oklch(0.993 0.001 161.789);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.768 0.128 156.719);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.337 0.03 159.445);
--secondary-foreground: oklch(0.857 0.024 161.105);
--accent: oklch(0.337 0.03 159.445);
--accent-foreground: oklch(0.857 0.024 161.105);
--destructive: oklch(0.622 0.235 30.885);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.768 0.128 156.719);
--chart-1: oklch(0.768 0.128 156.719);
--chart-2: oklch(0.337 0.03 159.445);
--chart-3: oklch(0.337 0.03 159.445);
--chart-4: oklch(0.369 0.034 159.376);
--chart-5: oklch(0.775 0.134 156.421);
}