Frivolous is a shadcn/ui theme built around a muted deep red primary color (#110e0e) with muted deep cyan accents (#0e1011). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep red primary (#110e0e) on a neutral background (#040201).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040201black |
| Foreground | #100605black | #fdfcfcsnow |
| Card | #fcfcfcsnow | #080302black |
| Card foreground | #0c0503black | #ffffffwhite |
| Popover | #fcfcfcsnow | #080302black |
| Popover foreground | #0c0503black | #ffffffwhite |
| Primary | #110e0eblack | #110e0eblack |
| Primary foreground | #b2a29fdarkgray | #b2a29fdarkgray |
| Secondary | #0e1011black | #0e1011black |
| Secondary foreground | #9fafb2darkgray | #9fafb2darkgray |
| Muted | #dee2e3gainsboro | #1c2021black |
| Muted foreground | #5e6768dimgray | #979fa1darkgray |
| Accent | #0e1011black | #0e1011black |
| Accent foreground | #9fafb2darkgray | #9fafb2darkgray |
| Destructive | #ab3d03saddlebrown | #fc7831tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #110e0eblack | #110e0eblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.99:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 7.83:1 | AAA |
| Secondary button | 8.38:1 | AAA |
| Muted text | 4.45:1 | AA Large |
| Accent | 8.38:1 | AAA |
| Destructive | 6.16:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 7.83:1 | AAA |
| Secondary button | 8.38:1 | AAA |
| Muted text | 6.07:1 | AA |
| Accent | 8.38:1 | AAA |
| Destructive | 7.86:1 | AAA |
Paste this into your globals.css to use Frivolous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.139 0.019 34.202);
--muted: oklch(0.91 0.005 209.455);
--muted-foreground: oklch(0.507 0.011 209.431);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.125 0.017 35.09);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.125 0.017 35.09);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.168 0.005 29.597);
--primary-foreground: oklch(0.724 0.019 29.582);
--secondary: oklch(0.172 0.005 209.43);
--secondary-foreground: oklch(0.742 0.019 209.429);
--accent: oklch(0.172 0.005 209.43);
--accent-foreground: oklch(0.742 0.019 209.429);
--destructive: oklch(0.51 0.154 41.328);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.168 0.005 29.597);
--chart-1: oklch(0.168 0.005 29.597);
--chart-2: oklch(0.172 0.005 209.43);
--chart-3: oklch(0.172 0.005 209.43);
--chart-4: oklch(0.208 0.007 209.433);
--chart-5: oklch(0.167 0.006 29.647);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.011 34.805);
--foreground: oklch(0.992 0.001 29.471);
--muted: oklch(0.241 0.006 209.429);
--muted-foreground: oklch(0.696 0.01 209.437);
--popover: oklch(0.109 0.013 34.805);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.109 0.013 34.805);
--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.168 0.005 29.597);
--primary-foreground: oklch(0.724 0.019 29.582);
--secondary: oklch(0.172 0.005 209.43);
--secondary-foreground: oklch(0.742 0.019 209.429);
--accent: oklch(0.172 0.005 209.43);
--accent-foreground: oklch(0.742 0.019 209.429);
--destructive: oklch(0.718 0.18 45.373);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.168 0.005 29.597);
--chart-1: oklch(0.168 0.005 29.597);
--chart-2: oklch(0.172 0.005 209.43);
--chart-3: oklch(0.172 0.005 209.43);
--chart-4: oklch(0.208 0.007 209.433);
--chart-5: oklch(0.167 0.006 29.647);
}