Sapphire is a shadcn/ui theme built around a vivid cyan primary color (#74c6ec) with muted cyan accents (#aebbc2). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid cyan primary (#74c6ec) on a cyan-tinted background (#070b0d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070b0dblack |
| Foreground | #030d12black | #ffffffwhite |
| Card | #fcfcfcsnow | #090e11black |
| Card foreground | #020a0dblack | #ffffffwhite |
| Popover | #fcfcfcsnow | #090e11black |
| Popover foreground | #020a0dblack | #ffffffwhite |
| Primary | #74c6ecskyblue | #74c6ecskyblue |
| Primary foreground | #061d28black | #061d28black |
| Secondary | #ced2d4lightgrey | #253137darkslategray |
| Secondary foreground | #35393bdarkslategray | #bccbd2lightsteelblue |
| Muted | #d2dbe0gainsboro | #1f292ddarkslategray |
| Muted foreground | #494a4bdarkslategray | #b4b5b6silver |
| Accent | #aebbc2silver | #304954darkslategray |
| Accent foreground | #1a2023black | #d2dfe5gainsboro |
| Destructive | #6e1202maroon | #f52905orangered |
| Destructive foreground | #fdb2a5lightpink | #ffffffwhite |
| Border | #e2e7e9lavender | #161b1dblack |
| Input | #e2e7e9lavender | #161b1dblack |
| Ring | #74c6ecskyblue | #74c6ecskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.62:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 9.08:1 | AAA |
| Secondary button | 7.67:1 | AAA |
| Muted text | 6.33:1 | AA |
| Accent | 8.39:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 19.72:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 9.08:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 7.24:1 | AAA |
| Accent | 6.99:1 | AA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Sapphire in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.15 0.02 224.784);
--muted: oklch(0.886 0.012 227.024);
--muted-foreground: oklch(0.409 0.002 226.903);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.135 0.018 221.21);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.135 0.018 221.21);
--border: oklch(0.924 0.005 226.926);
--input: oklch(0.924 0.005 226.926);
--primary: oklch(0.788 0.097 229.633);
--primary-foreground: oklch(0.219 0.037 231.346);
--secondary: oklch(0.862 0.005 226.925);
--secondary-foreground: oklch(0.342 0.007 227.133);
--accent: oklch(0.784 0.018 227.149);
--accent-foreground: oklch(0.24 0.01 227.454);
--destructive: oklch(0.35 0.128 32.552);
--destructive-foreground: oklch(0.832 0.09 30.241);
--ring: oklch(0.788 0.097 229.633);
--chart-1: oklch(0.788 0.097 229.633);
--chart-2: oklch(0.862 0.005 226.925);
--chart-3: oklch(0.784 0.018 227.149);
--chart-4: oklch(0.885 0.004 226.911);
--chart-5: oklch(0.79 0.1 229.794);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.147 0.009 226.053);
--foreground: oklch(1 0 180);
--muted: oklch(0.273 0.015 227.725);
--muted-foreground: oklch(0.773 0.001 226.878);
--popover: oklch(0.16 0.01 227.663);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.16 0.01 227.663);
--card-foreground: oklch(1 0 180);
--border: oklch(0.217 0.007 227.324);
--input: oklch(0.217 0.007 227.324);
--primary: oklch(0.788 0.097 229.633);
--primary-foreground: oklch(0.219 0.037 231.346);
--secondary: oklch(0.305 0.02 227.903);
--secondary-foreground: oklch(0.833 0.019 227.163);
--accent: oklch(0.39 0.036 228.558);
--accent-foreground: oklch(0.895 0.016 227.092);
--destructive: oklch(0.622 0.237 31.401);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.788 0.097 229.633);
--chart-1: oklch(0.788 0.097 229.633);
--chart-2: oklch(0.305 0.02 227.903);
--chart-3: oklch(0.39 0.036 228.558);
--chart-4: oklch(0.336 0.023 227.949);
--chart-5: oklch(0.79 0.1 229.794);
}