Silicon Elegance is a shadcn/ui theme built around a vivid teal primary color (#00b3aa) with teal accents (#3dc597). The light mode uses a neutral background (#fdfcfc). Dark mode switches to a light green primary (#c4e9d6) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #020303black |
| Foreground | #1a1a2eblack | #f9fbfamintcream |
| Card | #ffffffwhite | #030705black |
| Card foreground | #1a1a2eblack | #fcfdfcwhite |
| Popover | #ffffffwhite | #030705black |
| Popover foreground | #1a1a2eblack | #fcfdfcwhite |
| Primary | #00b3aalightseagreen | #c4e9d6lightgrey |
| Primary foreground | #ffffffwhite | #22593cdarkslategray |
| Secondary | #0f3461midnightblue | #d6c4e9thistle |
| Secondary foreground | #ffffffwhite | #3c2259midnightblue |
| Muted | #d1f1eflightcyan | #120c18black |
| Muted foreground | #1a1a2eblack | #b8b6b9silver |
| Accent | #3dc597lightseagreen | #e9d6c4wheat |
| Accent foreground | #ffffffwhite | #593c22darkolivegreen |
| Destructive | #e9445findianred | #ec3832crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #618fc6steelblue | #1d201fblack |
| Input | #1a1a2eblack | #1d201fblack |
| Ring | #00b3aalightseagreen | #c4e9d6lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 16.66:1 | AAA |
| Text on card | 17.05:1 | AAA |
| Primary button | 2.61:1 | Fail |
| Secondary button | 12.47:1 | AAA |
| Muted text | 14.27:1 | AAA |
| Accent | 2.18:1 | Fail |
| Destructive | 3.84:1 | AA Large |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 6.21:1 | AA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 9.55:1 | AAA |
| Accent | 7.07:1 | AAA |
| Destructive | 4.05:1 | AA Large |
Paste this into your globals.css to use Silicon Elegance in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.001 17.17);
--foreground: oklch(0.228 0.038 282.932);
--muted: oklch(0.935 0.034 191.563);
--muted-foreground: oklch(0.228 0.038 282.932);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.228 0.038 282.932);
--card: oklch(1 0 180);
--card-foreground: oklch(0.228 0.038 282.932);
--border: oklch(0.639 0.098 253.959);
--input: oklch(0.228 0.038 282.932);
--primary: oklch(0.691 0.12 188.437);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.326 0.09 255.517);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.739 0.135 166.005);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.631 0.2 15.905);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.691 0.12 188.437);
--chart-1: oklch(0.901 0.046 162.891);
--chart-2: oklch(0.846 0.054 307.048);
--chart-3: oklch(0.886 0.032 65.514);
--chart-4: oklch(0.875 0.043 307.212);
--chart-5: oklch(0.903 0.049 162.798);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.008 164.351);
--foreground: oklch(0.986 0.002 164.226);
--muted: oklch(0.168 0.025 306.035);
--muted-foreground: oklch(0.779 0.004 307.725);
--popover: oklch(0.12 0.01 164.351);
--popover-foreground: oklch(0.993 0.001 164.256);
--card: oklch(0.12 0.01 164.351);
--card-foreground: oklch(0.993 0.001 164.256);
--border: oklch(0.241 0.006 163.573);
--input: oklch(0.241 0.006 163.573);
--primary: oklch(0.901 0.046 162.891);
--primary-foreground: oklch(0.418 0.076 157.982);
--secondary: oklch(0.846 0.054 307.048);
--secondary-foreground: oklch(0.315 0.097 303.618);
--accent: oklch(0.886 0.032 65.514);
--accent-foreground: oklch(0.383 0.057 62.885);
--destructive: oklch(0.619 0.217 27.709);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.901 0.046 162.891);
--chart-1: oklch(0.901 0.046 162.891);
--chart-2: oklch(0.846 0.054 307.048);
--chart-3: oklch(0.886 0.032 65.514);
--chart-4: oklch(0.875 0.043 307.212);
--chart-5: oklch(0.903 0.049 162.798);
}