Midline is a shadcn/ui theme built around a light orange primary color (#e5d5cc) with light violet accents (#d5cce5). The light mode uses a neutral background (#fefcfb). Dark mode keeps the light orange primary (#e5d5cc) on a neutral background (#070503).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #070503black |
| Foreground | #0c0603black | #fcf9f8snow |
| Card | #fefcfbsnow | #070503black |
| Card foreground | #0c0603black | #fcf9f8snow |
| Popover | #fefcfbsnow | #070503black |
| Popover foreground | #0c0603black | #fcf9f8snow |
| Primary | #e5d5cclightgrey | #e5d5cclightgrey |
| Primary foreground | #55392bdarkolivegreen | #55392bdarkolivegreen |
| Secondary | #cce5d5lightgrey | #cce5d5lightgrey |
| Secondary foreground | #2b5539darkslategray | #2b5539darkslategray |
| Muted | #e2eee6gainsboro | #111d15black |
| Muted foreground | #555e58dimgray | #a1aaa4darkgray |
| Accent | #d5cce5thistle | #d5cce5thistle |
| Accent foreground | #392b55darkslategray | #392b55darkslategray |
| Destructive | #8c310dsaddlebrown | #e55015chocolate |
| Destructive foreground | #fbdcd0bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e5d5cclightgrey | #e5d5cclightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.67:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 6.41:1 | AA |
| Muted text | 5.64:1 | AA |
| Accent | 8.24:1 | AAA |
| Destructive | 6.34:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 7.34:1 | AAA |
| Secondary button | 6.41:1 | AA |
| Muted text | 7.25:1 | AAA |
| Accent | 8.24:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Midline in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 50.62);
--foreground: oklch(0.132 0.016 59.091);
--muted: oklch(0.939 0.018 157.587);
--muted-foreground: oklch(0.471 0.014 157.325);
--popover: oklch(0.992 0.003 50.62);
--popover-foreground: oklch(0.132 0.016 59.091);
--card: oklch(0.992 0.003 50.62);
--card-foreground: oklch(0.132 0.016 59.091);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.884 0.022 50.35);
--primary-foreground: oklch(0.374 0.046 49.173);
--secondary: oklch(0.9 0.035 157.149);
--secondary-foreground: oklch(0.41 0.066 153.857);
--accent: oklch(0.86 0.036 301.561);
--accent-foreground: oklch(0.326 0.074 298.349);
--destructive: oklch(0.441 0.132 39.091);
--destructive-foreground: oklch(0.917 0.038 42.815);
--ring: oklch(0.884 0.022 50.35);
--chart-1: oklch(0.884 0.022 50.35);
--chart-2: oklch(0.9 0.035 157.149);
--chart-3: oklch(0.86 0.036 301.561);
--chart-4: oklch(0.92 0.028 157.338);
--chart-5: oklch(0.884 0.024 50.323);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.115 0.008 55.391);
--foreground: oklch(0.985 0.003 50.619);
--muted: oklch(0.217 0.024 155.321);
--muted-foreground: oklch(0.73 0.013 157.606);
--popover: oklch(0.115 0.008 55.391);
--popover-foreground: oklch(0.985 0.003 50.619);
--card: oklch(0.115 0.008 55.391);
--card-foreground: oklch(0.985 0.003 50.619);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.884 0.022 50.35);
--primary-foreground: oklch(0.374 0.046 49.173);
--secondary: oklch(0.9 0.035 157.149);
--secondary-foreground: oklch(0.41 0.066 153.857);
--accent: oklch(0.86 0.036 301.561);
--accent-foreground: oklch(0.326 0.074 298.349);
--destructive: oklch(0.628 0.195 38.427);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.884 0.022 50.35);
--chart-1: oklch(0.884 0.022 50.35);
--chart-2: oklch(0.9 0.035 157.149);
--chart-3: oklch(0.86 0.036 301.561);
--chart-4: oklch(0.92 0.028 157.338);
--chart-5: oklch(0.884 0.024 50.323);
}