betterment is a shadcn/ui theme built around a deep teal primary color (#0f2420) with deep yellow accents (#24200f). The light mode uses a neutral background (#f7fdfc). Dark mode keeps the deep teal primary (#0f2420) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfcmintcream | #010403black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f7fdfcmintcream | #010403black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f7fdfcmintcream | #010403black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #0f2420black | #0f2420black |
| Primary foreground | #4db3a0cadetblue | #4db3a0cadetblue |
| Secondary | #200f24black | #200f24black |
| Secondary foreground | #c694d1plum | #c694d1plum |
| Muted | #f5eef6whitesmoke | #0f0911black |
| Muted foreground | #6f5874dimgray | #a28ba7darkgray |
| Accent | #24200fblack | #24200fblack |
| Accent foreground | #b3a04ddarkkhaki | #b3a04ddarkkhaki |
| Destructive | #c2360ffirebrick | #ef5125chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #ecefeewhitesmoke | #171c1bblack |
| Input | #ecefeewhitesmoke | #171c1bblack |
| Ring | #0f2420black | #0f2420black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.38:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 5.55:1 | AA |
| Accent | 6.25:1 | AA |
| Destructive | 5.47:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 6.40:1 | AA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 6.36:1 | AA |
| Accent | 6.25:1 | AA |
| Destructive | 3.59:1 | AA Large |
Paste this into your globals.css to use betterment in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 184.139);
--foreground: oklch(0 0 0);
--muted: oklch(0.957 0.013 320.004);
--muted-foreground: oklch(0.493 0.053 320.078);
--popover: oklch(0.989 0.006 184.139);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.006 184.139);
--card-foreground: oklch(0 0 0);
--border: oklch(0.949 0.003 184.224);
--input: oklch(0.949 0.003 184.224);
--primary: oklch(0.24 0.028 180.648);
--primary-foreground: oklch(0.7 0.099 179.313);
--secondary: oklch(0.204 0.046 320.083);
--secondary-foreground: oklch(0.734 0.102 320.093);
--accent: oklch(0.243 0.029 97.052);
--accent-foreground: oklch(0.704 0.106 96.856);
--destructive: oklch(0.542 0.183 34.705);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.24 0.028 180.648);
--chart-1: oklch(0.24 0.028 180.648);
--chart-2: oklch(0.204 0.046 320.083);
--chart-3: oklch(0.243 0.029 97.052);
--chart-4: oklch(0.234 0.057 320.067);
--chart-5: oklch(0.243 0.029 180.392);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.01 184.097);
--foreground: oklch(1 0 180);
--muted: oklch(0.152 0.02 320.137);
--muted-foreground: oklch(0.666 0.049 320.055);
--popover: oklch(0.098 0.01 184.097);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.098 0.01 184.097);
--card-foreground: oklch(1 0 180);
--border: oklch(0.22 0.006 183.528);
--input: oklch(0.22 0.006 183.528);
--primary: oklch(0.24 0.028 180.648);
--primary-foreground: oklch(0.7 0.099 179.313);
--secondary: oklch(0.204 0.046 320.083);
--secondary-foreground: oklch(0.734 0.102 320.093);
--accent: oklch(0.243 0.029 97.052);
--accent-foreground: oklch(0.704 0.106 96.856);
--destructive: oklch(0.646 0.202 35.553);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.24 0.028 180.648);
--chart-1: oklch(0.24 0.028 180.648);
--chart-2: oklch(0.204 0.046 320.083);
--chart-3: oklch(0.243 0.029 97.052);
--chart-4: oklch(0.234 0.057 320.067);
--chart-5: oklch(0.243 0.029 180.392);
}