Physical is a shadcn/ui theme built around a muted light blue primary color (#f3f4f6) with muted light indigo accents (#f4f3f6). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the muted light blue primary (#f3f4f6) on a blue-tinted background (#04060b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #04060bblack |
| Foreground | #010409black | #f9f9fbghostwhite |
| Card | #f8f9fcghostwhite | #06090fblack |
| Card foreground | #010204black | #fcfcfdwhite |
| Popover | #fcfcfdwhite | #04060bblack |
| Popover foreground | #010409black | #f9f9fbghostwhite |
| Primary | #f3f4f6whitesmoke | #f3f4f6whitesmoke |
| Primary foreground | #4e576adimgray | #4e576adimgray |
| Secondary | #f3f6f6whitesmoke | #f3f6f6whitesmoke |
| Secondary foreground | #232d2fdarkslategray | #232d2fdarkslategray |
| Muted | #e6e9ealavender | #151819black |
| Muted foreground | #526266dimgray | #99aaaddarkgray |
| Accent | #f4f3f6whitesmoke | #f4f3f6whitesmoke |
| Accent foreground | #534e6adimgray | #534e6adimgray |
| Destructive | #a22a02firebrick | #e83c02orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f3f4f6whitesmoke | #f3f4f6whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.03:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 6.60:1 | AA |
| Secondary button | 12.97:1 | AAA |
| Muted text | 5.23:1 | AA |
| Accent | 7.13:1 | AAA |
| Destructive | 7.35:1 | AAA |
| Text on background | 19.23:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 6.60:1 | AA |
| Secondary button | 12.97:1 | AAA |
| Muted text | 7.38:1 | AAA |
| Accent | 7.13:1 | AAA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Physical in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 265.999);
--foreground: oklch(0.103 0.019 255.199);
--muted: oklch(0.933 0.004 212.664);
--muted-foreground: oklch(0.484 0.021 212.804);
--popover: oklch(0.991 0.002 265.999);
--popover-foreground: oklch(0.103 0.019 255.199);
--card: oklch(0.983 0.003 265.991);
--card-foreground: oklch(0.082 0.015 255.199);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.968 0.003 265.993);
--primary-foreground: oklch(0.456 0.033 265.533);
--secondary: oklch(0.971 0.003 212.663);
--secondary-foreground: oklch(0.287 0.014 212.853);
--accent: oklch(0.966 0.004 294.745);
--accent-foreground: oklch(0.44 0.045 292.853);
--destructive: oklch(0.471 0.162 35.574);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.968 0.003 265.993);
--chart-1: oklch(0.968 0.003 265.993);
--chart-2: oklch(0.971 0.003 212.663);
--chart-3: oklch(0.966 0.004 294.745);
--chart-4: oklch(0.993 0.001 212.662);
--chart-5: oklch(0.967 0.004 265.99);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.013 260.169);
--foreground: oklch(0.983 0.002 265.997);
--muted: oklch(0.207 0.005 212.715);
--muted-foreground: oklch(0.725 0.019 212.717);
--popover: oklch(0.124 0.013 260.169);
--popover-foreground: oklch(0.983 0.002 265.997);
--card: oklch(0.137 0.015 261.727);
--card-foreground: oklch(0.992 0.001 266.002);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.968 0.003 265.993);
--primary-foreground: oklch(0.456 0.033 265.533);
--secondary: oklch(0.971 0.003 212.663);
--secondary-foreground: oklch(0.287 0.014 212.853);
--accent: oklch(0.966 0.004 294.745);
--accent-foreground: oklch(0.44 0.045 292.853);
--destructive: oklch(0.613 0.215 34.82);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.968 0.003 265.993);
--chart-1: oklch(0.968 0.003 265.993);
--chart-2: oklch(0.971 0.003 212.663);
--chart-3: oklch(0.966 0.004 294.745);
--chart-4: oklch(0.993 0.001 212.662);
--chart-5: oklch(0.967 0.004 265.99);
}