Disloyal is a shadcn/ui theme built around a green primary color (#c4d779) with indigo accents (#8c79d7). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#c4d779) on a green-tinted background (#0a0b04).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0a0b04black |
| Foreground | #0e1005black | #fbfbf9snow |
| Card | #fcfcfcsnow | #0d0f05black |
| Card foreground | #0a0c04black | #fdfdfcwhite |
| Popover | #fcfcfcsnow | #0d0f05black |
| Popover foreground | #0a0c04black | #fdfdfcwhite |
| Primary | #c4d779darkkhaki | #c4d779darkkhaki |
| Primary foreground | #141807black | #141807black |
| Secondary | #8c79d7mediumpurple | #8c79d7mediumpurple |
| Secondary foreground | #000000black | #000000black |
| Muted | #edecf3lavender | #0d0c13black |
| Muted foreground | #616161dimgray | #9e9e9edarkgray |
| Accent | #8c79d7mediumpurple | #8c79d7mediumpurple |
| Accent foreground | #000000black | #000000black |
| Destructive | #761005maroon | #f6331eorangered |
| Destructive foreground | #fcb8b1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c4d779darkkhaki | #c4d779darkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.17:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 11.49:1 | AAA |
| Secondary button | 5.85:1 | AA |
| Muted text | 5.28:1 | AA |
| Accent | 5.85:1 | AA |
| Destructive | 6.86:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 18.94:1 | AAA |
| Primary button | 11.49:1 | AAA |
| Secondary button | 5.85:1 | AA |
| Muted text | 7.27:1 | AAA |
| Accent | 5.85:1 | AA |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Disloyal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.165 0.024 117.446);
--muted: oklch(0.946 0.01 295.386);
--muted-foreground: oklch(0.492 0 180);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.148 0.02 116.44);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.148 0.02 116.44);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.845 0.121 118.332);
--primary-foreground: oklch(0.198 0.031 118.443);
--secondary: oklch(0.635 0.138 291.151);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.635 0.138 291.151);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.364 0.136 30.735);
--destructive-foreground: oklch(0.844 0.08 26.037);
--ring: oklch(0.845 0.121 118.332);
--chart-1: oklch(0.845 0.121 118.332);
--chart-2: oklch(0.635 0.138 291.151);
--chart-3: oklch(0.635 0.138 291.151);
--chart-4: oklch(0.668 0.125 291.843);
--chart-5: oklch(0.851 0.126 118.459);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.146 0.018 116.294);
--foreground: oklch(0.987 0.003 115.637);
--muted: oklch(0.158 0.016 293.713);
--muted-foreground: oklch(0.7 0 180);
--popover: oklch(0.163 0.021 117.308);
--popover-foreground: oklch(0.994 0.002 115.607);
--card: oklch(0.163 0.021 117.308);
--card-foreground: oklch(0.994 0.002 115.607);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.845 0.121 118.332);
--primary-foreground: oklch(0.198 0.031 118.443);
--secondary: oklch(0.635 0.138 291.151);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.635 0.138 291.151);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.631 0.231 30.51);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.845 0.121 118.332);
--chart-1: oklch(0.845 0.121 118.332);
--chart-2: oklch(0.635 0.138 291.151);
--chart-3: oklch(0.635 0.138 291.151);
--chart-4: oklch(0.668 0.125 291.843);
--chart-5: oklch(0.851 0.126 118.459);
}