Mineral - Final is a shadcn/ui theme built around a deep blue primary color (#0a2238) with vivid light blue accents (#bee0f9). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the deep blue primary (#0a2238) on a neutral background (#020303).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #020303black |
| Foreground | #010304black | #f6f7f9whitesmoke |
| Card | #ffffffwhite | #020303black |
| Card foreground | #010304black | #f6f7f9whitesmoke |
| Popover | #fbfcfewhite | #020303black |
| Popover foreground | #010304black | #f6f7f9whitesmoke |
| Primary | #0a2238midnightblue | #0a2238midnightblue |
| Primary foreground | #ffffffwhite | #8abceaskyblue |
| Secondary | #85c6f4lightskyblue | #0a3838darkslategray |
| Secondary foreground | #0a2239midnightblue | #33dbd8turquoise |
| Muted | #ced4dalightgrey | #162d2cdarkslategray |
| Muted foreground | #0a2239midnightblue | #a5bbbbdarkgray |
| Accent | #bee0f9paleturquoise | #0a0b38black |
| Accent foreground | #0a2239midnightblue | #8a8ceamediumpurple |
| Destructive | #c00000firebrick | #ed5902orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e9eaeclavender | #171a1cblack |
| Input | #c2c3c4silver | #171a1cblack |
| Ring | #0a2238midnightblue | #0a2238midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 20.66:1 | AAA |
| Primary button | 16.17:1 | AAA |
| Secondary button | 8.74:1 | AAA |
| Muted text | 10.80:1 | AAA |
| Accent | 11.70:1 | AAA |
| Destructive | 6.47:1 | AA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 8.05:1 | AAA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 7.23:1 | AAA |
| Accent | 6.28:1 | AA |
| Destructive | 3.48:1 | AA Large |
Paste this into your globals.css to use Mineral - Final in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 245.995);
--foreground: oklch(0.09 0.009 238.843);
--muted: oklch(0.867 0.011 247.949);
--muted-foreground: oklch(0.247 0.053 250.049);
--popover: oklch(0.992 0.002 245.995);
--popover-foreground: oklch(0.09 0.009 238.843);
--card: oklch(1 0 180);
--card-foreground: oklch(0.09 0.009 238.843);
--border: oklch(0.937 0.003 264.542);
--input: oklch(0.818 0.002 245.988);
--primary: oklch(0.246 0.052 249.497);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.8 0.093 240.24);
--secondary-foreground: oklch(0.247 0.053 250.049);
--accent: oklch(0.89 0.05 240.01);
--accent-foreground: oklch(0.247 0.053 250.049);
--destructive: oklch(0.507 0.208 29.234);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.246 0.052 249.497);
--chart-1: oklch(0.246 0.052 249.497);
--chart-2: oklch(0.8 0.093 240.24);
--chart-3: oklch(0.89 0.05 240.01);
--chart-4: oklch(0.822 0.083 239.847);
--chart-5: oklch(0.246 0.054 249.713);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.09 0.006 241.485);
--foreground: oklch(0.977 0.003 245.997);
--muted: oklch(0.277 0.029 194.205);
--muted-foreground: oklch(0.775 0.024 195.436);
--popover: oklch(0.09 0.006 241.485);
--popover-foreground: oklch(0.977 0.003 245.997);
--card: oklch(0.09 0.006 241.485);
--card-foreground: oklch(0.977 0.003 245.997);
--border: oklch(0.214 0.007 246.336);
--input: oklch(0.214 0.007 246.336);
--primary: oklch(0.246 0.052 249.497);
--primary-foreground: oklch(0.777 0.085 247.302);
--secondary: oklch(0.312 0.048 193.326);
--secondary-foreground: oklch(0.811 0.13 193.16);
--accent: oklch(0.188 0.086 273.712);
--accent-foreground: oklch(0.678 0.138 281.312);
--destructive: oklch(0.652 0.198 41.483);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.246 0.052 249.497);
--chart-1: oklch(0.246 0.052 249.497);
--chart-2: oklch(0.312 0.048 193.326);
--chart-3: oklch(0.188 0.086 273.712);
--chart-4: oklch(0.357 0.056 193.254);
--chart-5: oklch(0.246 0.054 249.713);
}