Mid-course is a shadcn/ui theme built around a muted light pink primary color (#f1eeef) with muted light teal accents (#eef1f0). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light pink primary (#f1eeef) on a neutral background (#040102).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040102black |
| Foreground | #110307black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #080304black |
| Card foreground | #0d0205black | #ffffffwhite |
| Popover | #ffffffwhite | #040102black |
| Popover foreground | #110307black | #fdfcfcsnow |
| Primary | #f1eeefwhitesmoke | #f1eeefwhitesmoke |
| Primary foreground | #5f4f54dimgray | #5f4f54dimgray |
| Secondary | #eef1f0whitesmoke | #eef1f0whitesmoke |
| Secondary foreground | #202725darkslategray | #202725darkslategray |
| Muted | #cee3ddgainsboro | #1c312bdarkslategray |
| Muted foreground | #5c6a66dimgray | #95a39edarkgray |
| Accent | #eef1f0whitesmoke | #eef1f0whitesmoke |
| Accent foreground | #202725darkslategray | #202725darkslategray |
| Destructive | #ac4006saddlebrown | #f76618chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f1eeefwhitesmoke | #f1eeefwhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 6.68:1 | AA |
| Secondary button | 13.42:1 | AAA |
| Muted text | 4.23:1 | AA Large |
| Accent | 13.42:1 | AAA |
| Destructive | 5.99:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.52:1 | AAA |
| Primary button | 6.68:1 | AA |
| Secondary button | 13.42:1 | AAA |
| Muted text | 5.26:1 | AA |
| Accent | 13.42:1 | AAA |
| Destructive | 6.84:1 | AA |
Paste this into your globals.css to use Mid-course in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.033 358.38);
--muted: oklch(0.9 0.024 175.849);
--muted-foreground: oklch(0.513 0.018 175.591);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.131 0.033 358.38);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.117 0.029 356.764);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.952 0.003 356.753);
--primary-foreground: oklch(0.445 0.022 358.041);
--secondary: oklch(0.956 0.003 176.563);
--secondary-foreground: oklch(0.265 0.01 175.535);
--accent: oklch(0.956 0.003 176.563);
--accent-foreground: oklch(0.265 0.01 175.535);
--destructive: oklch(0.516 0.153 41.842);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.952 0.003 356.753);
--chart-1: oklch(0.952 0.003 356.753);
--chart-2: oklch(0.956 0.003 176.563);
--chart-3: oklch(0.956 0.003 176.563);
--chart-4: oklch(0.978 0.002 176.612);
--chart-5: oklch(0.952 0.004 356.785);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.013 356.419);
--foreground: oklch(0.991 0.002 356.715);
--muted: oklch(0.293 0.03 173.156);
--muted-foreground: oklch(0.702 0.017 175.942);
--popover: oklch(0.085 0.013 356.419);
--popover-foreground: oklch(0.991 0.002 356.715);
--card: oklch(0.107 0.016 356.419);
--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.952 0.003 356.753);
--primary-foreground: oklch(0.445 0.022 358.041);
--secondary: oklch(0.956 0.003 176.563);
--secondary-foreground: oklch(0.265 0.01 175.535);
--accent: oklch(0.956 0.003 176.563);
--accent-foreground: oklch(0.265 0.01 175.535);
--destructive: oklch(0.683 0.194 42.956);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.952 0.003 356.753);
--chart-1: oklch(0.952 0.003 356.753);
--chart-2: oklch(0.956 0.003 176.563);
--chart-3: oklch(0.956 0.003 176.563);
--chart-4: oklch(0.978 0.002 176.612);
--chart-5: oklch(0.952 0.004 356.785);
}