Obligation is a shadcn/ui theme built around a light green primary color (#bcdccb) with light teal accents (#bcdcdb). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the light green primary (#bcdccb) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #000000black |
| Foreground | #010905black | #fbfdfcwhite |
| Card | #fcfdfcwhite | #000000black |
| Card foreground | #010905black | #fbfdfcwhite |
| Popover | #fcfdfcwhite | #000000black |
| Popover foreground | #010905black | #fbfdfcwhite |
| Primary | #bcdccblightgrey | #bcdccblightgrey |
| Primary foreground | #234332darkslategray | #234332darkslategray |
| Secondary | #bddcbcsilver | #bddcbcsilver |
| Secondary foreground | #244323darkslategray | #244323darkslategray |
| Muted | #cfe8celightgrey | #183117black |
| Muted foreground | #50694fdarkolivegreen | #97b096darkseagreen |
| Accent | #bcdcdbpowderblue | #bcdcdbpowderblue |
| Accent foreground | #234342darkslategray | #234342darkslategray |
| Destructive | #92390csaddlebrown | #ef7234tomato |
| Destructive foreground | #fce2d5antiquewhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bcdccblightgrey | #bcdccblightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 4.63:1 | AA |
| Accent | 7.38:1 | AAA |
| Destructive | 6.04:1 | AA |
| Text on background | 20.55:1 | AAA |
| Text on card | 20.55:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 7.44:1 | AAA |
| Muted text | 6.04:1 | AA |
| Accent | 7.38:1 | AAA |
| Destructive | 7.12:1 | AAA |
Paste this into your globals.css to use Obligation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 163.394);
--foreground: oklch(0.126 0.022 163.536);
--muted: oklch(0.906 0.043 144.305);
--muted-foreground: oklch(0.492 0.05 143.937);
--popover: oklch(0.993 0.002 163.394);
--popover-foreground: oklch(0.126 0.022 163.536);
--card: oklch(0.993 0.002 163.394);
--card-foreground: oklch(0.126 0.022 163.536);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.867 0.042 162.161);
--primary-foreground: oklch(0.353 0.05 159.139);
--secondary: oklch(0.864 0.056 144.193);
--secondary-foreground: oklch(0.35 0.067 143.301);
--accent: oklch(0.871 0.034 194.061);
--accent-foreground: oklch(0.359 0.039 192.789);
--destructive: oklch(0.462 0.132 42.2);
--destructive-foreground: oklch(0.929 0.034 48.338);
--ring: oklch(0.867 0.042 162.161);
--chart-1: oklch(0.867 0.042 162.161);
--chart-2: oklch(0.864 0.056 144.193);
--chart-3: oklch(0.871 0.034 194.061);
--chart-4: oklch(0.884 0.047 144.268);
--chart-5: oklch(0.869 0.046 162.04);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 163.382);
--muted: oklch(0.283 0.055 143.269);
--muted-foreground: oklch(0.731 0.046 144.206);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.994 0.002 163.382);
--card: oklch(0 0 0);
--card-foreground: oklch(0.994 0.002 163.382);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.867 0.042 162.161);
--primary-foreground: oklch(0.353 0.05 159.139);
--secondary: oklch(0.864 0.056 144.193);
--secondary-foreground: oklch(0.35 0.067 143.301);
--accent: oklch(0.871 0.034 194.061);
--accent-foreground: oklch(0.359 0.039 192.789);
--destructive: oklch(0.691 0.17 44.467);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.867 0.042 162.161);
--chart-1: oklch(0.867 0.042 162.161);
--chart-2: oklch(0.864 0.056 144.193);
--chart-3: oklch(0.871 0.034 194.061);
--chart-4: oklch(0.884 0.047 144.268);
--chart-5: oklch(0.869 0.046 162.04);
}