Intensity is a shadcn/ui theme built around a green primary color (#3a9c59) with orange accents (#9c593a). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the green primary (#3a9c59) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #010402black |
| Foreground | #041108black | #f7f8f7whitesmoke |
| Card | #f8fcf9mintcream | #010402black |
| Card foreground | #041108black | #f7f8f7whitesmoke |
| Popover | #f8fcf9mintcream | #010402black |
| Popover foreground | #041108black | #f7f8f7whitesmoke |
| Primary | #3a9c59seagreen | #3a9c59seagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #593a9crebeccapurple | #593a9crebeccapurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e7e5eblavender | #16141ablack |
| Muted foreground | #5d556ddimgray | #9a92aadarkgray |
| Accent | #9c593asienna | #9c593asienna |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d15715chocolate | #ea6d2achocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3a9c59seagreen | #3a9c59seagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.59:1 | AAA |
| Text on card | 18.59:1 | AAA |
| Primary button | 3.44:1 | AA Large |
| Secondary button | 8.36:1 | AAA |
| Muted text | 5.61:1 | AA |
| Accent | 5.36:1 | AA |
| Destructive | 4.14:1 | AA Large |
| Text on background | 19.34:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 3.44:1 | AA Large |
| Secondary button | 8.36:1 | AAA |
| Muted text | 6.16:1 | AA |
| Accent | 5.36:1 | AA |
| Destructive | 6.70:1 | AA |
Paste this into your globals.css to use Intensity in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 156.461);
--foreground: oklch(0.159 0.028 154.781);
--muted: oklch(0.924 0.01 300.598);
--muted-foreground: oklch(0.466 0.038 299.406);
--popover: oklch(0.987 0.005 156.461);
--popover-foreground: oklch(0.159 0.028 154.781);
--card: oklch(0.987 0.005 156.461);
--card-foreground: oklch(0.159 0.028 154.781);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.619 0.136 150.746);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.438 0.153 293.713);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.535 0.1 44.91);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.605 0.17 43.285);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.619 0.136 150.746);
--chart-1: oklch(0.619 0.136 150.746);
--chart-2: oklch(0.438 0.153 293.713);
--chart-3: oklch(0.535 0.1 44.91);
--chart-4: oklch(0.46 0.162 293.635);
--chart-5: oklch(0.627 0.143 150.399);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.015 156.145);
--foreground: oklch(0.978 0.002 156.513);
--muted: oklch(0.195 0.014 299.57);
--muted-foreground: oklch(0.676 0.035 299.916);
--popover: oklch(0.098 0.015 156.145);
--popover-foreground: oklch(0.978 0.002 156.513);
--card: oklch(0.098 0.015 156.145);
--card-foreground: oklch(0.978 0.002 156.513);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.619 0.136 150.746);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.438 0.153 293.713);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.535 0.1 44.91);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.675 0.173 45.079);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.619 0.136 150.746);
--chart-1: oklch(0.619 0.136 150.746);
--chart-2: oklch(0.438 0.153 293.713);
--chart-3: oklch(0.535 0.1 44.91);
--chart-4: oklch(0.46 0.162 293.635);
--chart-5: oklch(0.627 0.143 150.399);
}