Sophisticated is a shadcn/ui theme built around a blue primary color (#879ec0) with indigo accents (#8b87c0). The light mode uses a neutral background (#f6f9fd). Dark mode keeps the blue primary (#879ec0) on a blue-tinted background (#070a0e).
| Token | Light | Dark |
|---|---|---|
| Background | #f6f9fdghostwhite | #070a0eblack |
| Foreground | #02070dblack | #fcfcfdwhite |
| Card | #f2f6fdaliceblue | #090c11black |
| Card foreground | #010409black | #ffffffwhite |
| Popover | #f6f9fdghostwhite | #070a0eblack |
| Popover foreground | #02070dblack | #fcfcfdwhite |
| Primary | #879ec0darkgray | #879ec0darkgray |
| Primary foreground | #070a0dblack | #070a0dblack |
| Secondary | #87bbc0mediumaquamarine | #87bbc0mediumaquamarine |
| Secondary foreground | #070d0dblack | #070d0dblack |
| Muted | #d3dedfgainsboro | #202b2cdarkslategray |
| Muted foreground | #415658darkslategray | #a7bcbesilver |
| Accent | #8b87c0mediumpurple | #8b87c0mediumpurple |
| Accent foreground | #08070dblack | #08070dblack |
| Destructive | #b82e0ffirebrick | #ee4e2btomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #879ec0darkgray | #879ec0darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 9.21:1 | AAA |
| Muted text | 5.65:1 | AA |
| Accent | 6.03:1 | AA |
| Destructive | 6.11:1 | AA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 9.21:1 | AAA |
| Muted text | 7.29:1 | AAA |
| Accent | 6.03:1 | AA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Sophisticated in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.006 256.678);
--foreground: oklch(0.123 0.021 246.217);
--muted: oklch(0.892 0.012 203.459);
--muted-foreground: oklch(0.437 0.026 203.171);
--popover: oklch(0.982 0.006 256.678);
--popover-foreground: oklch(0.123 0.021 246.217);
--card: oklch(0.973 0.01 256.69);
--card-foreground: oklch(0.107 0.018 245.152);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.694 0.056 256.825);
--primary-foreground: oklch(0.142 0.009 254.23);
--secondary: oklch(0.757 0.055 203.132);
--secondary-foreground: oklch(0.152 0.01 202.807);
--accent: oklch(0.648 0.084 287.619);
--accent-foreground: oklch(0.133 0.015 288.63);
--destructive: oklch(0.516 0.179 33.365);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.694 0.056 256.825);
--chart-1: oklch(0.694 0.056 256.825);
--chart-2: oklch(0.757 0.055 203.132);
--chart-3: oklch(0.648 0.084 287.619);
--chart-4: oklch(0.777 0.051 203.151);
--chart-5: oklch(0.693 0.061 256.833);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.01 254.036);
--foreground: oklch(0.992 0.001 256.656);
--muted: oklch(0.28 0.016 203.187);
--muted-foreground: oklch(0.78 0.023 203.334);
--popover: oklch(0.141 0.01 254.036);
--popover-foreground: oklch(0.992 0.001 256.656);
--card: oklch(0.153 0.012 256.397);
--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.694 0.056 256.825);
--primary-foreground: oklch(0.142 0.009 254.23);
--secondary: oklch(0.757 0.055 203.132);
--secondary-foreground: oklch(0.152 0.01 202.807);
--accent: oklch(0.648 0.084 287.619);
--accent-foreground: oklch(0.133 0.015 288.63);
--destructive: oklch(0.643 0.202 33.984);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.694 0.056 256.825);
--chart-1: oklch(0.694 0.056 256.825);
--chart-2: oklch(0.757 0.055 203.132);
--chart-3: oklch(0.648 0.084 287.619);
--chart-4: oklch(0.777 0.051 203.151);
--chart-5: oklch(0.693 0.061 256.833);
}