Oral Sapphire Splendour is a shadcn/ui theme built around an indigo primary color (#2c2ab2) with green accents (#2ab22c). The light mode uses a neutral background (#f6f6fd). Dark mode keeps the indigo primary (#2c2ab2) on an indigo-tinted background (#050510).
| Token | Light | Dark |
|---|---|---|
| Background | #f6f6fdghostwhite | #050510black |
| Foreground | #060514black | #fcfcfdwhite |
| Card | #f2f2fdaliceblue | #060614black |
| Card foreground | #040410black | #ffffffwhite |
| Popover | #f2f2fdaliceblue | #060614black |
| Popover foreground | #040410black | #ffffffwhite |
| Primary | #2c2ab2darkslateblue | #2c2ab2darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #b22c2afirebrick | #b22c2afirebrick |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ebdbdbgainsboro | #241414black |
| Muted foreground | #645454dimgray | #ab9b9bdarkgray |
| Accent | #2ab22climegreen | #2ab22climegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #812e0esaddlebrown | #e85a21chocolate |
| Destructive foreground | #f9d6c8bisque | #ffffffwhite |
| Border | #e9e9edlavender | #23222adarkslategray |
| Input | #e9e9edlavender | #23222adarkslategray |
| Ring | #2c2ab2darkslateblue | #2c2ab2darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.84:1 | AAA |
| Text on card | 18.35:1 | AAA |
| Primary button | 10.12:1 | AAA |
| Secondary button | 6.40:1 | AA |
| Muted text | 5.34:1 | AA |
| Accent | 2.81:1 | Fail |
| Destructive | 6.61:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 10.12:1 | AAA |
| Secondary button | 6.40:1 | AA |
| Muted text | 6.64:1 | AA |
| Accent | 2.81:1 | Fail |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use Oral Sapphire Splendour in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.976 0.009 286.994);
--foreground: oklch(0.129 0.034 281.518);
--muted: oklch(0.904 0.018 18.665);
--muted-foreground: oklch(0.461 0.022 19.114);
--popover: oklch(0.965 0.014 286.901);
--popover-foreground: oklch(0.119 0.03 282.007);
--card: oklch(0.965 0.014 286.901);
--card-foreground: oklch(0.119 0.03 282.007);
--border: oklch(0.934 0.005 287.062);
--input: oklch(0.934 0.005 287.062);
--primary: oklch(0.397 0.205 272.7);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.505 0.171 26.563);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.667 0.205 143.023);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.419 0.122 39.429);
--destructive-foreground: oklch(0.901 0.044 42.766);
--ring: oklch(0.397 0.205 272.7);
--chart-1: oklch(0.397 0.205 272.7);
--chart-2: oklch(0.505 0.171 26.563);
--chart-3: oklch(0.667 0.205 143.023);
--chart-4: oklch(0.53 0.18 26.625);
--chart-5: oklch(0.395 0.212 271.742);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.027 282.733);
--foreground: oklch(0.991 0.001 287.144);
--muted: oklch(0.214 0.027 20.568);
--muted-foreground: oklch(0.704 0.019 18.789);
--popover: oklch(0.132 0.031 282.286);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.132 0.031 282.286);
--card-foreground: oklch(1 0 180);
--border: oklch(0.257 0.014 286.115);
--input: oklch(0.257 0.014 286.115);
--primary: oklch(0.397 0.205 272.7);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.505 0.171 26.563);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.667 0.205 143.023);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.645 0.188 39.441);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.397 0.205 272.7);
--chart-1: oklch(0.397 0.205 272.7);
--chart-2: oklch(0.505 0.171 26.563);
--chart-3: oklch(0.667 0.205 143.023);
--chart-4: oklch(0.53 0.18 26.625);
--chart-5: oklch(0.395 0.212 271.742);
}