Sink is a shadcn/ui theme built around a deep purple primary color (#5b2950) with deep pink accents (#5b2937). The light mode uses a neutral background (#fefbfd). Dark mode keeps the deep purple primary (#5b2950) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fefbfdsnow | #000000black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fefbfdsnow | #000000black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #5b2950darkslategray | #5b2950darkslategray |
| Primary foreground | #e9cee3gainsboro | #e9cee3gainsboro |
| Secondary | #4e295bdarkslategray | #4e295bdarkslategray |
| Secondary foreground | #e2cee9gainsboro | #e2cee9gainsboro |
| Muted | #e3d3e9gainsboro | #26162cblack |
| Muted foreground | #5e4f64dimgray | #ab9bb0darkgray |
| Accent | #5b2937darkslategray | #5b2937darkslategray |
| Accent foreground | #e9ced5gainsboro | #e9ced5gainsboro |
| Destructive | #ae4c13sienna | #e6641achocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5b2950darkslategray | #5b2950darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.44:1 | AAA |
| Text on card | 20.44:1 | AAA |
| Primary button | 7.64:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 5.30:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 5.44:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.64:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 6.50:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 6.19:1 | AA |
Paste this into your globals.css to use Sink in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 333.304);
--foreground: oklch(0 0 0);
--muted: oklch(0.886 0.034 317.101);
--muted-foreground: oklch(0.45 0.04 316.987);
--popover: oklch(0.991 0.004 333.304);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.004 333.304);
--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.365 0.091 336.96);
--primary-foreground: oklch(0.879 0.041 333.973);
--secondary: oklch(0.353 0.094 316.378);
--secondary-foreground: oklch(0.875 0.043 317.079);
--accent: oklch(0.355 0.075 4.816);
--accent-foreground: oklch(0.875 0.032 359.797);
--destructive: oklch(0.537 0.143 45.248);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.365 0.091 336.96);
--chart-1: oklch(0.365 0.091 336.96);
--chart-2: oklch(0.353 0.094 316.378);
--chart-3: oklch(0.355 0.075 4.816);
--chart-4: oklch(0.379 0.103 316.354);
--chart-5: oklch(0.366 0.097 337.226);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.233 0.046 316.665);
--muted-foreground: oklch(0.71 0.035 317.076);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.365 0.091 336.96);
--primary-foreground: oklch(0.879 0.041 333.973);
--secondary: oklch(0.353 0.094 316.378);
--secondary-foreground: oklch(0.875 0.043 317.079);
--accent: oklch(0.355 0.075 4.816);
--accent-foreground: oklch(0.875 0.032 359.797);
--destructive: oklch(0.656 0.178 44.803);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.365 0.091 336.96);
--chart-1: oklch(0.365 0.091 336.96);
--chart-2: oklch(0.353 0.094 316.378);
--chart-3: oklch(0.355 0.075 4.816);
--chart-4: oklch(0.379 0.103 316.354);
--chart-5: oklch(0.366 0.097 337.226);
}