Loose is a shadcn/ui theme built around a green primary color (#6db677) with muted light green accents (#bad9be). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#6db677) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010402black |
| Foreground | #041006black | #f5faf6whitesmoke |
| Card | #fcfcfcsnow | #030704black |
| Card foreground | #030c04black | #f8fbf9mintcream |
| Popover | #fcfcfcsnow | #030704black |
| Popover foreground | #030c04black | #f8fbf9mintcream |
| Primary | #6db677darkseagreen | #6db677darkseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #dbe6dcgainsboro | #191f1ablack |
| Secondary foreground | #3a553ddarkslategray | #adbdafdarkgray |
| Muted | #dde4degainsboro | #1b221cblack |
| Muted foreground | #566758dimgray | #98a99adarkgray |
| Accent | #bad9besilver | #213023darkslategray |
| Accent foreground | #223f26darkslategray | #b7cdbasilver |
| Destructive | #842401maroon | #fe662ftomato |
| Destructive foreground | #ffcbb8peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6db677darkseagreen | #6db677darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 8.57:1 | AAA |
| Secondary button | 6.43:1 | AA |
| Muted text | 4.65:1 | AA |
| Accent | 7.61:1 | AAA |
| Destructive | 6.49:1 | AA |
| Text on background | 19.52:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 8.57:1 | AAA |
| Secondary button | 8.51:1 | AAA |
| Muted text | 6.55:1 | AA |
| Accent | 8.21:1 | AAA |
| Destructive | 7.15:1 | AAA |
Paste this into your globals.css to use Loose in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.158 0.031 147.985);
--muted: oklch(0.911 0.011 149.539);
--muted-foreground: oklch(0.494 0.031 148.876);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.141 0.026 148.39);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.141 0.026 148.39);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.711 0.116 147.376);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.914 0.018 149.433);
--secondary-foreground: oklch(0.42 0.051 148.053);
--accent: oklch(0.855 0.05 148.941);
--accent-foreground: oklch(0.336 0.055 147.397);
--destructive: oklch(0.41 0.137 36.952);
--destructive-foreground: oklch(0.882 0.065 40.924);
--ring: oklch(0.711 0.116 147.376);
--chart-1: oklch(0.711 0.116 147.376);
--chart-2: oklch(0.914 0.018 149.433);
--chart-3: oklch(0.855 0.05 148.941);
--chart-4: oklch(0.936 0.014 149.502);
--chart-5: oklch(0.717 0.126 147.178);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.013 148.838);
--foreground: oklch(0.979 0.007 149.594);
--muted: oklch(0.243 0.015 148.906);
--muted-foreground: oklch(0.718 0.028 149.183);
--popover: oklch(0.121 0.016 148.838);
--popover-foreground: oklch(0.986 0.005 149.624);
--card: oklch(0.121 0.016 148.838);
--card-foreground: oklch(0.986 0.005 149.624);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.711 0.116 147.376);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.232 0.014 148.928);
--secondary-foreground: oklch(0.782 0.027 149.254);
--accent: oklch(0.292 0.03 148.305);
--accent-foreground: oklch(0.826 0.036 149.138);
--destructive: oklch(0.696 0.197 38.899);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.711 0.116 147.376);
--chart-1: oklch(0.711 0.116 147.376);
--chart-2: oklch(0.232 0.014 148.928);
--chart-3: oklch(0.292 0.03 148.305);
--chart-4: oklch(0.265 0.017 148.87);
--chart-5: oklch(0.717 0.126 147.178);
}