Sapphire (Bright) is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted blue accents (#465777). The light mode uses a blue-tinted background (#2a3447). Dark mode keeps the near-white primary (#ffffff) on a blue-tinted background (#2a3447).
| Token | Light | Dark |
|---|---|---|
| Background | #2a3447darkslategray | #2a3447darkslategray |
| Foreground | #f0f0f0whitesmoke | #f0f0f0whitesmoke |
| Card | #262f40darkslategray | #262f40darkslategray |
| Card foreground | #fcfcfcsnow | #fcfcfcsnow |
| Popover | #242d3ddarkslategray | #242d3ddarkslategray |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #404040darkslategray | #404040darkslategray |
| Secondary foreground | #d9d9d9gainsboro | #d9d9d9gainsboro |
| Muted | #3a404adarkslategray | #3a404adarkslategray |
| Muted foreground | #bac0c9silver | #bac0c9silver |
| Accent | #465777darkslateblue | #465777darkslateblue |
| Accent foreground | #f5f7f9whitesmoke | #f5f7f9whitesmoke |
| Destructive | #db1414crimson | #db1414crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #3a4250darkslategray | #3a4250darkslategray |
| Input | #404959darkslategray | #404959darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 11.01:1 | AAA |
| Text on card | 13.09:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.69:1 | AA |
| Accent | 6.77:1 | AA |
| Destructive | 5.07:1 | AA |
| Text on background | 11.01:1 | AAA |
| Text on card | 13.09:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 5.69:1 | AA |
| Accent | 6.77:1 | AA |
| Destructive | 5.07:1 | AA |
Paste this into your globals.css to use Sapphire (Bright) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.323 0.037 262.52);
--foreground: oklch(0.954 0 180);
--muted: oklch(0.37 0.019 262.881);
--muted-foreground: oklch(0.805 0.015 263.014);
--popover: oklch(0.295 0.032 262.544);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.305 0.034 262.536);
--card-foreground: oklch(0.992 0 161.565);
--border: oklch(0.376 0.027 262.783);
--input: oklch(0.403 0.029 262.776);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.456 0.057 262.449);
--accent-foreground: oklch(0.975 0.004 263.047);
--destructive: oklch(0.566 0.224 28.451);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.456 0.057 262.449);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.323 0.037 262.52);
--foreground: oklch(0.954 0 180);
--muted: oklch(0.37 0.019 262.881);
--muted-foreground: oklch(0.805 0.015 263.014);
--popover: oklch(0.295 0.032 262.544);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.305 0.034 262.536);
--card-foreground: oklch(0.992 0 161.565);
--border: oklch(0.376 0.027 262.783);
--input: oklch(0.403 0.029 262.776);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.371 0 168.69);
--secondary-foreground: oklch(0.885 0 180);
--accent: oklch(0.456 0.057 262.449);
--accent-foreground: oklch(0.975 0.004 263.047);
--destructive: oklch(0.566 0.224 28.451);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.371 0 168.69);
--chart-3: oklch(0.456 0.057 262.449);
--chart-4: oklch(0.399 0 180);
--chart-5: oklch(1 0 180);
}