dM Porfolio is a shadcn/ui theme built around a teal primary color (#218c63) with cyan accents (#21808c). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#218c63) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010403black |
| Foreground | #05140eblack | #f6f9f8whitesmoke |
| Card | #fcfcfcsnow | #030806black |
| Card foreground | #04100cblack | #f9fbfamintcream |
| Popover | #fcfcfcsnow | #030806black |
| Popover foreground | #04100cblack | #f9fbfamintcream |
| Primary | #218c63seagreen | #218c63seagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #218c2dforestgreen | #218c2dforestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e1e5e1gainsboro | #1a1e1ablack |
| Muted foreground | #465948darkslategray | #a6b9a9darkgray |
| Accent | #21808cdarkcyan | #21808cdarkcyan |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #873303saddlebrown | #e65705orangered |
| Destructive foreground | #fed5bepeachpuff | #ffffffwhite |
| Border | #eaeceblavender | #1f2322black |
| Input | #eaeceblavender | #1f2322black |
| Ring | #218c63seagreen | #218c63seagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.87:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 4.18:1 | AA Large |
| Secondary button | 4.30:1 | AA Large |
| Muted text | 5.93:1 | AA |
| Accent | 4.63:1 | AA |
| Destructive | 6.17:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 4.18:1 | AA Large |
| Secondary button | 4.30:1 | AA Large |
| Muted text | 8.12:1 | AAA |
| Accent | 4.63:1 | AA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use dM Porfolio in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.176 0.024 167.637);
--muted: oklch(0.918 0.007 149.041);
--muted-foreground: oklch(0.441 0.036 148.126);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.159 0.021 169.16);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.159 0.021 169.16);
--border: oklch(0.94 0.002 171.517);
--input: oklch(0.94 0.002 171.517);
--primary: oklch(0.572 0.114 162.281);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.563 0.163 144.543);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.552 0.086 208.152);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.435 0.126 43.473);
--destructive-foreground: oklch(0.902 0.055 51.802);
--ring: oklch(0.572 0.114 162.281);
--chart-1: oklch(0.572 0.114 162.281);
--chart-2: oklch(0.563 0.163 144.543);
--chart-3: oklch(0.552 0.086 208.152);
--chart-4: oklch(0.598 0.174 144.506);
--chart-5: oklch(0.579 0.118 161.861);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.011 171.829);
--foreground: oklch(0.979 0.004 171.475);
--muted: oklch(0.23 0.01 148.606);
--muted-foreground: oklch(0.768 0.031 148.64);
--popover: oklch(0.123 0.013 171.829);
--popover-foreground: oklch(0.986 0.003 171.515);
--card: oklch(0.123 0.013 171.829);
--card-foreground: oklch(0.986 0.003 171.515);
--border: oklch(0.251 0.005 170.959);
--input: oklch(0.251 0.005 170.959);
--primary: oklch(0.572 0.114 162.281);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.563 0.163 144.543);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.552 0.086 208.152);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.639 0.192 41.881);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.572 0.114 162.281);
--chart-1: oklch(0.572 0.114 162.281);
--chart-2: oklch(0.563 0.163 144.543);
--chart-3: oklch(0.552 0.086 208.152);
--chart-4: oklch(0.598 0.174 144.506);
--chart-5: oklch(0.579 0.118 161.861);
}