Trend is a shadcn/ui theme built around a light green primary color (#eef6e4) with light violet accents (#ece4f6). The light mode uses a neutral background (#fafdf6). Dark mode keeps the light green primary (#eef6e4) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fafdf6mintcream | #000000black |
| Foreground | #080d03black | #fafbf8snow |
| Card | #f8fdf2ivory | #030303black |
| Card foreground | #050802black | #fdfdfcwhite |
| Popover | #fafdf6mintcream | #000000black |
| Popover foreground | #080d03black | #fafbf8snow |
| Primary | #eef6e4beige | #eef6e4beige |
| Primary foreground | #233210black | #233210black |
| Secondary | #ece4f6lavender | #ece4f6lavender |
| Secondary foreground | #502880darkslateblue | #502880darkslateblue |
| Muted | #f2eef7whitesmoke | #0c0811black |
| Muted foreground | #4e4559darkslategray | #afa6badarkgray |
| Accent | #ece4f6lavender | #ece4f6lavender |
| Accent foreground | #502880darkslateblue | #502880darkslateblue |
| Destructive | #db150ared | #e5160bred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eef6e4beige | #eef6e4beige |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.17:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 12.37:1 | AAA |
| Secondary button | 8.68:1 | AAA |
| Muted text | 7.88:1 | AAA |
| Accent | 8.68:1 | AAA |
| Destructive | 5.08:1 | AA |
| Text on background | 20.21:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 12.37:1 | AAA |
| Secondary button | 8.68:1 | AAA |
| Muted text | 8.48:1 | AAA |
| Accent | 8.68:1 | AAA |
| Destructive | 4.72:1 | AA |
Paste this into your globals.css to use Trend in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.01 126.554);
--foreground: oklch(0.148 0.026 125.749);
--muted: oklch(0.954 0.013 306.25);
--muted-foreground: oklch(0.407 0.036 305.301);
--popover: oklch(0.991 0.01 126.554);
--popover-foreground: oklch(0.148 0.026 125.749);
--card: oklch(0.986 0.015 126.618);
--card-foreground: oklch(0.129 0.022 125.37);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.963 0.026 126.778);
--primary-foreground: oklch(0.296 0.059 129.678);
--secondary: oklch(0.93 0.026 306.067);
--secondary-foreground: oklch(0.379 0.141 300.431);
--accent: oklch(0.93 0.026 306.067);
--accent-foreground: oklch(0.379 0.141 300.431);
--destructive: oklch(0.566 0.224 29.485);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.963 0.026 126.778);
--chart-1: oklch(0.963 0.026 126.778);
--chart-2: oklch(0.93 0.026 306.067);
--chart-3: oklch(0.93 0.026 306.067);
--chart-4: oklch(0.96 0.015 306.23);
--chart-5: oklch(0.964 0.028 126.798);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.004 126.48);
--muted: oklch(0.146 0.021 304.847);
--muted-foreground: oklch(0.738 0.031 305.894);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.987 0.004 126.48);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.994 0.002 126.454);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.963 0.026 126.778);
--primary-foreground: oklch(0.296 0.059 129.678);
--secondary: oklch(0.93 0.026 306.067);
--secondary-foreground: oklch(0.379 0.141 300.431);
--accent: oklch(0.93 0.026 306.067);
--accent-foreground: oklch(0.379 0.141 300.431);
--destructive: oklch(0.584 0.232 29.489);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.963 0.026 126.778);
--chart-1: oklch(0.963 0.026 126.778);
--chart-2: oklch(0.93 0.026 306.067);
--chart-3: oklch(0.93 0.026 306.067);
--chart-4: oklch(0.96 0.015 306.23);
--chart-5: oklch(0.964 0.028 126.798);
}