Opal Violet Bovid is a shadcn/ui theme built around a blue primary color (#7a8fb8) with muted light blue accents (#bac3d4). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the blue primary (#7a8fb8) on a blue-tinted background (#07090d).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f9fcghostwhite | #07090dblack |
| Foreground | #020812black | #fbfcfdwhite |
| Card | #f8f9fcghostwhite | #07090dblack |
| Card foreground | #020812black | #fbfcfdwhite |
| Popover | #f8f9fcghostwhite | #07090dblack |
| Popover foreground | #020812black | #fbfcfdwhite |
| Primary | #7a8fb8lightslategray | #7a8fb8lightslategray |
| Primary foreground | #000000black | #000000black |
| Secondary | #d3d7degainsboro | #29303ddarkslategray |
| Secondary foreground | #373d49darkslategray | #c2c9d6lightgrey |
| Muted | #e9ecf1lavender | #0e1116black |
| Muted foreground | #404244darkslategray | #bbbcbfsilver |
| Accent | #bac3d4lightsteelblue | #33415bdarkslategray |
| Accent foreground | #232a38darkslategray | #d8dee9gainsboro |
| Destructive | #be1d04firebrick | #fa3314orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e1e2e5gainsboro | #1f2023black |
| Input | #e1e2e5gainsboro | #1f2023black |
| Ring | #7a8fb8lightslategray | #7a8fb8lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 7.55:1 | AAA |
| Muted text | 8.51:1 | AAA |
| Accent | 8.08:1 | AAA |
| Destructive | 6.24:1 | AA |
| Text on background | 19.38:1 | AAA |
| Text on card | 19.38:1 | AAA |
| Primary button | 6.43:1 | AA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 9.98:1 | AAA |
| Accent | 7.60:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Opal Violet Bovid in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 264.54);
--foreground: oklch(0.131 0.028 255.374);
--muted: oklch(0.942 0.008 264.525);
--muted-foreground: oklch(0.377 0.005 264.508);
--popover: oklch(0.983 0.004 264.54);
--popover-foreground: oklch(0.131 0.028 255.374);
--card: oklch(0.983 0.004 264.54);
--card-foreground: oklch(0.131 0.028 255.374);
--border: oklch(0.914 0.003 264.54);
--input: oklch(0.914 0.003 264.54);
--primary: oklch(0.649 0.066 263.952);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.878 0.011 264.511);
--secondary-foreground: oklch(0.358 0.022 264.243);
--accent: oklch(0.815 0.026 264.421);
--accent-foreground: oklch(0.286 0.028 263.985);
--destructive: oklch(0.514 0.196 31.203);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.649 0.066 263.952);
--chart-1: oklch(0.649 0.066 263.952);
--chart-2: oklch(0.878 0.011 264.511);
--chart-3: oklch(0.815 0.026 264.421);
--chart-4: oklch(0.903 0.008 264.521);
--chart-5: oklch(0.646 0.072 263.865);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.01 261.827);
--foreground: oklch(0.991 0.002 264.545);
--muted: oklch(0.175 0.012 264.21);
--muted-foreground: oklch(0.795 0.004 264.535);
--popover: oklch(0.14 0.01 261.827);
--popover-foreground: oklch(0.991 0.002 264.545);
--card: oklch(0.14 0.01 261.827);
--card-foreground: oklch(0.991 0.002 264.545);
--border: oklch(0.245 0.005 264.469);
--input: oklch(0.245 0.005 264.469);
--primary: oklch(0.649 0.066 263.952);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.307 0.026 264.071);
--secondary-foreground: oklch(0.834 0.02 264.458);
--accent: oklch(0.375 0.049 263.704);
--accent-foreground: oklch(0.898 0.017 264.484);
--destructive: oklch(0.638 0.236 31.425);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.649 0.066 263.952);
--chart-1: oklch(0.649 0.066 263.952);
--chart-2: oklch(0.307 0.026 264.071);
--chart-3: oklch(0.375 0.049 263.704);
--chart-4: oklch(0.335 0.03 264.051);
--chart-5: oklch(0.646 0.072 263.865);
}