Disloyal is a shadcn/ui theme built around a muted violet primary color (#b1a9b7) with muted light violet accents (#c9bcd2). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the muted violet primary (#b1a9b7) on a violet-tinted background (#0b050f).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #0b050fblack |
| Foreground | #0c0311black | #faf9fbghostwhite |
| Card | #fdfbfewhite | #0b050fblack |
| Card foreground | #0c0311black | #faf9fbghostwhite |
| Popover | #fdfbfewhite | #0b050fblack |
| Popover foreground | #0c0311black | #faf9fbghostwhite |
| Primary | #b1a9b7darkgray | #b1a9b7darkgray |
| Primary foreground | #171519black | #171519black |
| Secondary | #dcd7dfgainsboro | #171519black |
| Secondary foreground | #443b4adarkslategray | #b1a9b7darkgray |
| Muted | #e7deedlavender | #1b1221black |
| Muted foreground | #625b67dimgray | #9f98a4darkgray |
| Accent | #c9bcd2thistle | #2a222fdarkslategray |
| Accent foreground | #302537darkslategray | #c4b8ccsilver |
| Destructive | #771c03maroon | #fa5e33tomato |
| Destructive foreground | #fdc0aflightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b1a9b7darkgray | #b1a9b7darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.64:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 7.96:1 | AAA |
| Secondary button | 7.54:1 | AAA |
| Muted text | 5.01:1 | AA |
| Accent | 8.01:1 | AAA |
| Destructive | 6.80:1 | AA |
| Text on background | 19.16:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 7.96:1 | AAA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 6.48:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.71:1 | AA |
Paste this into your globals.css to use Disloyal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.005 312.321);
--foreground: oklch(0.127 0.039 312.555);
--muted: oklch(0.913 0.021 312.185);
--muted-foreground: oklch(0.482 0.02 312.047);
--popover: oklch(0.99 0.005 312.321);
--popover-foreground: oklch(0.127 0.039 312.555);
--card: oklch(0.99 0.005 312.321);
--card-foreground: oklch(0.127 0.039 312.555);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.746 0.022 312.137);
--primary-foreground: oklch(0.2 0.009 312.026);
--secondary: oklch(0.886 0.012 312.259);
--secondary-foreground: oklch(0.367 0.027 311.81);
--accent: oklch(0.812 0.034 312.045);
--accent-foreground: oklch(0.284 0.036 311.403);
--destructive: oklch(0.378 0.129 34.939);
--destructive-foreground: oklch(0.859 0.074 36.013);
--ring: oklch(0.746 0.022 312.137);
--chart-1: oklch(0.746 0.022 312.137);
--chart-2: oklch(0.886 0.012 312.259);
--chart-3: oklch(0.812 0.034 312.045);
--chart-4: oklch(0.911 0.009 312.283);
--chart-5: oklch(0.742 0.03 312.062);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.026 312.368);
--foreground: oklch(0.984 0.002 312.341);
--muted: oklch(0.202 0.031 311.212);
--muted-foreground: oklch(0.69 0.019 312.159);
--popover: oklch(0.133 0.026 312.368);
--popover-foreground: oklch(0.984 0.002 312.341);
--card: oklch(0.133 0.026 312.368);
--card-foreground: oklch(0.984 0.002 312.341);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.746 0.022 312.137);
--primary-foreground: oklch(0.2 0.009 312.026);
--secondary: oklch(0.2 0.009 312.026);
--secondary-foreground: oklch(0.746 0.022 312.137);
--accent: oklch(0.268 0.026 311.629);
--accent-foreground: oklch(0.798 0.03 312.079);
--destructive: oklch(0.68 0.199 35.951);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.746 0.022 312.137);
--chart-1: oklch(0.746 0.022 312.137);
--chart-2: oklch(0.2 0.009 312.026);
--chart-3: oklch(0.268 0.026 311.629);
--chart-4: oklch(0.232 0.012 311.99);
--chart-5: oklch(0.742 0.03 312.062);
}