Loading is a shadcn/ui theme built around a deep red primary color (#42221f) with muted red accents (#c2b8b7). The light mode uses a neutral background (#fefbfb). Dark mode keeps the deep red primary (#42221f) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfbsnow | #000000black |
| Foreground | #0d0403black | #faf5f5whitesmoke |
| Card | #fefbfbsnow | #000000black |
| Card foreground | #0d0403black | #faf5f5whitesmoke |
| Popover | #fefbfbsnow | #000000black |
| Popover foreground | #0d0403black | #faf5f5whitesmoke |
| Primary | #42221fdarkslategray | #42221fdarkslategray |
| Primary foreground | #ddbab6silver | #ddbab6silver |
| Secondary | #d2d1d1lightgrey | #282524darkslategray |
| Secondary foreground | #393838darkslategray | #c2bdbcsilver |
| Muted | #e9d0cegainsboro | #311916black |
| Muted foreground | #443d3cdarkslategray | #c3bcbbsilver |
| Accent | #c2b8b7silver | #453736darkslategray |
| Accent foreground | #272121black | #dbd2d1lightgrey |
| Destructive | #6f190cmaroon | #e73418orangered |
| Destructive foreground | #f7beb5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #42221fdarkslategray | #42221fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 7.64:1 | AAA |
| Muted text | 7.28:1 | AAA |
| Accent | 8.20:1 | AAA |
| Destructive | 7.15:1 | AAA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 8.76:1 | AAA |
| Accent | 7.62:1 | AAA |
| Destructive | 4.29:1 | AA Large |
Paste this into your globals.css to use Loading in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 25.01);
--foreground: oklch(0.121 0.021 31.076);
--muted: oklch(0.878 0.028 25.276);
--muted-foreground: oklch(0.366 0.01 25.226);
--popover: oklch(0.991 0.002 25.01);
--popover-foreground: oklch(0.121 0.021 31.076);
--card: oklch(0.991 0.002 25.01);
--card-foreground: oklch(0.121 0.021 31.076);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.295 0.05 27.224);
--primary-foreground: oklch(0.818 0.042 25.486);
--secondary: oklch(0.86 0.001 24.999);
--secondary-foreground: oklch(0.34 0.001 25.024);
--accent: oklch(0.792 0.011 25.107);
--accent-foreground: oklch(0.255 0.008 25.272);
--destructive: oklch(0.358 0.122 31.661);
--destructive-foreground: oklch(0.851 0.068 28.549);
--ring: oklch(0.295 0.05 27.224);
--chart-1: oklch(0.295 0.05 27.224);
--chart-2: oklch(0.86 0.001 24.999);
--chart-3: oklch(0.792 0.011 25.107);
--chart-4: oklch(0.884 0.001 24.997);
--chart-5: oklch(0.294 0.054 27.474);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.974 0.005 25.031);
--muted: oklch(0.246 0.04 27.075);
--muted-foreground: oklch(0.801 0.008 25.071);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.974 0.005 25.031);
--card: oklch(0 0 0);
--card-foreground: oklch(0.974 0.005 25.031);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.295 0.05 27.224);
--primary-foreground: oklch(0.818 0.042 25.486);
--secondary: oklch(0.267 0.005 25.159);
--secondary-foreground: oklch(0.802 0.007 25.057);
--accent: oklch(0.352 0.019 25.524);
--accent-foreground: oklch(0.871 0.01 25.084);
--destructive: oklch(0.605 0.218 31.565);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.295 0.05 27.224);
--chart-1: oklch(0.295 0.05 27.224);
--chart-2: oklch(0.267 0.005 25.159);
--chart-3: oklch(0.352 0.019 25.524);
--chart-4: oklch(0.298 0.006 25.168);
--chart-5: oklch(0.294 0.054 27.474);
}