Sarcastic is a shadcn/ui theme built around a vivid purple primary color (#ed73db) with muted light purple accents (#d0bdce). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid purple primary (#ed73db) on a neutral background (#080207).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #080207black |
| Foreground | #0d020cblack | #ffffffwhite |
| Card | #fcf8fbsnow | #0c040ablack |
| Card foreground | #090108black | #ffffffwhite |
| Popover | #fcf8fbsnow | #0c040ablack |
| Popover foreground | #090108black | #ffffffwhite |
| Primary | #ed73dborchid | #ed73dborchid |
| Primary foreground | #290523black | #290523black |
| Secondary | #e3dee2gainsboro | #272026darkslategray |
| Secondary foreground | #4e414cdarkslategray | #c3b7c1silver |
| Muted | #e4d2e2gainsboro | #2d1b2adarkslategray |
| Muted foreground | #585657dimgray | #a9a7a9darkgray |
| Accent | #d0bdcethistle | #422e3fdarkslategray |
| Accent foreground | #362633darkslategray | #d9c9d7thistle |
| Destructive | #903b09saddlebrown | #f17127chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ed73dborchid | #ed73dborchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.84:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 7.22:1 | AAA |
| Muted text | 5.08:1 | AA |
| Accent | 8.02:1 | AAA |
| Destructive | 7.49:1 | AAA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 7.07:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 6.77:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 7.15:1 | AAA |
Paste this into your globals.css to use Sarcastic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 330.29);
--foreground: oklch(0.121 0.038 332.288);
--muted: oklch(0.884 0.028 330.652);
--muted-foreground: oklch(0.455 0.003 330.338);
--popover: oklch(0.983 0.007 330.335);
--popover-foreground: oklch(0.105 0.033 331.745);
--card: oklch(0.983 0.007 330.335);
--card-foreground: oklch(0.105 0.033 331.745);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.732 0.193 333.356);
--primary-foreground: oklch(0.201 0.073 334.527);
--secondary: oklch(0.905 0.009 330.37);
--secondary-foreground: oklch(0.393 0.025 331.039);
--accent: oklch(0.82 0.031 330.721);
--accent-foreground: oklch(0.293 0.032 331.6);
--destructive: oklch(0.461 0.128 44.327);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.732 0.193 333.356);
--chart-1: oklch(0.732 0.193 333.356);
--chart-2: oklch(0.905 0.009 330.37);
--chart-3: oklch(0.82 0.031 330.721);
--chart-4: oklch(0.929 0.006 330.336);
--chart-5: oklch(0.732 0.199 333.46);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.022 331.259);
--foreground: oklch(1 0 180);
--muted: oklch(0.251 0.038 332.084);
--muted-foreground: oklch(0.732 0.003 330.297);
--popover: oklch(0.124 0.025 331.494);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.124 0.025 331.494);
--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.732 0.193 333.356);
--primary-foreground: oklch(0.201 0.073 334.527);
--secondary: oklch(0.255 0.014 330.929);
--secondary-foreground: oklch(0.792 0.019 330.559);
--accent: oklch(0.331 0.041 331.737);
--accent-foreground: oklch(0.853 0.026 330.64);
--destructive: oklch(0.692 0.177 46.113);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.732 0.193 333.356);
--chart-1: oklch(0.732 0.193 333.356);
--chart-2: oklch(0.255 0.014 330.929);
--chart-3: oklch(0.331 0.041 331.737);
--chart-4: oklch(0.286 0.016 330.964);
--chart-5: oklch(0.732 0.199 333.46);
}