Obligation is a shadcn/ui theme built around a neutral gray primary color (#c3c1c7) with neutral gray accents (#c5c7c1). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the neutral gray primary (#c3c1c7) on a violet-tinted background (#09060e).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #09060eblack |
| Foreground | #020104black | #f9f8fcghostwhite |
| Card | #fcfbfewhite | #09060eblack |
| Card foreground | #020104black | #f9f8fcghostwhite |
| Popover | #fcfbfewhite | #09060eblack |
| Popover foreground | #020104black | #f9f8fcghostwhite |
| Primary | #c3c1c7silver | #c3c1c7silver |
| Primary foreground | #2b292edarkslategray | #2b292edarkslategray |
| Secondary | #c5c7c1silver | #c5c7c1silver |
| Secondary foreground | #2c2e29darkslategray | #2c2e29darkslategray |
| Muted | #dfe5d1gainsboro | #272e1adarkslategray |
| Muted foreground | #565a4edarkolivegreen | #adb1a5darkgray |
| Accent | #c5c7c1silver | #c5c7c1silver |
| Accent foreground | #2c2e29darkslategray | #2c2e29darkslategray |
| Destructive | #96260dbrown | #e63a14orangered |
| Destructive foreground | #fce0d9mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c3c1c7silver | #c3c1c7silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 8.09:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 5.49:1 | AA |
| Accent | 8.07:1 | AAA |
| Destructive | 6.50:1 | AA |
| Text on background | 19.03:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 8.09:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 6.45:1 | AA |
| Accent | 8.07:1 | AAA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Obligation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 300.719);
--foreground: oklch(0.08 0.016 301.117);
--muted: oklch(0.913 0.028 121.267);
--muted-foreground: oklch(0.461 0.019 121.459);
--popover: oklch(0.99 0.003 300.719);
--popover-foreground: oklch(0.08 0.016 301.117);
--card: oklch(0.99 0.003 300.719);
--card-foreground: oklch(0.08 0.016 301.117);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.815 0.008 300.599);
--primary-foreground: oklch(0.285 0.008 300.302);
--secondary: oklch(0.827 0.008 120.933);
--secondary-foreground: oklch(0.296 0.008 121.209);
--accent: oklch(0.827 0.008 120.933);
--accent-foreground: oklch(0.296 0.008 121.209);
--destructive: oklch(0.447 0.152 33.56);
--destructive-foreground: oklch(0.927 0.032 32.707);
--ring: oklch(0.815 0.008 300.599);
--chart-1: oklch(0.815 0.008 300.599);
--chart-2: oklch(0.827 0.008 120.933);
--chart-3: oklch(0.827 0.008 120.933);
--chart-4: oklch(0.85 0.007 120.907);
--chart-5: oklch(0.812 0.013 300.496);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.131 0.021 300.003);
--foreground: oklch(0.981 0.005 300.677);
--muted: oklch(0.288 0.035 122.921);
--muted-foreground: oklch(0.753 0.017 121.142);
--popover: oklch(0.131 0.021 300.003);
--popover-foreground: oklch(0.981 0.005 300.677);
--card: oklch(0.131 0.021 300.003);
--card-foreground: oklch(0.981 0.005 300.677);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.815 0.008 300.599);
--primary-foreground: oklch(0.285 0.008 300.302);
--secondary: oklch(0.827 0.008 120.933);
--secondary-foreground: oklch(0.296 0.008 121.209);
--accent: oklch(0.827 0.008 120.933);
--accent-foreground: oklch(0.296 0.008 121.209);
--destructive: oklch(0.609 0.213 33.288);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.815 0.008 300.599);
--chart-1: oklch(0.815 0.008 300.599);
--chart-2: oklch(0.827 0.008 120.933);
--chart-3: oklch(0.827 0.008 120.933);
--chart-4: oklch(0.85 0.007 120.907);
--chart-5: oklch(0.812 0.013 300.496);
}