smg is a shadcn/ui theme built around a muted light green primary color (#d5e1db) with muted light green accents (#cddbd3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#d5e1db) on a green-tinted background (#050b07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050b07black |
| Foreground | #000000black | #f7f8f7whitesmoke |
| Card | #ffffffwhite | #050b07black |
| Card foreground | #000000black | #f7f8f7whitesmoke |
| Popover | #ffffffwhite | #050b07black |
| Popover foreground | #000000black | #f7f8f7whitesmoke |
| Primary | #d5e1dbgainsboro | #d5e1dbgainsboro |
| Primary foreground | #374e41darkslategray | #374e41darkslategray |
| Secondary | #e3e8e5gainsboro | #212623black |
| Secondary foreground | #46534cdarkslategray | #b8c1bcsilver |
| Muted | #d9e3ddgainsboro | #1c2621black |
| Muted foreground | #4d514fdarkslategray | #aeb2b0darkgray |
| Accent | #cddbd3lightgrey | #2a3730darkslategray |
| Accent foreground | #31443adarkslategray | #c2d0c9silver |
| Destructive | #ad2810firebrick | #d73114firebrick |
| Destructive foreground | #fef3f1seashell | #ffffffwhite |
| Border | #eef2f0whitesmoke | #1b221eblack |
| Input | #eef2f0whitesmoke | #1b221eblack |
| Ring | #d5e1dbgainsboro | #d5e1dbgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.72:1 | AA |
| Secondary button | 6.50:1 | AA |
| Muted text | 6.13:1 | AA |
| Accent | 7.24:1 | AAA |
| Destructive | 6.28:1 | AA |
| Text on background | 18.68:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 6.72:1 | AA |
| Secondary button | 8.31:1 | AAA |
| Muted text | 7.23:1 | AAA |
| Accent | 7.81:1 | AAA |
| Destructive | 4.84:1 | AA |
Paste this into your globals.css to use smg in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.907 0.014 162.238);
--muted-foreground: oklch(0.431 0.007 162.188);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.956 0.005 162.496);
--input: oklch(0.956 0.005 162.496);
--primary: oklch(0.9 0.016 162.179);
--primary-foreground: oklch(0.4 0.035 160.237);
--secondary: oklch(0.926 0.006 162.459);
--secondary-foreground: oklch(0.429 0.021 161.33);
--accent: oklch(0.877 0.018 162.099);
--accent-foreground: oklch(0.367 0.03 160.428);
--destructive: oklch(0.49 0.173 32.182);
--destructive-foreground: oklch(0.972 0.012 29.512);
--ring: oklch(0.9 0.016 162.179);
--chart-1: oklch(0.9 0.016 162.179);
--chart-2: oklch(0.926 0.006 162.459);
--chart-3: oklch(0.877 0.018 162.099);
--chart-4: oklch(0.948 0.004 162.51);
--chart-5: oklch(0.901 0.019 162.101);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.014 162.585);
--foreground: oklch(0.978 0.002 162.569);
--muted: oklch(0.258 0.018 160.712);
--muted-foreground: oklch(0.76 0.006 162.407);
--popover: oklch(0.139 0.014 162.585);
--popover-foreground: oklch(0.978 0.002 162.569);
--card: oklch(0.139 0.014 162.585);
--card-foreground: oklch(0.978 0.002 162.569);
--border: oklch(0.244 0.013 161.224);
--input: oklch(0.244 0.013 161.224);
--primary: oklch(0.9 0.016 162.179);
--primary-foreground: oklch(0.4 0.035 160.237);
--secondary: oklch(0.263 0.009 161.768);
--secondary-foreground: oklch(0.803 0.012 162.231);
--accent: oklch(0.322 0.021 160.909);
--accent-foreground: oklch(0.846 0.018 162.072);
--destructive: oklch(0.574 0.205 32.104);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.9 0.016 162.179);
--chart-1: oklch(0.9 0.016 162.179);
--chart-2: oklch(0.263 0.009 161.768);
--chart-3: oklch(0.322 0.021 160.909);
--chart-4: oklch(0.296 0.01 161.723);
--chart-5: oklch(0.901 0.019 162.101);
}