Trim is a shadcn/ui theme built around a neutral gray primary color (#ada7ae) with neutral gray accents (#aea7ac). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#ada7ae) on a neutral background (#030204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030204black |
| Foreground | #0e0410black | #ffffffwhite |
| Card | #ffffffwhite | #030204black |
| Card foreground | #0e0410black | #ffffffwhite |
| Popover | #ffffffwhite | #030204black |
| Popover foreground | #0e0410black | #ffffffwhite |
| Primary | #ada7aedarkgray | #ada7aedarkgray |
| Primary foreground | #121113black | #121113black |
| Secondary | #aaa7aedarkgray | #aaa7aedarkgray |
| Secondary foreground | #121113black | #121113black |
| Muted | #dad8dfgainsboro | #232027black |
| Muted foreground | #5b595fdimgray | #a2a0a6darkgray |
| Accent | #aea7acdarkgray | #aea7acdarkgray |
| Accent foreground | #131112black | #131112black |
| Destructive | #891306darkred | #f0210ared |
| Destructive foreground | #fdcac4pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ada7aedarkgray | #ada7aedarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.12:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 4.89:1 | AA |
| Accent | 8.02:1 | AAA |
| Destructive | 6.67:1 | AA |
| Text on background | 20.73:1 | AAA |
| Text on card | 20.73:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 6.18:1 | AA |
| Accent | 8.02:1 | AAA |
| Destructive | 4.26:1 | AA Large |
Paste this into your globals.css to use Trim in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.136 0.033 322.673);
--muted: oklch(0.886 0.009 302.773);
--muted-foreground: oklch(0.468 0.009 302.632);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.136 0.033 322.673);
--card: oklch(1 0 180);
--card-foreground: oklch(0.136 0.033 322.673);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.737 0.012 321.636);
--primary-foreground: oklch(0.18 0.003 321.646);
--secondary: oklch(0.734 0.01 302.722);
--secondary-foreground: oklch(0.179 0.003 302.674);
--accent: oklch(0.737 0.01 339.002);
--accent-foreground: oklch(0.18 0.003 339.067);
--destructive: oklch(0.405 0.153 30.61);
--destructive-foreground: oklch(0.881 0.058 25.669);
--ring: oklch(0.737 0.012 321.636);
--chart-1: oklch(0.737 0.012 321.636);
--chart-2: oklch(0.734 0.01 302.722);
--chart-3: oklch(0.737 0.01 339.002);
--chart-4: oklch(0.759 0.009 302.749);
--chart-5: oklch(0.734 0.02 321.669);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.013 322.832);
--foreground: oklch(1 0 180);
--muted: oklch(0.251 0.012 302.173);
--muted-foreground: oklch(0.711 0.008 302.753);
--popover: oklch(0.087 0.013 322.832);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.087 0.013 322.832);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.737 0.012 321.636);
--primary-foreground: oklch(0.18 0.003 321.646);
--secondary: oklch(0.734 0.01 302.722);
--secondary-foreground: oklch(0.179 0.003 302.674);
--accent: oklch(0.737 0.01 339.002);
--accent-foreground: oklch(0.18 0.003 339.067);
--destructive: oklch(0.609 0.237 30.371);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.737 0.012 321.636);
--chart-1: oklch(0.737 0.012 321.636);
--chart-2: oklch(0.734 0.01 302.722);
--chart-3: oklch(0.737 0.01 339.002);
--chart-4: oklch(0.759 0.009 302.749);
--chart-5: oklch(0.734 0.02 321.669);
}