Trim is a shadcn/ui theme built around a light green primary color (#bdebcb) with muted green accents (#9ec7ab). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the light green primary (#bdebcb) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf9mintcream | #000000black |
| Foreground | #020904black | #f8fcf9mintcream |
| Card | #f3fcf6mintcream | #030303black |
| Card foreground | #010402black | #fcfdfcwhite |
| Popover | #f3fcf6mintcream | #030303black |
| Popover foreground | #010402black | #fcfdfcwhite |
| Primary | #bdebcbpowderblue | #bdebcbpowderblue |
| Primary foreground | #1c5a2fdarkslategray | #1c5a2fdarkslategray |
| Secondary | #c2d6c8lightgrey | #303632darkslategray |
| Secondary foreground | #293d2fdarkslategray | #c9cfcblightgrey |
| Muted | #e0f1e5gainsboro | #0e1f14black |
| Muted foreground | #516758dimgray | #98ae9fdarkgray |
| Accent | #9ec7abdarkgray | #3d5243darkslategray |
| Accent foreground | #132017black | #dce5dfgainsboro |
| Destructive | #d51710firebrick | #f03e38tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bdebcbpowderblue | #bdebcbpowderblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 6.21:1 | AA |
| Secondary button | 7.61:1 | AAA |
| Muted text | 5.19:1 | AA |
| Accent | 9.00:1 | AAA |
| Destructive | 5.29:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 6.21:1 | AA |
| Secondary button | 7.80:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 6.55:1 | AA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Trim in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.008 156.396);
--foreground: oklch(0.124 0.022 156.071);
--muted: oklch(0.941 0.024 156.056);
--muted-foreground: oklch(0.49 0.036 155.035);
--popover: oklch(0.982 0.012 156.312);
--popover-foreground: oklch(0.099 0.018 156.071);
--card: oklch(0.982 0.012 156.312);
--card-foreground: oklch(0.099 0.018 156.071);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.898 0.064 155.068);
--primary-foreground: oklch(0.415 0.094 150.471);
--secondary: oklch(0.857 0.028 155.91);
--secondary-foreground: oklch(0.338 0.034 154.375);
--accent: oklch(0.792 0.059 154.988);
--accent-foreground: oklch(0.229 0.026 154.007);
--destructive: oklch(0.556 0.219 29.102);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.898 0.064 155.068);
--chart-1: oklch(0.898 0.064 155.068);
--chart-2: oklch(0.857 0.028 155.91);
--chart-3: oklch(0.792 0.059 154.988);
--chart-4: oklch(0.879 0.023 156.027);
--chart-5: oklch(0.9 0.067 154.984);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.005 156.461);
--muted: oklch(0.222 0.032 153.202);
--muted-foreground: oklch(0.73 0.033 155.651);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.993 0.002 156.511);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.993 0.002 156.511);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.898 0.064 155.068);
--primary-foreground: oklch(0.415 0.094 150.471);
--secondary: oklch(0.326 0.011 155.872);
--secondary-foreground: oklch(0.849 0.009 156.355);
--accent: oklch(0.416 0.036 154.722);
--accent-foreground: oklch(0.913 0.013 156.279);
--destructive: oklch(0.632 0.215 27.398);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.898 0.064 155.068);
--chart-1: oklch(0.898 0.064 155.068);
--chart-2: oklch(0.326 0.011 155.872);
--chart-3: oklch(0.416 0.036 154.722);
--chart-4: oklch(0.356 0.012 155.852);
--chart-5: oklch(0.9 0.067 154.984);
}