Physical is a shadcn/ui theme built around a muted green primary color (#528961) with neutral gray accents (#dce0dd). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the muted green primary (#528961) on a green-tinted background (#050b06).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf9mintcream | #050b06black |
| Foreground | #051409black | #fcfdfcwhite |
| Card | #f7fdf9mintcream | #050b06black |
| Card foreground | #051409black | #fcfdfcwhite |
| Popover | #f7fdf9mintcream | #050b06black |
| Popover foreground | #051409black | #fcfdfcwhite |
| Primary | #528961seagreen | #528961seagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dce0ddgainsboro | #323433darkslategray |
| Secondary foreground | #414943darkslategray | #cbcdcclightgrey |
| Muted | #ebefecwhitesmoke | #101411black |
| Muted foreground | #4b6251darkslategray | #9db4a3darkgray |
| Accent | #dce0ddgainsboro | #323433darkslategray |
| Accent foreground | #414943darkslategray | #cbcdcclightgrey |
| Destructive | #80150amaroon | #ef3d2aorangered |
| Destructive foreground | #fac7c1pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #528961seagreen | #528961seagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.31:1 | AAA |
| Text on card | 18.31:1 | AAA |
| Primary button | 4.10:1 | AA Large |
| Secondary button | 6.96:1 | AA |
| Muted text | 5.72:1 | AA |
| Accent | 6.96:1 | AA |
| Destructive | 6.88:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 4.10:1 | AA Large |
| Secondary button | 7.87:1 | AAA |
| Muted text | 8.40:1 | AAA |
| Accent | 7.87:1 | AAA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use Physical in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.008 154.381);
--foreground: oklch(0.174 0.032 151.841);
--muted: oklch(0.949 0.006 154.412);
--muted-foreground: oklch(0.472 0.038 153.01);
--popover: oklch(0.988 0.008 154.381);
--popover-foreground: oklch(0.174 0.032 151.841);
--card: oklch(0.988 0.008 154.381);
--card-foreground: oklch(0.174 0.032 151.841);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.581 0.085 151.531);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.902 0.006 154.414);
--secondary-foreground: oklch(0.396 0.015 153.853);
--accent: oklch(0.902 0.006 154.414);
--accent-foreground: oklch(0.396 0.015 153.853);
--destructive: oklch(0.389 0.143 30.513);
--destructive-foreground: oklch(0.873 0.059 25.689);
--ring: oklch(0.581 0.085 151.531);
--chart-1: oklch(0.581 0.085 151.531);
--chart-2: oklch(0.902 0.006 154.414);
--chart-3: oklch(0.902 0.006 154.414);
--chart-4: oklch(0.925 0.004 154.443);
--chart-5: oklch(0.587 0.094 151.18);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.016 154.058);
--foreground: oklch(0.993 0.001 154.514);
--muted: oklch(0.185 0.009 153.617);
--muted-foreground: oklch(0.747 0.034 153.691);
--popover: oklch(0.139 0.016 154.058);
--popover-foreground: oklch(0.993 0.001 154.514);
--card: oklch(0.139 0.016 154.058);
--card-foreground: oklch(0.993 0.001 154.514);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.581 0.085 151.531);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.322 0.002 154.422);
--secondary-foreground: oklch(0.846 0.002 154.496);
--accent: oklch(0.322 0.002 154.422);
--accent-foreground: oklch(0.846 0.002 154.496);
--destructive: oklch(0.628 0.217 30.343);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.581 0.085 151.531);
--chart-1: oklch(0.581 0.085 151.531);
--chart-2: oklch(0.322 0.002 154.422);
--chart-3: oklch(0.322 0.002 154.422);
--chart-4: oklch(0.352 0.002 154.419);
--chart-5: oklch(0.587 0.094 151.18);
}