Midline is a shadcn/ui theme built around a vivid deep orange primary color (#4a2b08) with vivid deep yellow accents (#484a08). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep orange primary (#4a2b08) on a neutral background (#070503).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070503black |
| Foreground | #040301black | #f9f7f5whitesmoke |
| Card | #ffffffwhite | #070503black |
| Card foreground | #040301black | #f9f7f5whitesmoke |
| Popover | #ffffffwhite | #070503black |
| Popover foreground | #040301black | #f9f7f5whitesmoke |
| Primary | #4a2b08maroon | #4a2b08maroon |
| Primary foreground | #f3c590burlywood | #f3c590burlywood |
| Secondary | #4a0a08maroon | #4a0a08maroon |
| Secondary foreground | #f39490darksalmon | #f39490darksalmon |
| Muted | #ebdbdbgainsboro | #241414black |
| Muted foreground | #6b5352dimgray | #ad9594rosybrown |
| Accent | #484a08darkolivegreen | #484a08darkolivegreen |
| Accent foreground | #e4ea34greenyellow | #e4ea34greenyellow |
| Destructive | #8f2a05saddlebrown | #f7571dorangered |
| Destructive foreground | #fdd7c9bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #4a2b08maroon | #4a2b08maroon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.61:1 | AAA |
| Text on card | 20.61:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 5.26:1 | AA |
| Accent | 7.15:1 | AAA |
| Destructive | 6.31:1 | AA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 7.06:1 | AAA |
| Muted text | 6.31:1 | AA |
| Accent | 7.15:1 | AAA |
| Destructive | 6.32:1 | AA |
Paste this into your globals.css to use Midline in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.096 0.014 81.382);
--muted: oklch(0.905 0.017 19.879);
--muted-foreground: oklch(0.466 0.032 20.657);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.096 0.014 81.382);
--card: oklch(1 0 180);
--card-foreground: oklch(0.096 0.014 81.382);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.321 0.065 64.284);
--primary-foreground: oklch(0.852 0.086 69.992);
--secondary: oklch(0.268 0.095 27.92);
--secondary-foreground: oklch(0.764 0.116 22.265);
--accent: oklch(0.394 0.082 111.672);
--accent-foreground: oklch(0.903 0.187 111.613);
--destructive: oklch(0.437 0.142 37.056);
--destructive-foreground: oklch(0.907 0.047 40.999);
--ring: oklch(0.321 0.065 64.284);
--chart-1: oklch(0.321 0.065 64.284);
--chart-2: oklch(0.268 0.095 27.92);
--chart-3: oklch(0.394 0.082 111.672);
--chart-4: oklch(0.299 0.108 28.103);
--chart-5: oklch(0.323 0.067 63.872);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.01 77.603);
--foreground: oklch(0.978 0.003 71.421);
--muted: oklch(0.214 0.026 21.635);
--muted-foreground: oklch(0.691 0.028 20.213);
--popover: oklch(0.119 0.01 77.603);
--popover-foreground: oklch(0.978 0.003 71.421);
--card: oklch(0.119 0.01 77.603);
--card-foreground: oklch(0.978 0.003 71.421);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.321 0.065 64.284);
--primary-foreground: oklch(0.852 0.086 69.992);
--secondary: oklch(0.268 0.095 27.92);
--secondary-foreground: oklch(0.764 0.116 22.265);
--accent: oklch(0.394 0.082 111.672);
--accent-foreground: oklch(0.903 0.187 111.613);
--destructive: oklch(0.666 0.206 37.816);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.321 0.065 64.284);
--chart-1: oklch(0.321 0.065 64.284);
--chart-2: oklch(0.268 0.095 27.92);
--chart-3: oklch(0.394 0.082 111.672);
--chart-4: oklch(0.299 0.108 28.103);
--chart-5: oklch(0.323 0.067 63.872);
}