Sharp is a shadcn/ui theme built around a near-white primary color (#fefdfb) with near-white accents (#fbfcfe). The light mode uses a neutral background (#fefdfb). Dark mode keeps the near-white primary (#fefdfb) on a yellow-tinted background (#0c0a03).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #0c0a03black |
| Foreground | #151105black | #fcfbf8snow |
| Card | #fefdfbsnow | #0c0a03black |
| Card foreground | #151105black | #fcfbf8snow |
| Popover | #fefdfbsnow | #0c0a03black |
| Popover foreground | #151105black | #fcfbf8snow |
| Primary | #fefdfbsnow | #fefdfbsnow |
| Primary foreground | #4e3f13darkolivegreen | #4e3f13darkolivegreen |
| Secondary | #fbfcfewhite | #fbfcfewhite |
| Secondary foreground | #2745a0darkslateblue | #2745a0darkslateblue |
| Muted | #eff0f6whitesmoke | #090b10black |
| Muted foreground | #434856darkslategray | #a9aebcdarkgray |
| Accent | #fbfcfewhite | #fbfcfewhite |
| Accent foreground | #2745a0darkslateblue | #2745a0darkslateblue |
| Destructive | #671609maroon | #ed462ctomato |
| Destructive foreground | #f8b5ablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fefdfbsnow | #fefdfbsnow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.55:1 | AAA |
| Text on card | 18.55:1 | AAA |
| Primary button | 10.11:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 8.04:1 | AAA |
| Accent | 8.34:1 | AAA |
| Destructive | 7.19:1 | AAA |
| Text on background | 19.14:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 10.11:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 8.87:1 | AAA |
| Accent | 8.34:1 | AAA |
| Destructive | 3.82:1 | AA Large |
Paste this into your globals.css to use Sharp in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 91.436);
--foreground: oklch(0.177 0.024 92.792);
--muted: oklch(0.957 0.008 271.334);
--muted-foreground: oklch(0.402 0.024 270.76);
--popover: oklch(0.995 0.003 91.436);
--popover-foreground: oklch(0.177 0.024 92.792);
--card: oklch(0.995 0.003 91.436);
--card-foreground: oklch(0.177 0.024 92.792);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.995 0.003 91.437);
--primary-foreground: oklch(0.375 0.064 90.268);
--secondary: oklch(0.99 0.003 271.379);
--secondary-foreground: oklch(0.425 0.152 266.049);
--accent: oklch(0.99 0.003 271.379);
--accent-foreground: oklch(0.425 0.152 266.049);
--destructive: oklch(0.34 0.117 31.668);
--destructive-foreground: oklch(0.832 0.08 28.726);
--ring: oklch(0.995 0.003 91.437);
--chart-1: oklch(0.995 0.003 91.437);
--chart-2: oklch(0.99 0.003 271.379);
--chart-3: oklch(0.99 0.003 271.379);
--chart-4: oklch(1.02 0.006 91.463);
--chart-5: oklch(0.995 0.003 91.439);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.017 95.792);
--foreground: oklch(0.988 0.004 91.444);
--muted: oklch(0.15 0.012 270.269);
--muted-foreground: oklch(0.751 0.02 271.139);
--popover: oklch(0.144 0.017 95.792);
--popover-foreground: oklch(0.988 0.004 91.444);
--card: oklch(0.144 0.017 95.792);
--card-foreground: oklch(0.988 0.004 91.444);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.995 0.003 91.437);
--primary-foreground: oklch(0.375 0.064 90.268);
--secondary: oklch(0.99 0.003 271.379);
--secondary-foreground: oklch(0.425 0.152 266.049);
--accent: oklch(0.99 0.003 271.379);
--accent-foreground: oklch(0.425 0.152 266.049);
--destructive: oklch(0.632 0.208 31.638);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.995 0.003 91.437);
--chart-1: oklch(0.995 0.003 91.437);
--chart-2: oklch(0.99 0.003 271.379);
--chart-3: oklch(0.99 0.003 271.379);
--chart-4: oklch(1.02 0.006 91.463);
--chart-5: oklch(0.995 0.003 91.439);
}