Frivolous is a shadcn/ui theme built around a vivid red primary color (#f06060) with vivid orange accents (#f0a860). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the vivid red primary (#f06060) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #000000black |
| Foreground | #040101black | #faf4f4whitesmoke |
| Card | #fbf8f8snow | #030303black |
| Card foreground | #000000black | #fcf8f8snow |
| Popover | #fdfcfcsnow | #000000black |
| Popover foreground | #040101black | #faf4f4whitesmoke |
| Primary | #f06060tomato | #f06060tomato |
| Primary foreground | #1c0303black | #1c0303black |
| Secondary | #f060a8hotpink | #f060a8hotpink |
| Secondary foreground | #1c030fblack | #1c030fblack |
| Muted | #e7d9e0gainsboro | #26181fblack |
| Muted foreground | #55444ddarkslategray | #bbaab3darkgray |
| Accent | #f0a860sandybrown | #f0a860sandybrown |
| Accent foreground | #1c0f03black | #1c0f03black |
| Destructive | #910c08darkred | #f31e16red |
| Destructive foreground | #fcd0cfpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f06060tomato | #f06060tomato |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 6.17:1 | AA |
| Secondary button | 6.51:1 | AA |
| Muted text | 6.66:1 | AA |
| Accent | 9.38:1 | AAA |
| Destructive | 6.64:1 | AA |
| Text on background | 19.31:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 6.17:1 | AA |
| Secondary button | 6.51:1 | AA |
| Muted text | 7.75:1 | AAA |
| Accent | 9.38:1 | AAA |
| Destructive | 4.20:1 | AA Large |
Paste this into your globals.css to use Frivolous in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 17.185);
--foreground: oklch(0.078 0.021 23.097);
--muted: oklch(0.9 0.018 345.66);
--muted-foreground: oklch(0.408 0.026 346.766);
--popover: oklch(0.991 0.002 17.185);
--popover-foreground: oklch(0.078 0.021 23.097);
--card: oklch(0.983 0.003 17.213);
--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.674 0.178 23.134);
--primary-foreground: oklch(0.152 0.049 25.289);
--secondary: oklch(0.693 0.191 352.146);
--secondary-foreground: oklch(0.157 0.053 351.13);
--accent: oklch(0.788 0.123 64.363);
--accent-foreground: oklch(0.184 0.033 68.273);
--destructive: oklch(0.418 0.164 29.107);
--destructive-foreground: oklch(0.895 0.05 20.455);
--ring: oklch(0.674 0.178 23.134);
--chart-1: oklch(0.674 0.178 23.134);
--chart-2: oklch(0.693 0.191 352.146);
--chart-3: oklch(0.788 0.123 64.363);
--chart-4: oklch(0.715 0.175 351.235);
--chart-5: oklch(0.675 0.184 23.411);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.973 0.007 17.27);
--muted: oklch(0.228 0.026 347.896);
--muted-foreground: oklch(0.755 0.023 345.907);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.973 0.007 17.27);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.982 0.004 17.231);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.674 0.178 23.134);
--primary-foreground: oklch(0.152 0.049 25.289);
--secondary: oklch(0.693 0.191 352.146);
--secondary-foreground: oklch(0.157 0.053 351.13);
--accent: oklch(0.788 0.123 64.363);
--accent-foreground: oklch(0.184 0.033 68.273);
--destructive: oklch(0.614 0.24 29.034);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.674 0.178 23.134);
--chart-1: oklch(0.674 0.178 23.134);
--chart-2: oklch(0.693 0.191 352.146);
--chart-3: oklch(0.788 0.123 64.363);
--chart-4: oklch(0.715 0.175 351.235);
--chart-5: oklch(0.675 0.184 23.411);
}