Frustration is a shadcn/ui theme built around a red primary color (#d57275) with muted light red accents (#d2c6c6). The light mode uses a neutral background (#fefbfb). Dark mode keeps the red primary (#d57275) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #000000black |
| Foreground | #080202black | #f9f6f6whitesmoke |
| Card | #fdf7f7snow | #030303black |
| Card foreground | #040101black | #fbf9f9snow |
| Popover | #fefbfbsnow | #000000black |
| Popover foreground | #080202black | #f9f6f6whitesmoke |
| Primary | #d57275palevioletred | #d57275palevioletred |
| Primary foreground | #100505black | #100505black |
| Secondary | #d2c6c6lightgrey | #151313black |
| Secondary foreground | #392d2ddarkslategray | #b1a9aadarkgray |
| Muted | #f0dbdcmistyrose | #240f10black |
| Muted foreground | #656162dimgray | #9e9a9adarkgray |
| Accent | #d2c6c6lightgrey | #151313black |
| Accent foreground | #392d2ddarkslategray | #b1a9aadarkgray |
| Destructive | #cb0606firebrick | #e90707red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d57275palevioletred | #d57275palevioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.98:1 | AAA |
| Text on card | 19.58:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 4.62:1 | AA |
| Accent | 7.95:1 | AAA |
| Destructive | 5.89:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 6.55:1 | AA |
| Accent | 8.01:1 | AAA |
| Destructive | 4.68:1 | AA |
Paste this into your globals.css to use Frustration in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 14.856);
--foreground: oklch(0.101 0.022 18.297);
--muted: oklch(0.909 0.023 15.26);
--muted-foreground: oklch(0.498 0.005 14.981);
--popover: oklch(0.99 0.003 14.856);
--popover-foreground: oklch(0.101 0.022 18.297);
--card: oklch(0.98 0.007 14.924);
--card-foreground: oklch(0.081 0.017 18.297);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.664 0.124 18.91);
--primary-foreground: oklch(0.133 0.023 17.723);
--secondary: oklch(0.836 0.014 15.1);
--secondary-foreground: oklch(0.311 0.018 15.915);
--accent: oklch(0.836 0.014 15.1);
--accent-foreground: oklch(0.311 0.018 15.915);
--destructive: oklch(0.53 0.215 28.976);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.664 0.124 18.91);
--chart-1: oklch(0.664 0.124 18.91);
--chart-2: oklch(0.836 0.014 15.1);
--chart-3: oklch(0.836 0.014 15.1);
--chart-4: oklch(0.861 0.012 15.043);
--chart-5: oklch(0.663 0.131 19.205);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.003 14.84);
--muted: oklch(0.201 0.035 18.508);
--muted-foreground: oklch(0.688 0.005 14.917);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.975 0.003 14.84);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.984 0.002 14.823);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.664 0.124 18.91);
--primary-foreground: oklch(0.133 0.023 17.723);
--secondary: oklch(0.191 0.003 15.117);
--secondary-foreground: oklch(0.743 0.009 15.028);
--accent: oklch(0.191 0.003 15.117);
--accent-foreground: oklch(0.743 0.009 15.028);
--destructive: oklch(0.587 0.239 29.016);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.664 0.124 18.91);
--chart-1: oklch(0.664 0.124 18.91);
--chart-2: oklch(0.191 0.003 15.117);
--chart-3: oklch(0.191 0.003 15.117);
--chart-4: oklch(0.224 0.004 15.16);
--chart-5: oklch(0.663 0.131 19.205);
}