Sophisticated is a shadcn/ui theme built around a green primary color (#5eac39) with pink accents (#ac395e). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#5eac39) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020302black |
| Foreground | #040901black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #050703black |
| Card foreground | #020501black | #ffffffwhite |
| Popover | #ffffffwhite | #020302black |
| Popover foreground | #040901black | #fcfdfcwhite |
| Primary | #5eac39olivedrab | #5eac39olivedrab |
| Primary foreground | #0a1306black | #0a1306black |
| Secondary | #395eacsteelblue | #395eacsteelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d3d8e3gainsboro | #1c212cdarkslategray |
| Muted foreground | #555b68dimgray | #979daadarkgray |
| Accent | #ac395eindianred | #ac395eindianred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b61a0cfirebrick | #dd1f0ecrimson |
| Destructive foreground | #fef6f5lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5eac39olivedrab | #5eac39olivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.10:1 | AAA |
| Text on card | 20.05:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 6.24:1 | AA |
| Muted text | 4.78:1 | AA |
| Accent | 5.98:1 | AA |
| Destructive | 6.26:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 6.71:1 | AA |
| Secondary button | 6.24:1 | AA |
| Muted text | 5.93:1 | AA |
| Accent | 5.98:1 | AA |
| Destructive | 4.92:1 | AA |
Paste this into your globals.css to use Sophisticated in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.128 0.029 133.204);
--muted: oklch(0.883 0.016 265.919);
--muted-foreground: oklch(0.47 0.022 265.728);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.128 0.029 133.204);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.102 0.023 133.204);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.67 0.169 137.339);
--primary-foreground: oklch(0.174 0.029 135.631);
--secondary: oklch(0.495 0.132 263.601);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.52 0.152 4.678);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.498 0.191 30.093);
--destructive-foreground: oklch(0.98 0.009 23.67);
--ring: oklch(0.67 0.169 137.339);
--chart-1: oklch(0.67 0.169 137.339);
--chart-2: oklch(0.495 0.132 263.601);
--chart-3: oklch(0.52 0.152 4.678);
--chart-4: oklch(0.518 0.139 263.583);
--chart-5: oklch(0.678 0.176 137.489);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.01 134.481);
--foreground: oklch(0.994 0.003 135.44);
--muted: oklch(0.247 0.022 265.39);
--muted-foreground: oklch(0.696 0.02 265.854);
--popover: oklch(0.096 0.01 134.481);
--popover-foreground: oklch(0.994 0.003 135.44);
--card: oklch(0.121 0.012 134.481);
--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.67 0.169 137.339);
--primary-foreground: oklch(0.174 0.029 135.631);
--secondary: oklch(0.495 0.132 263.601);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.52 0.152 4.678);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.573 0.221 30.089);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.67 0.169 137.339);
--chart-1: oklch(0.67 0.169 137.339);
--chart-2: oklch(0.495 0.132 263.601);
--chart-3: oklch(0.52 0.152 4.678);
--chart-4: oklch(0.518 0.139 263.583);
--chart-5: oklch(0.678 0.176 137.489);
}