Affect Health theme is a shadcn/ui theme built around a green primary color (#c0e58f) with green accents (#95e58f). The light mode uses a neutral background (#fafcf8). Dark mode keeps the green primary (#c0e58f) on a green-tinted background (#0b1005).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #0b1005black |
| Foreground | #0e1604black | #f8f9f6whitesmoke |
| Card | #fafcf8snow | #0b1005black |
| Card foreground | #0e1604black | #f8f9f6whitesmoke |
| Popover | #fafcf8snow | #0b1005black |
| Popover foreground | #0e1604black | #f8f9f6whitesmoke |
| Primary | #c0e58fpalegreen | #c0e58fpalegreen |
| Primary foreground | #24360ddarkgreen | #24360ddarkgreen |
| Secondary | #e5df8fkhaki | #e5df8fkhaki |
| Secondary foreground | #36330ddarkslategray | #36330ddarkslategray |
| Muted | #ecece9linen | #161613black |
| Muted foreground | #5a594edimgray | #b1b0a5darkgray |
| Accent | #95e58flightgreen | #95e58flightgreen |
| Accent foreground | #0f360ddarkgreen | #0f360ddarkgreen |
| Destructive | #610e05maroon | #f54b38tomato |
| Destructive foreground | #faa79elightsalmon | #ffffffwhite |
| Border | #e3e7dfgainsboro | #1a1d16black |
| Input | #e3e7dfgainsboro | #1a1d16black |
| Ring | #c0e58fpalegreen | #c0e58fpalegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.92:1 | AAA |
| Text on card | 17.92:1 | AAA |
| Primary button | 9.21:1 | AAA |
| Secondary button | 9.34:1 | AAA |
| Muted text | 5.96:1 | AA |
| Accent | 8.92:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 18.24:1 | AAA |
| Text on card | 18.24:1 | AAA |
| Primary button | 9.21:1 | AAA |
| Secondary button | 9.34:1 | AAA |
| Muted text | 8.31:1 | AAA |
| Accent | 8.92:1 | AAA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Affect Health theme in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 125.818);
--foreground: oklch(0.185 0.037 127.73);
--muted: oklch(0.942 0.004 103.179);
--muted-foreground: oklch(0.462 0.017 103.712);
--popover: oklch(0.989 0.006 125.818);
--popover-foreground: oklch(0.185 0.037 127.73);
--card: oklch(0.989 0.006 125.818);
--card-foreground: oklch(0.185 0.037 127.73);
--border: oklch(0.923 0.011 125.901);
--input: oklch(0.923 0.011 125.901);
--primary: oklch(0.875 0.118 127.719);
--primary-foreground: oklch(0.306 0.068 129.7);
--secondary: oklch(0.891 0.101 104.741);
--secondary-foreground: oklch(0.315 0.056 105.231);
--accent: oklch(0.849 0.14 142.734);
--accent-foreground: oklch(0.294 0.08 142.205);
--destructive: oklch(0.32 0.117 30.804);
--destructive-foreground: oklch(0.808 0.099 26.452);
--ring: oklch(0.875 0.118 127.719);
--chart-1: oklch(0.875 0.118 127.719);
--chart-2: oklch(0.891 0.101 104.741);
--chart-3: oklch(0.849 0.14 142.734);
--chart-4: oklch(0.903 0.09 104.588);
--chart-5: oklch(0.879 0.123 127.81);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.163 0.025 126.506);
--foreground: oklch(0.98 0.004 125.795);
--muted: oklch(0.198 0.006 103.596);
--muted-foreground: oklch(0.755 0.015 103.444);
--popover: oklch(0.163 0.025 126.506);
--popover-foreground: oklch(0.98 0.004 125.795);
--card: oklch(0.163 0.025 126.506);
--card-foreground: oklch(0.98 0.004 125.795);
--border: oklch(0.225 0.014 126.606);
--input: oklch(0.225 0.014 126.606);
--primary: oklch(0.875 0.118 127.719);
--primary-foreground: oklch(0.306 0.068 129.7);
--secondary: oklch(0.891 0.101 104.741);
--secondary-foreground: oklch(0.315 0.056 105.231);
--accent: oklch(0.849 0.14 142.734);
--accent-foreground: oklch(0.294 0.08 142.205);
--destructive: oklch(0.652 0.209 29.995);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.875 0.118 127.719);
--chart-1: oklch(0.875 0.118 127.719);
--chart-2: oklch(0.891 0.101 104.741);
--chart-3: oklch(0.849 0.14 142.734);
--chart-4: oklch(0.903 0.09 104.588);
--chart-5: oklch(0.879 0.123 127.81);
}