Noctis Viola is a shadcn/ui theme built around a muted violet primary color (#8767a8) with muted violet accents (#56406d). The light mode uses a violet-tinted background (#30243d). Dark mode keeps the muted violet primary (#8767a8) on a violet-tinted background (#30243d).
| Token | Light | Dark |
|---|---|---|
| Background | #30243ddarkslategray | #30243ddarkslategray |
| Foreground | #ccbfd9thistle | #ccbfd9thistle |
| Card | #2b2037darkslategray | #2b2037darkslategray |
| Card foreground | #d9cfe2gainsboro | #d9cfe2gainsboro |
| Popover | #281e33darkslategray | #281e33darkslategray |
| Popover foreground | #e6dfeclavender | #e6dfeclavender |
| Primary | #8767a8lightslategray | #8767a8lightslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #bfb4casilver | #bfb4casilver |
| Secondary foreground | #26202ddarkslategray | #26202ddarkslategray |
| Muted | #3a3442darkslategray | #3a3442darkslategray |
| Muted foreground | #bab2c2silver | #bab2c2silver |
| Accent | #56406ddarkslateblue | #56406ddarkslateblue |
| Accent foreground | #f0ecf4whitesmoke | #f0ecf4whitesmoke |
| Destructive | #eb4533tomato | #eb4533tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #3d3347darkslategray | #3d3347darkslategray |
| Input | #443a50darkslategray | #443a50darkslategray |
| Ring | #8767a8lightslategray | #8767a8lightslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 8.32:1 | AAA |
| Text on card | 10.24:1 | AAA |
| Primary button | 4.63:1 | AA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 5.86:1 | AA |
| Accent | 7.65:1 | AAA |
| Destructive | 3.86:1 | AA Large |
| Text on background | 8.32:1 | AAA |
| Text on card | 10.24:1 | AAA |
| Primary button | 4.63:1 | AA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 5.86:1 | AA |
| Accent | 7.65:1 | AAA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Noctis Viola in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.286 0.048 305.783);
--foreground: oklch(0.824 0.038 307.953);
--muted: oklch(0.336 0.026 306.889);
--muted-foreground: oklch(0.775 0.025 307.417);
--popover: oklch(0.258 0.041 305.875);
--popover-foreground: oklch(0.913 0.018 308.236);
--card: oklch(0.267 0.043 305.842);
--card-foreground: oklch(0.869 0.028 308.104);
--border: oklch(0.341 0.036 306.555);
--input: oklch(0.368 0.04 306.527);
--primary: oklch(0.571 0.103 306.383);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.787 0.032 308.003);
--secondary-foreground: oklch(0.256 0.026 307.341);
--accent: oklch(0.415 0.077 305.525);
--accent-foreground: oklch(0.948 0.011 307.649);
--destructive: oklch(0.629 0.205 30.085);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.571 0.103 306.383);
--chart-1: oklch(0.571 0.103 306.383);
--chart-2: oklch(0.787 0.032 308.003);
--chart-3: oklch(0.415 0.077 305.525);
--chart-4: oklch(0.813 0.028 308.074);
--chart-5: oklch(0.566 0.114 306.11);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.286 0.048 305.783);
--foreground: oklch(0.824 0.038 307.953);
--muted: oklch(0.336 0.026 306.889);
--muted-foreground: oklch(0.775 0.025 307.417);
--popover: oklch(0.258 0.041 305.875);
--popover-foreground: oklch(0.913 0.018 308.236);
--card: oklch(0.267 0.043 305.842);
--card-foreground: oklch(0.869 0.028 308.104);
--border: oklch(0.341 0.036 306.555);
--input: oklch(0.368 0.04 306.527);
--primary: oklch(0.571 0.103 306.383);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.787 0.032 308.003);
--secondary-foreground: oklch(0.256 0.026 307.341);
--accent: oklch(0.415 0.077 305.525);
--accent-foreground: oklch(0.948 0.011 307.649);
--destructive: oklch(0.629 0.205 30.085);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.571 0.103 306.383);
--chart-1: oklch(0.571 0.103 306.383);
--chart-2: oklch(0.787 0.032 308.003);
--chart-3: oklch(0.415 0.077 305.525);
--chart-4: oklch(0.813 0.028 308.074);
--chart-5: oklch(0.566 0.114 306.11);
}