Frivolous is a shadcn/ui theme built around a light green primary color (#ecf8ed) with light purple accents (#f8ecf8). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#ecf8ed) on a neutral background (#010401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010401black |
| Foreground | #030c03black | #f5faf5whitesmoke |
| Card | #ffffffwhite | #010401black |
| Card foreground | #030c03black | #f5faf5whitesmoke |
| Popover | #ffffffwhite | #010401black |
| Popover foreground | #030c03black | #f5faf5whitesmoke |
| Primary | #ecf8edhoneydew | #ecf8edhoneydew |
| Primary foreground | #153816darkgreen | #153816darkgreen |
| Secondary | #f8ecf8lavenderblush | #f8ecf8lavenderblush |
| Secondary foreground | #823080rebeccapurple | #823080rebeccapurple |
| Muted | #e9e2e9lavender | #1d161dblack |
| Muted foreground | #5d515cdimgray | #aea2aedarkgray |
| Accent | #f8ecf8lavenderblush | #f8ecf8lavenderblush |
| Accent foreground | #823080rebeccapurple | #823080rebeccapurple |
| Destructive | #bb3011firebrick | #ec5836tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ecf8edhoneydew | #ecf8edhoneydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 11.95:1 | AAA |
| Secondary button | 6.85:1 | AA |
| Muted text | 5.90:1 | AA |
| Accent | 6.85:1 | AA |
| Destructive | 5.92:1 | AA |
| Text on background | 19.49:1 | AAA |
| Text on card | 19.49:1 | AAA |
| Primary button | 11.95:1 | AAA |
| Secondary button | 6.85:1 | AA |
| Muted text | 7.23:1 | AAA |
| Accent | 6.85:1 | AA |
| Destructive | 6.01:1 | AA |
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.141 0.029 144.88);
--muted: oklch(0.92 0.011 326.645);
--muted-foreground: oklch(0.45 0.024 326.998);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.141 0.029 144.88);
--card: oklch(1 0 180);
--card-foreground: oklch(0.141 0.029 144.88);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.968 0.019 146.365);
--primary-foreground: oklch(0.304 0.071 144.172);
--secondary: oklch(0.957 0.02 326.716);
--secondary-foreground: oklch(0.458 0.15 329.028);
--accent: oklch(0.957 0.02 326.716);
--accent-foreground: oklch(0.458 0.15 329.028);
--destructive: oklch(0.523 0.179 33.474);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.968 0.019 146.365);
--chart-1: oklch(0.968 0.019 146.365);
--chart-2: oklch(0.957 0.02 326.716);
--chart-3: oklch(0.957 0.02 326.716);
--chart-4: oklch(0.983 0.008 326.609);
--chart-5: oklch(0.968 0.021 146.353);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.018 145.02);
--foreground: oklch(0.979 0.008 146.469);
--muted: oklch(0.212 0.016 327.174);
--muted-foreground: oklch(0.727 0.022 326.795);
--popover: oklch(0.097 0.018 145.02);
--popover-foreground: oklch(0.979 0.008 146.469);
--card: oklch(0.097 0.018 145.02);
--card-foreground: oklch(0.979 0.008 146.469);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.968 0.019 146.365);
--primary-foreground: oklch(0.304 0.071 144.172);
--secondary: oklch(0.957 0.02 326.716);
--secondary-foreground: oklch(0.458 0.15 329.028);
--accent: oklch(0.957 0.02 326.716);
--accent-foreground: oklch(0.458 0.15 329.028);
--destructive: oklch(0.652 0.19 34.13);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.968 0.019 146.365);
--chart-1: oklch(0.968 0.019 146.365);
--chart-2: oklch(0.957 0.02 326.716);
--chart-3: oklch(0.957 0.02 326.716);
--chart-4: oklch(0.983 0.008 326.609);
--chart-5: oklch(0.968 0.021 146.353);
}