Coherent Sapphire Glitter is a shadcn/ui theme built around a vivid blue primary color (#0a33c7) with muted light blue accents (#dfe1e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#0a33c7) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010204black |
| Foreground | #010105black | #f6f7f8whitesmoke |
| Card | #ffffffwhite | #010204black |
| Card foreground | #010105black | #f6f7f8whitesmoke |
| Popover | #ffffffwhite | #010204black |
| Popover foreground | #010105black | #f6f7f8whitesmoke |
| Primary | #0a33c7mediumblue | #0a33c7mediumblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dfe1e7gainsboro | #2c2d30darkslategray |
| Secondary foreground | #404554darkslategray | #c5c6c9silver |
| Muted | #d6d9e6gainsboro | #191d29black |
| Muted foreground | #3d3f48darkslategray | #b7bac2silver |
| Accent | #dfe1e7gainsboro | #2c2d30darkslategray |
| Accent foreground | #404554darkslategray | #c5c6c9silver |
| Destructive | #913a08saddlebrown | #f27126chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #eaecf0lavender | #21232cdarkslategray |
| Input | #eaecf0lavender | #21232cdarkslategray |
| Ring | #0a33c7mediumblue | #0a33c7mediumblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.83:1 | AAA |
| Text on card | 20.83:1 | AAA |
| Primary button | 9.08:1 | AAA |
| Secondary button | 7.30:1 | AAA |
| Muted text | 7.46:1 | AAA |
| Accent | 7.30:1 | AAA |
| Destructive | 7.46:1 | AAA |
| Text on background | 19.37:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 9.08:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 8.67:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 7.17:1 | AAA |
Paste this into your globals.css to use Coherent Sapphire Glitter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.077 0.018 262.086);
--muted: oklch(0.887 0.017 273.635);
--muted-foreground: oklch(0.37 0.015 273.383);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.077 0.018 262.086);
--card: oklch(1 0 180);
--card-foreground: oklch(0.077 0.018 262.086);
--border: oklch(0.942 0.006 273.796);
--input: oklch(0.942 0.006 273.796);
--primary: oklch(0.422 0.228 264.574);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.91 0.008 273.766);
--secondary-foreground: oklch(0.391 0.026 272.997);
--accent: oklch(0.91 0.008 273.766);
--accent-foreground: oklch(0.391 0.026 272.997);
--destructive: oklch(0.462 0.129 44.157);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.422 0.228 264.574);
--chart-1: oklch(0.422 0.228 264.574);
--chart-2: oklch(0.91 0.008 273.766);
--chart-3: oklch(0.91 0.008 273.766);
--chart-4: oklch(0.935 0.006 273.796);
--chart-5: oklch(0.422 0.233 264.422);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.081 0.013 266.195);
--foreground: oklch(0.976 0.002 273.842);
--muted: oklch(0.232 0.025 272.383);
--muted-foreground: oklch(0.789 0.012 273.69);
--popover: oklch(0.081 0.013 266.195);
--popover-foreground: oklch(0.976 0.002 273.842);
--card: oklch(0.081 0.013 266.195);
--card-foreground: oklch(0.976 0.002 273.842);
--border: oklch(0.258 0.017 272.992);
--input: oklch(0.258 0.017 272.992);
--primary: oklch(0.422 0.228 264.574);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.297 0.005 273.657);
--secondary-foreground: oklch(0.826 0.005 273.797);
--accent: oklch(0.297 0.005 273.657);
--accent-foreground: oklch(0.826 0.005 273.797);
--destructive: oklch(0.693 0.179 45.972);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.422 0.228 264.574);
--chart-1: oklch(0.422 0.228 264.574);
--chart-2: oklch(0.297 0.005 273.657);
--chart-3: oklch(0.297 0.005 273.657);
--chart-4: oklch(0.327 0.006 273.65);
--chart-5: oklch(0.422 0.233 264.422);
}