Loose is a shadcn/ui theme built around a near-white primary color (#ffffff) with near-white accents (#ffffff). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the near-white primary (#ffffff) on a neutral background (#080202).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfcsnow | #080202black |
| Foreground | #0e0202black | #fdfcfcsnow |
| Card | #fcf8f8snow | #0c0303black |
| Card foreground | #090101black | #ffffffwhite |
| Popover | #fcf8f8snow | #0c0303black |
| Popover foreground | #090101black | #ffffffwhite |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #ffffffwhite | #ffffffwhite |
| Secondary foreground | #333333darkslategray | #333333darkslategray |
| Muted | #efe1e1mistyrose | #1e1010black |
| Muted foreground | #674c4cdimgray | #b39898rosybrown |
| Accent | #ffffffwhite | #ffffffwhite |
| Accent foreground | #333333darkslategray | #333333darkslategray |
| Destructive | #a5360dsaddlebrown | #ec5018orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 12.63:1 | AAA |
| Muted text | 6.10:1 | AA |
| Accent | 12.63:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.36:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 12.63:1 | AAA |
| Muted text | 6.91:1 | AA |
| Accent | 12.63:1 | AAA |
| Destructive | 3.65:1 | AA Large |
Paste this into your globals.css to use Loose in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 17.19);
--foreground: oklch(0.113 0.032 23.7);
--muted: oklch(0.922 0.015 17.421);
--muted-foreground: oklch(0.445 0.036 18.622);
--popover: oklch(0.982 0.004 17.222);
--popover-foreground: oklch(0.098 0.027 23.605);
--card: oklch(0.982 0.004 17.222);
--card-foreground: oklch(0.098 0.027 23.605);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(1 0 180);
--secondary-foreground: oklch(0.321 0 180);
--accent: oklch(1 0 180);
--accent-foreground: oklch(0.321 0 180);
--destructive: oklch(0.491 0.154 37.605);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(1 0 180);
--chart-3: oklch(1 0 180);
--chart-4: oklch(1.023 0 180);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.019 20.789);
--foreground: oklch(0.991 0.002 17.191);
--muted: oklch(0.193 0.023 19.335);
--muted-foreground: oklch(0.705 0.032 17.935);
--popover: oklch(0.118 0.022 20.823);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.118 0.022 20.823);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(1 0 180);
--secondary-foreground: oklch(0.321 0 180);
--accent: oklch(1 0 180);
--accent-foreground: oklch(0.321 0 180);
--destructive: oklch(0.641 0.201 37.569);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(1 0 180);
--chart-3: oklch(1 0 180);
--chart-4: oklch(1.023 0 180);
--chart-5: oklch(1 0 180);
}