Microlending is a shadcn/ui theme built around a deep violet primary color (#14071d) with muted light violet accents (#d2ccd7). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the deep violet primary (#14071d) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #000000black |
| Foreground | #000000black | #faf9fasnow |
| Card | #fdfcfdwhite | #000000black |
| Card foreground | #000000black | #faf9fasnow |
| Popover | #fdfcfdwhite | #000000black |
| Popover foreground | #000000black | #faf9fasnow |
| Primary | #14071dblack | #14071dblack |
| Primary foreground | #b378ddmediumpurple | #b378ddmediumpurple |
| Secondary | #e1dfe2gainsboro | #151315black |
| Secondary foreground | #48454adarkslategray | #aea9b1darkgray |
| Muted | #e1dae7gainsboro | #201825black |
| Muted foreground | #5c595fdimgray | #a4a0a6darkgray |
| Accent | #d2ccd7lightgrey | #2c2730darkslategray |
| Accent foreground | #39313fdarkslategray | #c5becbsilver |
| Destructive | #6b2e0bsaddlebrown | #ea702achocolate |
| Destructive foreground | #f7cab0peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #14071dblack | #14071dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.46:1 | AAA |
| Text on card | 20.46:1 | AAA |
| Primary button | 6.17:1 | AA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 5.04:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 6.96:1 | AA |
| Text on background | 19.99:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 6.17:1 | AA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 6.69:1 | AA |
| Accent | 8.08:1 | AAA |
| Destructive | 6.84:1 | AA |
Paste this into your globals.css to use Microlending in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 311.706);
--foreground: oklch(0 0 0);
--muted: oklch(0.898 0.019 311.553);
--muted-foreground: oklch(0.469 0.01 311.559);
--popover: oklch(0.991 0.002 311.706);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.002 311.706);
--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.162 0.047 309.33);
--primary-foreground: oklch(0.674 0.155 309.718);
--secondary: oklch(0.906 0.004 311.692);
--secondary-foreground: oklch(0.394 0.01 311.511);
--accent: oklch(0.852 0.017 311.567);
--accent-foreground: oklch(0.328 0.026 311.097);
--destructive: oklch(0.38 0.098 45.976);
--destructive-foreground: oklch(0.872 0.062 51.674);
--ring: oklch(0.162 0.047 309.33);
--chart-1: oklch(0.162 0.047 309.33);
--chart-2: oklch(0.906 0.004 311.692);
--chart-3: oklch(0.852 0.017 311.567);
--chart-4: oklch(0.93 0.003 311.701);
--chart-5: oklch(0.161 0.049 309.236);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.984 0.002 311.711);
--muted: oklch(0.225 0.027 310.759);
--muted-foreground: oklch(0.712 0.009 311.626);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.984 0.002 311.711);
--card: oklch(0 0 0);
--card-foreground: oklch(0.984 0.002 311.711);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.162 0.047 309.33);
--primary-foreground: oklch(0.674 0.155 309.718);
--secondary: oklch(0.191 0.004 311.536);
--secondary-foreground: oklch(0.742 0.013 311.586);
--accent: oklch(0.281 0.019 311.184);
--accent-foreground: oklch(0.811 0.02 311.529);
--destructive: oklch(0.68 0.17 46.496);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.162 0.047 309.33);
--chart-1: oklch(0.162 0.047 309.33);
--chart-2: oklch(0.191 0.004 311.536);
--chart-3: oklch(0.281 0.019 311.184);
--chart-4: oklch(0.224 0.006 311.512);
--chart-5: oklch(0.161 0.049 309.236);
}