Sharp is a shadcn/ui theme built around a purple primary color (#871daa) with teal accents (#1daa87). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#871daa) on a purple-tinted background (#0c070d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c070dblack |
| Foreground | #040105black | #f8f5f9whitesmoke |
| Card | #fcfcfcsnow | #0f0911black |
| Card foreground | #000000black | #fbf8fbsnow |
| Popover | #fcfcfcsnow | #0f0911black |
| Popover foreground | #000000black | #fbf8fbsnow |
| Primary | #871daadarkmagenta | #871daadarkmagenta |
| Primary foreground | #fdfbfewhite | #fdfbfewhite |
| Secondary | #aa871ddarkgoldenrod | #aa871ddarkgoldenrod |
| Secondary foreground | #000000black | #000000black |
| Muted | #dedcd3gainsboro | #2c2921darkslategray |
| Muted foreground | #615a48darkolivegreen | #b7b19edarkgray |
| Accent | #1daa87lightseagreen | #1daa87lightseagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c6460cchocolate | #f1560eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #871daadarkmagenta | #871daadarkmagenta |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.75:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 6.18:1 | AA |
| Muted text | 4.97:1 | AA |
| Accent | 2.93:1 | Fail |
| Destructive | 4.90:1 | AA |
| Text on background | 18.45:1 | AAA |
| Text on card | 18.68:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 6.18:1 | AA |
| Muted text | 6.76:1 | AA |
| Accent | 2.93:1 | Fail |
| Destructive | 3.45:1 | AA Large |
Paste this into your globals.css to use Sharp in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.08 0.028 320.63);
--muted: oklch(0.893 0.012 91.523);
--muted-foreground: oklch(0.47 0.03 91.799);
--popover: oklch(0.992 0 161.565);
--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.475 0.211 315.417);
--primary-foreground: oklch(0.99 0.006 317.754);
--secondary: oklch(0.639 0.122 88.53);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.66 0.124 170.298);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.566 0.173 39.877);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.475 0.211 315.417);
--chart-1: oklch(0.475 0.211 315.417);
--chart-2: oklch(0.639 0.122 88.53);
--chart-3: oklch(0.66 0.124 170.298);
--chart-4: oklch(0.674 0.129 88.455);
--chart-5: oklch(0.477 0.217 315.214);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.016 317.994);
--foreground: oklch(0.974 0.007 317.752);
--muted: oklch(0.282 0.016 91.774);
--muted-foreground: oklch(0.761 0.027 91.679);
--popover: oklch(0.151 0.019 317.594);
--popover-foreground: oklch(0.983 0.004 317.756);
--card: oklch(0.151 0.019 317.594);
--card-foreground: oklch(0.983 0.004 317.756);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.475 0.211 315.417);
--primary-foreground: oklch(0.99 0.006 317.754);
--secondary: oklch(0.639 0.122 88.53);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.66 0.124 170.298);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.655 0.203 39.558);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.475 0.211 315.417);
--chart-1: oklch(0.475 0.211 315.417);
--chart-2: oklch(0.639 0.122 88.53);
--chart-3: oklch(0.66 0.124 170.298);
--chart-4: oklch(0.674 0.129 88.455);
--chart-5: oklch(0.477 0.217 315.214);
}