Screw-up is a shadcn/ui theme built around a vivid purple primary color (#ec51dc) with vivid green accents (#51ec60). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid purple primary (#ec51dc) on a neutral background (#040104).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #040104black |
| Foreground | #10050eblack | #faf9fasnow |
| Card | #fcf7fcsnow | #080307black |
| Card foreground | #0c040bblack | #fdfcfdwhite |
| Popover | #fcf7fcsnow | #080307black |
| Popover foreground | #0c040bblack | #fdfcfdwhite |
| Primary | #ec51dcorchid | #ec51dcorchid |
| Primary foreground | #090108black | #090108black |
| Secondary | #51ec60mediumseagreen | #51ec60mediumseagreen |
| Secondary foreground | #010902black | #010902black |
| Muted | #e5ebe5gainsboro | #141a14black |
| Muted foreground | #525653darkslategray | #a9adaadarkgray |
| Accent | #51ec60mediumseagreen | #51ec60mediumseagreen |
| Accent foreground | #010902black | #010902black |
| Destructive | #6f160cmaroon | #eb5342tomato |
| Destructive foreground | #f7bcb5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ec51dcorchid | #ec51dcorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 12.93:1 | AAA |
| Muted text | 6.17:1 | AA |
| Accent | 12.93:1 | AAA |
| Destructive | 7.16:1 | AAA |
| Text on background | 19.75:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 6.62:1 | AA |
| Secondary button | 12.93:1 | AAA |
| Muted text | 7.77:1 | AAA |
| Accent | 12.93:1 | AAA |
| Destructive | 3.59:1 | AA Large |
Paste this into your globals.css to use Screw-up in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 328.638);
--foreground: oklch(0.139 0.03 330.389);
--muted: oklch(0.934 0.01 148.47);
--muted-foreground: oklch(0.448 0.006 148.431);
--popover: oklch(0.982 0.008 328.684);
--popover-foreground: oklch(0.125 0.026 329.947);
--card: oklch(0.982 0.008 328.684);
--card-foreground: oklch(0.125 0.026 329.947);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.692 0.241 332.108);
--primary-foreground: oklch(0.105 0.036 330.409);
--secondary: oklch(0.832 0.224 144.77);
--secondary-foreground: oklch(0.125 0.031 146.778);
--accent: oklch(0.832 0.224 144.77);
--accent-foreground: oklch(0.125 0.031 146.778);
--destructive: oklch(0.355 0.125 30.409);
--destructive-foreground: oklch(0.847 0.07 25.874);
--ring: oklch(0.692 0.241 332.108);
--chart-1: oklch(0.692 0.241 332.108);
--chart-2: oklch(0.832 0.224 144.77);
--chart-3: oklch(0.832 0.224 144.77);
--chart-4: oklch(0.841 0.211 145.133);
--chart-5: oklch(0.694 0.248 332.204);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.017 329.717);
--foreground: oklch(0.984 0.002 328.613);
--muted: oklch(0.21 0.015 147.772);
--muted-foreground: oklch(0.743 0.006 148.507);
--popover: oklch(0.109 0.022 329.717);
--popover-foreground: oklch(0.992 0.001 328.603);
--card: oklch(0.109 0.022 329.717);
--card-foreground: oklch(0.992 0.001 328.603);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.692 0.241 332.108);
--primary-foreground: oklch(0.105 0.036 330.409);
--secondary: oklch(0.832 0.224 144.77);
--secondary-foreground: oklch(0.125 0.031 146.778);
--accent: oklch(0.832 0.224 144.77);
--accent-foreground: oklch(0.125 0.031 146.778);
--destructive: oklch(0.645 0.191 29.567);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.692 0.241 332.108);
--chart-1: oklch(0.692 0.241 332.108);
--chart-2: oklch(0.832 0.224 144.77);
--chart-3: oklch(0.832 0.224 144.77);
--chart-4: oklch(0.841 0.211 145.133);
--chart-5: oklch(0.694 0.248 332.204);
}