Mortise is a shadcn/ui theme built around a deep cyan primary color (#0d2530) with deep orange accents (#30180d). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the deep cyan primary (#0d2530) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfcghostwhite | #000000black |
| Foreground | #010709black | #fcfdfdwhite |
| Card | #f4f8fawhitesmoke | #030303black |
| Card foreground | #010304black | #ffffffwhite |
| Popover | #f4f8fawhitesmoke | #030303black |
| Popover foreground | #010304black | #ffffffwhite |
| Primary | #0d2530black | #0d2530black |
| Primary foreground | #90c6e0skyblue | #90c6e0skyblue |
| Secondary | #30180dblack | #30180dblack |
| Secondary foreground | #e0a990burlywood | #e0a990burlywood |
| Muted | #efe2dcantiquewhite | #231610black |
| Muted foreground | #47413edarkslategray | #c1bbb8silver |
| Accent | #30180dblack | #30180dblack |
| Accent foreground | #e0a990burlywood | #e0a990burlywood |
| Destructive | #782002maroon | #fb602dtomato |
| Destructive foreground | #fdc3aflightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0d2530black | #0d2530black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.45:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 8.56:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 7.91:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 6.78:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.56:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 9.27:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 6.82:1 | AA |
Paste this into your globals.css to use Mortise in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.003 226.899);
--foreground: oklch(0.118 0.016 219.285);
--muted: oklch(0.921 0.017 46.658);
--muted-foreground: oklch(0.379 0.01 46.574);
--popover: oklch(0.978 0.005 226.921);
--popover-foreground: oklch(0.094 0.013 219.285);
--card: oklch(0.978 0.005 226.921);
--card-foreground: oklch(0.094 0.013 219.285);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.251 0.036 230.553);
--primary-foreground: oklch(0.798 0.067 228.352);
--secondary: oklch(0.24 0.042 45.07);
--secondary-foreground: oklch(0.779 0.074 45.987);
--accent: oklch(0.24 0.042 45.07);
--accent-foreground: oklch(0.779 0.074 45.987);
--destructive: oklch(0.383 0.127 36.508);
--destructive-foreground: oklch(0.864 0.073 39.228);
--ring: oklch(0.251 0.036 230.553);
--chart-1: oklch(0.251 0.036 230.553);
--chart-2: oklch(0.24 0.042 45.07);
--chart-3: oklch(0.24 0.042 45.07);
--chart-4: oklch(0.273 0.051 44.888);
--chart-5: oklch(0.252 0.037 230.855);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 226.872);
--muted: oklch(0.215 0.025 45.81);
--muted-foreground: oklch(0.796 0.008 46.74);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.251 0.036 230.553);
--primary-foreground: oklch(0.798 0.067 228.352);
--secondary: oklch(0.24 0.042 45.07);
--secondary-foreground: oklch(0.779 0.074 45.987);
--accent: oklch(0.24 0.042 45.07);
--accent-foreground: oklch(0.779 0.074 45.987);
--destructive: oklch(0.684 0.199 37.76);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.251 0.036 230.553);
--chart-1: oklch(0.251 0.036 230.553);
--chart-2: oklch(0.24 0.042 45.07);
--chart-3: oklch(0.24 0.042 45.07);
--chart-4: oklch(0.273 0.051 44.888);
--chart-5: oklch(0.252 0.037 230.855);
}