Obedience is a shadcn/ui theme built around an indigo primary color (#6d74d9) with near-white accents (#eaeaeb). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the indigo primary (#6d74d9) on a neutral background (#030307).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #030307black |
| Foreground | #060713black | #f8f8fcghostwhite |
| Card | #f8f8fcghostwhite | #030307black |
| Card foreground | #060713black | #f8f8fcghostwhite |
| Popover | #f8f8fcghostwhite | #030307black |
| Popover foreground | #060713black | #f8f8fcghostwhite |
| Primary | #6d74d9mediumslateblue | #6d74d9mediumslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #eaeaeblavender | #222225black |
| Secondary foreground | #505053darkslategray | #bababfsilver |
| Muted | #e1e2eagainsboro | #15161eblack |
| Muted foreground | #393a4cdarkslategray | #b3b5c6silver |
| Accent | #eaeaeblavender | #222225black |
| Accent foreground | #505053darkslategray | #bababfsilver |
| Destructive | #830b0bmaroon | #d81313crimson |
| Destructive foreground | #fac7c7pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6d74d9mediumslateblue | #6d74d9mediumslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.88:1 | AAA |
| Text on card | 18.88:1 | AAA |
| Primary button | 4.06:1 | AA Large |
| Secondary button | 6.69:1 | AA |
| Muted text | 8.60:1 | AAA |
| Accent | 6.69:1 | AA |
| Destructive | 6.93:1 | AA |
| Text on background | 19.42:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 4.06:1 | AA Large |
| Secondary button | 8.16:1 | AAA |
| Muted text | 8.90:1 | AAA |
| Accent | 8.16:1 | AAA |
| Destructive | 5.22:1 | AA |
Paste this into your globals.css to use Obedience in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 283.003);
--foreground: oklch(0.136 0.027 278.42);
--muted: oklch(0.913 0.012 282.889);
--muted-foreground: oklch(0.355 0.03 281.553);
--popover: oklch(0.98 0.006 283.003);
--popover-foreground: oklch(0.136 0.027 278.42);
--card: oklch(0.98 0.006 283.003);
--card-foreground: oklch(0.136 0.027 278.42);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.602 0.152 277.732);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.938 0.001 283.088);
--secondary-foreground: oklch(0.433 0.005 282.91);
--accent: oklch(0.938 0.001 283.088);
--accent-foreground: oklch(0.433 0.005 282.91);
--destructive: oklch(0.39 0.151 28.086);
--destructive-foreground: oklch(0.874 0.059 18.339);
--ring: oklch(0.602 0.152 277.732);
--chart-1: oklch(0.602 0.152 277.732);
--chart-2: oklch(0.938 0.001 283.088);
--chart-3: oklch(0.938 0.001 283.088);
--chart-4: oklch(0.961 0.001 283.095);
--chart-5: oklch(0.598 0.159 277.348);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.015 279.042);
--foreground: oklch(0.981 0.004 283.037);
--muted: oklch(0.202 0.017 281.544);
--muted-foreground: oklch(0.776 0.025 282.555);
--popover: oklch(0.101 0.015 279.042);
--popover-foreground: oklch(0.981 0.004 283.037);
--card: oklch(0.101 0.015 279.042);
--card-foreground: oklch(0.981 0.004 283.037);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.602 0.152 277.732);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.255 0.005 282.77);
--secondary-foreground: oklch(0.791 0.007 282.957);
--accent: oklch(0.255 0.005 282.77);
--accent-foreground: oklch(0.791 0.007 282.957);
--destructive: oklch(0.559 0.222 28.506);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.602 0.152 277.732);
--chart-1: oklch(0.602 0.152 277.732);
--chart-2: oklch(0.255 0.005 282.77);
--chart-3: oklch(0.255 0.005 282.77);
--chart-4: oklch(0.285 0.006 282.751);
--chart-5: oklch(0.598 0.159 277.348);
}