Behaviour is a shadcn/ui theme built around a blue primary color (#637fc5) with green accents (#7fc563). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#637fc5) on a neutral background (#030407).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030407black |
| Foreground | #040810black | #fcfcfdwhite |
| Card | #fcfcfcsnow | #05060bblack |
| Card foreground | #03060cblack | #ffffffwhite |
| Popover | #fcfcfcsnow | #05060bblack |
| Popover foreground | #03060cblack | #ffffffwhite |
| Primary | #637fc5steelblue | #637fc5steelblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #c5637fpalevioletred | #c5637fpalevioletred |
| Secondary foreground | #000000black | #000000black |
| Muted | #e2dadcgainsboro | #251d1fblack |
| Muted foreground | #68555adimgray | #aa979ddarkgray |
| Accent | #7fc563darkseagreen | #7fc563darkseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #6d0703maroon | #f20f07red |
| Destructive foreground | #fca9a6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #637fc5steelblue | #637fc5steelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.05:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 3.92:1 | AA Large |
| Secondary button | 5.45:1 | AA |
| Muted text | 5.02:1 | AA |
| Accent | 10.07:1 | AAA |
| Destructive | 6.76:1 | AA |
| Text on background | 19.97:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 3.92:1 | AA Large |
| Secondary button | 5.45:1 | AA |
| Muted text | 5.98:1 | AA |
| Accent | 10.07:1 | AAA |
| Destructive | 4.31:1 | AA Large |
Paste this into your globals.css to use Behaviour in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.021 262.635);
--muted: oklch(0.894 0.01 358.033);
--muted-foreground: oklch(0.47 0.026 359.26);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.12 0.017 261.201);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.12 0.017 261.201);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.605 0.113 266.7);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.623 0.129 3.556);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.755 0.15 137.511);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.34 0.133 29.415);
--destructive-foreground: oklch(0.815 0.099 21.635);
--ring: oklch(0.605 0.113 266.7);
--chart-1: oklch(0.605 0.113 266.7);
--chart-2: oklch(0.623 0.129 3.556);
--chart-3: oklch(0.755 0.15 137.511);
--chart-4: oklch(0.648 0.119 2.82);
--chart-5: oklch(0.601 0.12 266.519);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.108 0.011 263.516);
--foreground: oklch(0.992 0.001 268.784);
--muted: oklch(0.241 0.014 359.338);
--muted-foreground: oklch(0.695 0.024 358.665);
--popover: oklch(0.124 0.012 263.565);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.012 263.565);
--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.605 0.113 266.7);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.623 0.129 3.556);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.755 0.15 137.511);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.608 0.245 29.324);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.605 0.113 266.7);
--chart-1: oklch(0.605 0.113 266.7);
--chart-2: oklch(0.623 0.129 3.556);
--chart-3: oklch(0.755 0.15 137.511);
--chart-4: oklch(0.648 0.119 2.82);
--chart-5: oklch(0.601 0.12 266.519);
}