Trend is a shadcn/ui theme built around a muted blue primary color (#575d6b) with muted indigo accents (#5b576b). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted blue primary (#575d6b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #000000black |
| Foreground | #02050eblack | #fcfcfdwhite |
| Card | #fbfcfewhite | #000000black |
| Card foreground | #02050eblack | #fcfcfdwhite |
| Popover | #fbfcfewhite | #000000black |
| Popover foreground | #02050eblack | #fcfcfdwhite |
| Primary | #575d6bdimgray | #575d6bdimgray |
| Primary foreground | #f9fafaghostwhite | #f9fafaghostwhite |
| Secondary | #57676bdimgray | #57676bdimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d8eaeelavender | #112327black |
| Muted foreground | #4e656adimgray | #95acb1darkgray |
| Accent | #5b576bdimgray | #5b576bdimgray |
| Accent foreground | #faf9fasnow | #faf9fasnow |
| Destructive | #d52b01firebrick | #fe582ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #575d6bdimgray | #575d6bdimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 5.89:1 | AA |
| Muted text | 4.97:1 | AA |
| Accent | 6.61:1 | AA |
| Destructive | 5.01:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 5.89:1 | AA |
| Muted text | 6.82:1 | AA |
| Accent | 6.61:1 | AA |
| Destructive | 6.66:1 | AA |
Paste this into your globals.css to use Trend in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 265.992);
--foreground: oklch(0.117 0.024 254.743);
--muted: oklch(0.924 0.019 212.697);
--muted-foreground: oklch(0.489 0.028 212.918);
--popover: oklch(0.99 0.003 265.992);
--popover-foreground: oklch(0.117 0.024 254.743);
--card: oklch(0.99 0.003 265.992);
--card-foreground: oklch(0.117 0.024 254.743);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.479 0.023 265.727);
--primary-foreground: oklch(0.984 0.001 266.002);
--secondary: oklch(0.502 0.02 212.783);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.468 0.031 293.561);
--accent-foreground: oklch(0.984 0.001 294.798);
--destructive: oklch(0.566 0.209 32.933);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.479 0.023 265.727);
--chart-1: oklch(0.479 0.023 265.727);
--chart-2: oklch(0.502 0.02 212.783);
--chart-3: oklch(0.468 0.031 293.561);
--chart-4: oklch(0.53 0.021 212.785);
--chart-5: oklch(0.475 0.03 265.612);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 265.999);
--muted: oklch(0.242 0.024 213.59);
--muted-foreground: oklch(0.729 0.026 212.759);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.002 265.999);
--card: oklch(0 0 0);
--card-foreground: oklch(0.991 0.002 265.999);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.479 0.023 265.727);
--primary-foreground: oklch(0.984 0.001 266.002);
--secondary: oklch(0.502 0.02 212.783);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.468 0.031 293.561);
--accent-foreground: oklch(0.984 0.001 294.798);
--destructive: oklch(0.68 0.209 34.873);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.479 0.023 265.727);
--chart-1: oklch(0.479 0.023 265.727);
--chart-2: oklch(0.502 0.02 212.783);
--chart-3: oklch(0.468 0.031 293.561);
--chart-4: oklch(0.53 0.021 212.785);
--chart-5: oklch(0.475 0.03 265.612);
}