Obligation is a shadcn/ui theme built around a vivid light indigo primary color (#a2a5fb) with vivid light violet accents (#cca2fb). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the vivid light indigo primary (#a2a5fb) on an indigo-tinted background (#04040b).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f7fdghostwhite | #04040bblack |
| Foreground | #000000black | #f6f6f9whitesmoke |
| Card | #f3f3fcaliceblue | #05060fblack |
| Card foreground | #000000black | #f9f9fbghostwhite |
| Popover | #f7f7fdghostwhite | #04040bblack |
| Popover foreground | #000000black | #f6f6f9whitesmoke |
| Primary | #a2a5fblightsteelblue | #a2a5fblightsteelblue |
| Primary foreground | #050866navy | #050866navy |
| Secondary | #a2d1fblightblue | #a2d1fblightblue |
| Secondary foreground | #053966midnightblue | #053966midnightblue |
| Muted | #edf3f7whitesmoke | #080d12black |
| Muted foreground | #5f666ddimgray | #9299a0darkgray |
| Accent | #cca2fbplum | #cca2fbplum |
| Accent foreground | #320566midnightblue | #320566midnightblue |
| Destructive | #641707maroon | #df3311orangered |
| Destructive foreground | #f8b3a5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a2a5fblightsteelblue | #a2a5fblightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.69:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 5.18:1 | AA |
| Accent | 7.51:1 | AAA |
| Destructive | 7.20:1 | AAA |
| Text on background | 18.92:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 6.76:1 | AA |
| Accent | 7.51:1 | AAA |
| Destructive | 4.54:1 | AA |
Paste this into your globals.css to use Obligation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.978 0.008 284.671);
--foreground: oklch(0 0 0);
--muted: oklch(0.96 0.009 244.201);
--muted-foreground: oklch(0.508 0.014 244.436);
--popover: oklch(0.978 0.008 284.671);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.967 0.011 284.598);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.754 0.122 281.543);
--primary-foreground: oklch(0.243 0.152 266.313);
--secondary: oklch(0.843 0.076 245.281);
--secondary-foreground: oklch(0.34 0.094 251.072);
--accent: oklch(0.783 0.129 305.031);
--accent-foreground: oklch(0.279 0.146 295.522);
--destructive: oklch(0.334 0.112 33.088);
--destructive-foreground: oklch(0.828 0.084 31.589);
--ring: oklch(0.754 0.122 281.543);
--chart-1: oklch(0.754 0.122 281.543);
--chart-2: oklch(0.843 0.076 245.281);
--chart-3: oklch(0.783 0.129 305.031);
--chart-4: oklch(0.868 0.064 245.036);
--chart-5: oklch(0.751 0.126 281.403);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.114 0.019 280.799);
--foreground: oklch(0.974 0.004 284.74);
--muted: oklch(0.156 0.014 244.35);
--muted-foreground: oklch(0.68 0.013 244.33);
--popover: oklch(0.114 0.019 280.799);
--popover-foreground: oklch(0.974 0.004 284.74);
--card: oklch(0.126 0.022 280.712);
--card-foreground: oklch(0.983 0.002 284.763);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.754 0.122 281.543);
--primary-foreground: oklch(0.243 0.152 266.313);
--secondary: oklch(0.843 0.076 245.281);
--secondary-foreground: oklch(0.34 0.094 251.072);
--accent: oklch(0.783 0.129 305.031);
--accent-foreground: oklch(0.279 0.146 295.522);
--destructive: oklch(0.59 0.212 32.544);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.754 0.122 281.543);
--chart-1: oklch(0.754 0.122 281.543);
--chart-2: oklch(0.843 0.076 245.281);
--chart-3: oklch(0.783 0.129 305.031);
--chart-4: oklch(0.868 0.064 245.036);
--chart-5: oklch(0.751 0.126 281.403);
}