Thoughtful is a shadcn/ui theme built around a muted deep green primary color (#16271e) with muted deep pink accents (#27161f). The light mode uses a neutral background (#fbfefc). Dark mode keeps the muted deep green primary (#16271e) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #020302black |
| Foreground | #06140cblack | #f8fcfamintcream |
| Card | #fbfefcwhite | #020302black |
| Card foreground | #06140cblack | #f8fcfamintcream |
| Popover | #fbfefcwhite | #020302black |
| Popover foreground | #06140cblack | #f8fcfamintcream |
| Primary | #16271eblack | #16271eblack |
| Primary foreground | #a4ccb6silver | #a4ccb6silver |
| Secondary | #27161fblack | #27161fblack |
| Secondary foreground | #cca4basilver | #cca4basilver |
| Muted | #eeecedwhitesmoke | #131112black |
| Muted foreground | #493641darkslategray | #c9b6c0silver |
| Accent | #27161fblack | #27161fblack |
| Accent foreground | #cca4basilver | #cca4basilver |
| Destructive | #9f2009firebrick | #de2c0dorangered |
| Destructive foreground | #fde2ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #16271eblack | #16271eblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.56:1 | AAA |
| Text on card | 18.56:1 | AAA |
| Primary button | 8.84:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 9.46:1 | AAA |
| Accent | 7.84:1 | AAA |
| Destructive | 6.37:1 | AA |
| Text on background | 19.93:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 8.84:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 9.81:1 | AAA |
| Accent | 7.84:1 | AAA |
| Destructive | 4.70:1 | AA |
Paste this into your globals.css to use Thoughtful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 162.537);
--foreground: oklch(0.174 0.026 159.117);
--muted: oklch(0.945 0.003 342.702);
--muted-foreground: oklch(0.359 0.032 344.681);
--popover: oklch(0.994 0.003 162.537);
--popover-foreground: oklch(0.174 0.026 159.117);
--card: oklch(0.994 0.003 162.537);
--card-foreground: oklch(0.174 0.026 159.117);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.255 0.029 159.36);
--primary-foreground: oklch(0.809 0.052 160.903);
--secondary: oklch(0.227 0.032 345.831);
--secondary-foreground: oklch(0.76 0.055 344.317);
--accent: oklch(0.227 0.032 345.831);
--accent-foreground: oklch(0.76 0.055 344.317);
--destructive: oklch(0.458 0.166 32.003);
--destructive-foreground: oklch(0.934 0.031 29.615);
--ring: oklch(0.255 0.029 159.36);
--chart-1: oklch(0.255 0.029 159.36);
--chart-2: oklch(0.227 0.032 345.831);
--chart-3: oklch(0.227 0.032 345.831);
--chart-4: oklch(0.257 0.039 346.045);
--chart-5: oklch(0.257 0.032 159.012);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.009 162.636);
--foreground: oklch(0.987 0.005 162.491);
--muted: oklch(0.179 0.005 343.279);
--muted-foreground: oklch(0.795 0.026 343.403);
--popover: oklch(0.096 0.009 162.636);
--popover-foreground: oklch(0.987 0.005 162.491);
--card: oklch(0.096 0.009 162.636);
--card-foreground: oklch(0.987 0.005 162.491);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.255 0.029 159.36);
--primary-foreground: oklch(0.809 0.052 160.903);
--secondary: oklch(0.227 0.032 345.831);
--secondary-foreground: oklch(0.76 0.055 344.317);
--accent: oklch(0.227 0.032 345.831);
--accent-foreground: oklch(0.76 0.055 344.317);
--destructive: oklch(0.583 0.215 31.821);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.255 0.029 159.36);
--chart-1: oklch(0.255 0.029 159.36);
--chart-2: oklch(0.227 0.032 345.831);
--chart-3: oklch(0.227 0.032 345.831);
--chart-4: oklch(0.257 0.039 346.045);
--chart-5: oklch(0.257 0.032 159.012);
}