Morning is a shadcn/ui theme built around a near-white primary color (#ffffff) with neutral gray accents (#e1e0e0). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#ffffff) on a red-tinted background (#0c0303).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0303black |
| Foreground | #090202black | #f9f6f6whitesmoke |
| Card | #fcfcfcsnow | #100404black |
| Card foreground | #040101black | #fbf9f9snow |
| Popover | #ffffffwhite | #0c0303black |
| Popover foreground | #090202black | #f9f6f6whitesmoke |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #e1e0e0gainsboro | #241919black |
| Secondary foreground | #484747darkslategray | #c4ababdarkgray |
| Muted | #ecdfdfgainsboro | #201313black |
| Muted foreground | #4d4c4cdarkslategray | #b3b2b2darkgray |
| Accent | #e1e0e0gainsboro | #241919black |
| Accent foreground | #484747darkslategray | #c4ababdarkgray |
| Destructive | #ce4003chocolate | #f64c04orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.56:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.02:1 | AAA |
| Muted text | 6.61:1 | AA |
| Accent | 7.02:1 | AAA |
| Destructive | 4.81:1 | AA |
| Text on background | 18.96:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 8.51:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 3.51:1 | AA Large |
Paste this into your globals.css to use Morning in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.1 0.023 22.07);
--muted: oklch(0.915 0.013 17.402);
--muted-foreground: oklch(0.417 0.002 17.238);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.023 22.07);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.08 0.018 22.07);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.907 0.001 17.17);
--secondary-foreground: oklch(0.398 0.002 17.237);
--accent: oklch(0.907 0.001 17.17);
--accent-foreground: oklch(0.398 0.002 17.237);
--destructive: oklch(0.572 0.187 37.676);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.907 0.001 17.17);
--chart-3: oklch(0.907 0.001 17.17);
--chart-4: oklch(0.931 0 17.167);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.022 21.037);
--foreground: oklch(0.975 0.004 17.225);
--muted: oklch(0.205 0.02 18.969);
--muted-foreground: oklch(0.764 0.002 17.196);
--popover: oklch(0.118 0.022 21.037);
--popover-foreground: oklch(0.975 0.004 17.225);
--card: oklch(0.131 0.026 21.239);
--card-foreground: oklch(0.983 0.003 17.202);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.228 0.017 18.451);
--secondary-foreground: oklch(0.764 0.028 17.787);
--accent: oklch(0.228 0.017 18.451);
--accent-foreground: oklch(0.764 0.028 17.787);
--destructive: oklch(0.653 0.216 37.32);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.228 0.017 18.451);
--chart-3: oklch(0.228 0.017 18.451);
--chart-4: oklch(0.258 0.02 18.553);
--chart-5: oklch(1 0 180);
}