Laughter is a shadcn/ui theme built around a light green primary color (#ebfaec) with light teal accents (#ebfaf3). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the light green primary (#ebfaec) on a green-tinted background (#051006).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfcwhite | #051006black |
| Foreground | #020802black | #fcfdfcwhite |
| Card | #fcfdfcwhite | #051006black |
| Card foreground | #020802black | #fcfdfcwhite |
| Popover | #fcfdfcwhite | #051006black |
| Popover foreground | #020802black | #fcfdfcwhite |
| Primary | #ebfaechoneydew | #ebfaechoneydew |
| Primary foreground | #103c14darkgreen | #103c14darkgreen |
| Secondary | #f1faebhoneydew | #f1faebhoneydew |
| Secondary foreground | #233c10darkgreen | #233c10darkgreen |
| Muted | #e8e9e7linen | #171816black |
| Muted foreground | #505b48darkolivegreen | #acb7a4darkgray |
| Accent | #ebfaf3honeydew | #ebfaf3honeydew |
| Accent foreground | #103c2adarkslategray | #103c2adarkslategray |
| Destructive | #7d290csaddlebrown | #ea5a2achocolate |
| Destructive foreground | #f9d0c3peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ebfaechoneydew | #ebfaechoneydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 11.54:1 | AAA |
| Secondary button | 11.34:1 | AAA |
| Muted text | 5.88:1 | AA |
| Accent | 11.43:1 | AAA |
| Destructive | 6.76:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 11.54:1 | AAA |
| Secondary button | 11.34:1 | AAA |
| Muted text | 8.53:1 | AAA |
| Accent | 11.43:1 | AAA |
| Destructive | 3.51:1 | AA Large |
Paste this into your globals.css to use Laughter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 148.037);
--foreground: oklch(0.123 0.026 146.495);
--muted: oklch(0.933 0.003 131.754);
--muted-foreground: oklch(0.457 0.034 132.363);
--popover: oklch(0.993 0.003 148.037);
--popover-foreground: oklch(0.123 0.026 146.495);
--card: oklch(0.993 0.003 148.037);
--card-foreground: oklch(0.123 0.026 146.495);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.969 0.024 147.804);
--primary-foreground: oklch(0.317 0.083 144.619);
--secondary: oklch(0.974 0.021 131.906);
--secondary-foreground: oklch(0.326 0.076 134.52);
--accent: oklch(0.971 0.018 169.151);
--accent-foreground: oklch(0.322 0.059 162.157);
--destructive: oklch(0.404 0.123 37.288);
--destructive-foreground: oklch(0.89 0.05 39.271);
--ring: oklch(0.969 0.024 147.804);
--chart-1: oklch(0.969 0.024 147.804);
--chart-2: oklch(0.974 0.021 131.906);
--chart-3: oklch(0.971 0.018 169.151);
--chart-4: oklch(0.989 0.009 131.795);
--chart-5: oklch(0.97 0.025 147.791);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.157 0.029 146.469);
--foreground: oklch(0.993 0.002 148.042);
--muted: oklch(0.207 0.005 131.919);
--muted-foreground: oklch(0.766 0.03 132.051);
--popover: oklch(0.157 0.029 146.469);
--popover-foreground: oklch(0.993 0.002 148.042);
--card: oklch(0.157 0.029 146.469);
--card-foreground: oklch(0.993 0.002 148.042);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.969 0.024 147.804);
--primary-foreground: oklch(0.317 0.083 144.619);
--secondary: oklch(0.974 0.021 131.906);
--secondary-foreground: oklch(0.326 0.076 134.52);
--accent: oklch(0.971 0.018 169.151);
--accent-foreground: oklch(0.322 0.059 162.157);
--destructive: oklch(0.649 0.189 37.77);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.969 0.024 147.804);
--chart-1: oklch(0.969 0.024 147.804);
--chart-2: oklch(0.974 0.021 131.906);
--chart-3: oklch(0.971 0.018 169.151);
--chart-4: oklch(0.989 0.009 131.795);
--chart-5: oklch(0.97 0.025 147.791);
}