Fickle is a shadcn/ui theme built around a near-black primary color (#0f0300) with near-black accents (#0f0b00). The light mode uses a neutral background (#fefcfb). Dark mode keeps the near-black primary (#0f0300) on a red-tinted background (#0c0504).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #0c0504black |
| Foreground | #000000black | #f9f6f5whitesmoke |
| Card | #fdf8f7snow | #100705black |
| Card foreground | #000000black | #fbf9f8snow |
| Popover | #fefcfbsnow | #0c0504black |
| Popover foreground | #000000black | #f9f6f5whitesmoke |
| Primary | #0f0300black | #0f0300black |
| Primary foreground | #fd6944tomato | #fd6944tomato |
| Secondary | #0f0005black | #0f0005black |
| Secondary foreground | #fd447cdeeppink | #fd447cdeeppink |
| Muted | #e0dcddgainsboro | #231f20black |
| Muted foreground | #544549darkslategray | #baabafdarkgray |
| Accent | #0f0b00black | #0f0b00black |
| Accent foreground | #d99902goldenrod | #d99902goldenrod |
| Destructive | #951409darkred | #f34939tomato |
| Destructive foreground | #fcd7d4mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f0300black | #0f0300black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.47:1 | AAA |
| Text on card | 19.96:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 6.15:1 | AA |
| Muted text | 6.62:1 | AA |
| Accent | 7.97:1 | AAA |
| Destructive | 6.60:1 | AA |
| Text on background | 18.78:1 | AAA |
| Text on card | 18.98:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 6.15:1 | AA |
| Muted text | 7.39:1 | AAA |
| Accent | 7.97:1 | AAA |
| Destructive | 3.59:1 | AA Large |
Paste this into your globals.css to use Fickle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 34.313);
--foreground: oklch(0 0 0);
--muted: oklch(0.897 0.005 356.831);
--muted-foreground: oklch(0.407 0.022 358.17);
--popover: oklch(0.991 0.003 34.313);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.983 0.005 34.308);
--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.123 0.032 49.391);
--primary-foreground: oklch(0.701 0.189 35.182);
--secondary: oklch(0.111 0.044 357.069);
--secondary-foreground: oklch(0.671 0.222 7.867);
--accent: oklch(0.15 0.03 94.322);
--accent-foreground: oklch(0.726 0.151 78.361);
--destructive: oklch(0.431 0.164 30.097);
--destructive-foreground: oklch(0.91 0.042 24.093);
--ring: oklch(0.123 0.032 49.391);
--chart-1: oklch(0.123 0.032 49.391);
--chart-2: oklch(0.111 0.044 357.069);
--chart-3: oklch(0.15 0.03 94.322);
--chart-4: oklch(0.153 0.06 3.098);
--chart-5: oklch(0.122 0.033 50.28);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.015 40.371);
--foreground: oklch(0.976 0.004 34.31);
--muted: oklch(0.244 0.008 357.531);
--muted-foreground: oklch(0.755 0.019 357.362);
--popover: oklch(0.127 0.015 40.371);
--popover-foreground: oklch(0.976 0.004 34.31);
--card: oklch(0.141 0.018 39.061);
--card-foreground: oklch(0.984 0.003 34.313);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.123 0.032 49.391);
--primary-foreground: oklch(0.701 0.189 35.182);
--secondary: oklch(0.111 0.044 357.069);
--secondary-foreground: oklch(0.671 0.222 7.867);
--accent: oklch(0.15 0.03 94.322);
--accent-foreground: oklch(0.726 0.151 78.361);
--destructive: oklch(0.648 0.21 29.245);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.123 0.032 49.391);
--chart-1: oklch(0.123 0.032 49.391);
--chart-2: oklch(0.111 0.044 357.069);
--chart-3: oklch(0.15 0.03 94.322);
--chart-4: oklch(0.153 0.06 3.098);
--chart-5: oklch(0.122 0.033 50.28);
}