Obvious Clairvoyant is a shadcn/ui theme built around a vivid deep purple primary color (#4a0754) with near-white accents (#ebebeb). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid deep purple primary (#4a0754) on a purple-tinted background (#0e0510).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #0e0510black |
| Foreground | #120614black | #ffffffwhite |
| Card | #fcf7fdghostwhite | #120613black |
| Card foreground | #0e0510black | #ffffffwhite |
| Popover | #fcf7fdghostwhite | #120613black |
| Popover foreground | #0e0510black | #ffffffwhite |
| Primary | #4a0754indigo | #4a0754indigo |
| Primary foreground | #e998f6violet | #e998f6violet |
| Secondary | #ebebeblinen | #151415black |
| Secondary foreground | #525252darkslategray | #aeadaedarkgray |
| Muted | #f6eaealinen | #140915black |
| Muted foreground | #735959dimgray | #a38ca6darkgray |
| Accent | #ebebeblinen | #151415black |
| Accent foreground | #525252darkslategray | #aeadaedarkgray |
| Destructive | #e23b03orangered | #fc6431tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #f1eef1whitesmoke | #1c171cblack |
| Input | #f1eef1whitesmoke | #1c171cblack |
| Ring | #4a0754indigo | #4a0754indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.23:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 6.53:1 | AA |
| Muted text | 5.39:1 | AA |
| Accent | 6.53:1 | AA |
| Destructive | 4.31:1 | AA Large |
| Text on background | 20.05:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 6.34:1 | AA |
| Accent | 8.21:1 | AAA |
| Destructive | 6.99:1 | AA |
Paste this into your globals.css to use Obvious Clairvoyant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 321.606);
--foreground: oklch(0.149 0.036 322.37);
--muted: oklch(0.945 0.013 17.392);
--muted-foreground: oklch(0.49 0.035 18.421);
--popover: oklch(0.982 0.009 321.619);
--popover-foreground: oklch(0.136 0.032 322.63);
--card: oklch(0.982 0.009 321.619);
--card-foreground: oklch(0.136 0.032 322.63);
--border: oklch(0.952 0.005 321.608);
--input: oklch(0.952 0.005 321.608);
--primary: oklch(0.301 0.133 321.649);
--primary-foreground: oklch(0.793 0.155 322.052);
--secondary: oklch(0.939 0 180);
--secondary-foreground: oklch(0.437 0 180);
--accent: oklch(0.939 0 180);
--accent-foreground: oklch(0.437 0 180);
--destructive: oklch(0.602 0.21 34.958);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.301 0.133 321.649);
--chart-1: oklch(0.301 0.133 321.649);
--chart-2: oklch(0.939 0 180);
--chart-3: oklch(0.939 0 180);
--chart-4: oklch(0.962 0 180);
--chart-5: oklch(0.303 0.136 321.587);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.137 0.03 322.565);
--foreground: oklch(1 0 180);
--muted: oklch(0.162 0.03 322.043);
--muted-foreground: oklch(0.669 0.047 321.781);
--popover: oklch(0.149 0.034 322.314);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.149 0.034 322.314);
--card-foreground: oklch(1 0 180);
--border: oklch(0.212 0.013 321.762);
--input: oklch(0.212 0.013 321.762);
--primary: oklch(0.301 0.133 321.649);
--primary-foreground: oklch(0.793 0.155 322.052);
--secondary: oklch(0.193 0.001 321.607);
--secondary-foreground: oklch(0.748 0.003 321.603);
--accent: oklch(0.193 0.001 321.607);
--accent-foreground: oklch(0.748 0.003 321.603);
--destructive: oklch(0.69 0.196 37.928);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.301 0.133 321.649);
--chart-1: oklch(0.301 0.133 321.649);
--chart-2: oklch(0.193 0.001 321.607);
--chart-3: oklch(0.193 0.001 321.607);
--chart-4: oklch(0.226 0.001 321.608);
--chart-5: oklch(0.303 0.136 321.587);
}