Agreeable is a shadcn/ui theme built around a near-black primary color (#121311) with muted light red accents (#d3caca). The light mode uses a neutral background (#fdfefb). Dark mode keeps the near-black primary (#121311) on a neutral background (#060703).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #060703black |
| Foreground | #060802black | #f8faf5whitesmoke |
| Card | #fdfefbwhite | #060703black |
| Card foreground | #060802black | #f8faf5whitesmoke |
| Popover | #fdfefbwhite | #060703black |
| Popover foreground | #060802black | #f8faf5whitesmoke |
| Primary | #121311black | #121311black |
| Primary foreground | #acaea7darkgray | #acaea7darkgray |
| Secondary | #e0e0e0gainsboro | #292c21darkslategray |
| Secondary foreground | #474747darkslategray | #c3c9b6silver |
| Muted | #f2eeeewhitesmoke | #10110dblack |
| Muted foreground | #6b5757dimgray | #a2a894darkgray |
| Accent | #d3cacalightgrey | #3e452bdarkslategray |
| Accent foreground | #3a3131darkslategray | #d6dcc7lightgrey |
| Destructive | #a3310afirebrick | #f15a27chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #121311black | #121311black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 8.33:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 5.81:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 7.01:1 | AAA |
| Text on background | 19.23:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 8.33:1 | AAA |
| Secondary button | 8.37:1 | AAA |
| Muted text | 7.71:1 | AAA |
| Accent | 7.14:1 | AAA |
| Destructive | 6.23:1 | AA |
Paste this into your globals.css to use Agreeable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 119.381);
--foreground: oklch(0.128 0.018 119.279);
--muted: oklch(0.951 0.004 17.232);
--muted-foreground: oklch(0.477 0.026 18.087);
--popover: oklch(0.996 0.004 119.381);
--popover-foreground: oklch(0.128 0.018 119.279);
--card: oklch(0.996 0.004 119.381);
--card-foreground: oklch(0.128 0.018 119.279);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.184 0.003 119.578);
--primary-foreground: oklch(0.748 0.01 119.527);
--secondary: oklch(0.908 0 180);
--secondary-foreground: oklch(0.399 0 180);
--accent: oklch(0.847 0.01 17.348);
--accent-foreground: oklch(0.323 0.014 17.899);
--destructive: oklch(0.481 0.157 36.37);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.184 0.003 119.578);
--chart-1: oklch(0.184 0.003 119.578);
--chart-2: oklch(0.908 0 180);
--chart-3: oklch(0.847 0.01 17.348);
--chart-4: oklch(0.931 0 180);
--chart-5: oklch(0.185 0.005 119.777);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.012 119.287);
--foreground: oklch(0.982 0.007 119.423);
--muted: oklch(0.176 0.008 120.106);
--muted-foreground: oklch(0.721 0.028 119.975);
--popover: oklch(0.124 0.012 119.287);
--popover-foreground: oklch(0.982 0.007 119.423);
--card: oklch(0.124 0.012 119.287);
--card-foreground: oklch(0.982 0.007 119.423);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.184 0.003 119.578);
--primary-foreground: oklch(0.748 0.01 119.527);
--secondary: oklch(0.286 0.021 120.568);
--secondary-foreground: oklch(0.826 0.027 119.863);
--accent: oklch(0.376 0.043 121.334);
--accent-foreground: oklch(0.883 0.029 119.872);
--destructive: oklch(0.661 0.196 37.569);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.184 0.003 119.578);
--chart-1: oklch(0.184 0.003 119.578);
--chart-2: oklch(0.286 0.021 120.568);
--chart-3: oklch(0.376 0.043 121.334);
--chart-4: oklch(0.32 0.024 120.623);
--chart-5: oklch(0.185 0.005 119.777);
}