Sermon is a shadcn/ui theme built around a muted deep teal primary color (#324d47) with muted deep red accents (#4d3239). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep teal primary (#324d47) on a teal-tinted background (#05100d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05100dblack |
| Foreground | #000000black | #fcfdfdwhite |
| Card | #fcfcfcsnow | #061310black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #05100dblack |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #324d47darkslategray | #324d47darkslategray |
| Primary foreground | #d1e1ddgainsboro | #d1e1ddgainsboro |
| Secondary | #4d3239darkslategray | #4d3239darkslategray |
| Secondary foreground | #e1d1d4lightgrey | #e1d1d4lightgrey |
| Muted | #e7d5d9gainsboro | #2a181cblack |
| Muted foreground | #50494adarkslategray | #b6afb0darkgray |
| Accent | #4d3239darkslategray | #4d3239darkslategray |
| Accent foreground | #e1d1d4lightgrey | #e1d1d4lightgrey |
| Destructive | #913d0dsaddlebrown | #ee7c3acoral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #324d47darkslategray | #324d47darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 6.21:1 | AA |
| Accent | 7.76:1 | AAA |
| Destructive | 7.25:1 | AAA |
| Text on background | 19.02:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 7.81:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 7.57:1 | AAA |
Paste this into your globals.css to use Sermon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.888 0.021 1.622);
--muted-foreground: oklch(0.412 0.011 1.672);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.397 0.034 178.225);
--primary-foreground: oklch(0.896 0.018 180.389);
--secondary: oklch(0.352 0.04 4.016);
--secondary-foreground: oklch(0.874 0.018 1.545);
--accent: oklch(0.352 0.04 4.016);
--accent-foreground: oklch(0.874 0.018 1.545);
--destructive: oklch(0.468 0.127 44.953);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.397 0.034 178.225);
--chart-1: oklch(0.397 0.034 178.225);
--chart-2: oklch(0.352 0.04 4.016);
--chart-3: oklch(0.352 0.04 4.016);
--chart-4: oklch(0.38 0.044 4.081);
--chart-5: oklch(0.401 0.039 177.849);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.159 0.018 178.665);
--foreground: oklch(0.993 0.001 180.943);
--muted: oklch(0.235 0.031 4.493);
--muted-foreground: oklch(0.76 0.009 1.292);
--popover: oklch(0.159 0.018 178.665);
--popover-foreground: oklch(0.993 0.001 180.943);
--card: oklch(0.175 0.021 177.574);
--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.397 0.034 178.225);
--primary-foreground: oklch(0.896 0.018 180.389);
--secondary: oklch(0.352 0.04 4.016);
--secondary-foreground: oklch(0.874 0.018 1.545);
--accent: oklch(0.352 0.04 4.016);
--accent-foreground: oklch(0.874 0.018 1.545);
--destructive: oklch(0.705 0.161 47.826);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.397 0.034 178.225);
--chart-1: oklch(0.397 0.034 178.225);
--chart-2: oklch(0.352 0.04 4.016);
--chart-3: oklch(0.352 0.04 4.016);
--chart-4: oklch(0.38 0.044 4.081);
--chart-5: oklch(0.401 0.039 177.849);
}