Behaviour is a shadcn/ui theme built around a near-black primary color (#242324) with muted pink accents (#cfafba). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the near-black primary (#242324) on a neutral background (#040102).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f9snow | #040102black |
| Foreground | #0d0306black | #ffffffwhite |
| Card | #fdf7f9snow | #040102black |
| Card foreground | #0d0306black | #ffffffwhite |
| Popover | #fdf7f9snow | #040102black |
| Popover foreground | #0d0306black | #ffffffwhite |
| Primary | #242324black | #242324black |
| Primary foreground | #bdbcbcsilver | #bdbcbcsilver |
| Secondary | #deced4lightgrey | #1e1a1bblack |
| Secondary foreground | #493239darkslategray | #bbafb3darkgray |
| Muted | #e0d7dagainsboro | #281f22black |
| Muted foreground | #594a4fdarkslategray | #b5a6abdarkgray |
| Accent | #cfafbasilver | #35272cdarkslategray |
| Accent foreground | #301d23black | #cfbec4silver |
| Destructive | #8b330esaddlebrown | #eb6d37tomato |
| Destructive foreground | #faddd1antiquewhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #242324black | #242324black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.19:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 7.74:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 6.30:1 | AA |
| Text on background | 20.75:1 | AAA |
| Text on card | 20.75:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 8.12:1 | AAA |
| Muted text | 6.86:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.80:1 | AA |
Paste this into your globals.css to use Behaviour in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.007 354.795);
--foreground: oklch(0.119 0.027 354.574);
--muted: oklch(0.886 0.011 354.943);
--muted-foreground: oklch(0.427 0.021 355.975);
--popover: oklch(0.981 0.007 354.795);
--popover-foreground: oklch(0.119 0.027 354.574);
--card: oklch(0.981 0.007 354.795);
--card-foreground: oklch(0.119 0.027 354.574);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.258 0.001 354.716);
--primary-foreground: oklch(0.797 0.002 354.646);
--secondary: oklch(0.867 0.019 355.197);
--secondary-foreground: oklch(0.345 0.036 357.427);
--accent: oklch(0.786 0.039 355.99);
--accent-foreground: oklch(0.257 0.032 357.971);
--destructive: oklch(0.443 0.128 40.322);
--destructive-foreground: oklch(0.919 0.037 44.621);
--ring: oklch(0.258 0.001 354.716);
--chart-1: oklch(0.258 0.001 354.716);
--chart-2: oklch(0.867 0.019 355.197);
--chart-3: oklch(0.786 0.039 355.99);
--chart-4: oklch(0.892 0.015 355.066);
--chart-5: oklch(0.257 0.005 355.102);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.012 354.309);
--foreground: oklch(1 0 180);
--muted: oklch(0.252 0.015 356.279);
--muted-foreground: oklch(0.739 0.018 355.291);
--popover: oklch(0.085 0.012 354.309);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.085 0.012 354.309);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.258 0.001 354.716);
--primary-foreground: oklch(0.797 0.002 354.646);
--secondary: oklch(0.223 0.008 355.547);
--secondary-foreground: oklch(0.765 0.015 355.131);
--accent: oklch(0.291 0.022 356.679);
--accent-foreground: oklch(0.819 0.02 355.297);
--destructive: oklch(0.679 0.17 42.032);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.258 0.001 354.716);
--chart-1: oklch(0.258 0.001 354.716);
--chart-2: oklch(0.223 0.008 355.547);
--chart-3: oklch(0.291 0.022 356.679);
--chart-4: oklch(0.254 0.009 355.622);
--chart-5: oklch(0.257 0.005 355.102);
}