Excerpt is a shadcn/ui theme built around a vivid deep teal primary color (#013d2c) with muted light teal accents (#cddad6). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep teal primary (#013d2c) on a neutral background (#030706).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030706black |
| Foreground | #05100dblack | #ffffffwhite |
| Card | #fcfcfcsnow | #050a09black |
| Card foreground | #030c09black | #ffffffwhite |
| Popover | #fcfcfcsnow | #050a09black |
| Popover foreground | #030c09black | #ffffffwhite |
| Primary | #013d2cdarkgreen | #013d2cdarkgreen |
| Primary foreground | #0dfdb9mediumspringgreen | #0dfdb9mediumspringgreen |
| Secondary | #cddad6lightgrey | #1a1e1dblack |
| Secondary foreground | #32433edarkslategray | #b0bab7silver |
| Muted | #d4e7e2gainsboro | #182b25darkslategray |
| Muted foreground | #3e4241darkslategray | #bdc1c0silver |
| Accent | #cddad6lightgrey | #1a1e1dblack |
| Accent foreground | #32433edarkslategray | #b0bab7silver |
| Destructive | #91180ddarkred | #ee5244tomato |
| Destructive foreground | #fbd8d5mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #013d2cdarkgreen | #013d2cdarkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.33:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 9.30:1 | AAA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 7.95:1 | AAA |
| Accent | 7.28:1 | AAA |
| Destructive | 6.79:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 9.30:1 | AAA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 8.21:1 | AAA |
| Accent | 8.45:1 | AAA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Excerpt in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.159 0.019 175.273);
--muted: oklch(0.914 0.022 177.012);
--muted-foreground: oklch(0.374 0.005 177.289);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.143 0.017 177.358);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.143 0.017 177.358);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.318 0.065 167.381);
--primary-foreground: oklch(0.88 0.184 164.904);
--secondary: oklch(0.878 0.015 177.216);
--secondary-foreground: oklch(0.368 0.024 175.655);
--accent: oklch(0.878 0.015 177.216);
--accent-foreground: oklch(0.368 0.024 175.655);
--destructive: oklch(0.424 0.157 30.009);
--destructive-foreground: oklch(0.911 0.039 24.053);
--ring: oklch(0.318 0.065 167.381);
--chart-1: oklch(0.318 0.065 167.381);
--chart-2: oklch(0.878 0.015 177.216);
--chart-3: oklch(0.878 0.015 177.216);
--chart-4: oklch(0.9 0.012 177.317);
--chart-5: oklch(0.321 0.066 167.156);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.009 177.806);
--foreground: oklch(1 0 180);
--muted: oklch(0.27 0.027 174.285);
--muted-foreground: oklch(0.808 0.004 177.553);
--popover: oklch(0.138 0.01 177.806);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.01 177.806);
--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.318 0.065 167.381);
--primary-foreground: oklch(0.88 0.184 164.904);
--secondary: oklch(0.231 0.006 176.911);
--secondary-foreground: oklch(0.781 0.012 177.256);
--accent: oklch(0.231 0.006 176.911);
--accent-foreground: oklch(0.781 0.012 177.256);
--destructive: oklch(0.65 0.193 28.699);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.318 0.065 167.381);
--chart-1: oklch(0.318 0.065 167.381);
--chart-2: oklch(0.231 0.006 176.911);
--chart-3: oklch(0.231 0.006 176.911);
--chart-4: oklch(0.264 0.008 176.85);
--chart-5: oklch(0.321 0.066 167.156);
}