Structural Bright Indigo is a shadcn/ui theme built around a vivid violet primary color (#740aff) with vivid green accents (#95ff0a). The light mode uses a neutral background (#fcfbfd). Dark mode keeps the vivid violet primary (#740aff) on a violet-tinted background (#0a060f).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfdsnow | #0a060fblack |
| Foreground | #000000black | #f7f5fawhitesmoke |
| Card | #faf8fcghostwhite | #0c0712black |
| Card foreground | #000000black | #faf8fbghostwhite |
| Popover | #faf8fcghostwhite | #0c0712black |
| Popover foreground | #000000black | #faf8fbghostwhite |
| Primary | #740affblueviolet | #740affblueviolet |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #95ff0achartreuse | #95ff0achartreuse |
| Secondary foreground | #233d00darkgreen | #233d00darkgreen |
| Muted | #f0f2edwhitesmoke | #10120dblack |
| Muted foreground | #52584bdarkolivegreen | #aeb4a7darkgray |
| Accent | #95ff0achartreuse | #95ff0achartreuse |
| Accent foreground | #233d00darkgreen | #233d00darkgreen |
| Destructive | #650b06maroon | #f23026crimson |
| Destructive foreground | #faa8a3lightpink | #ffffffwhite |
| Border | #e8e5eblavender | #231e29black |
| Input | #e8e5eblavender | #231e29black |
| Ring | #740affblueviolet | #740affblueviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 6.49:1 | AA |
| Secondary button | 9.53:1 | AAA |
| Muted text | 6.53:1 | AA |
| Accent | 9.53:1 | AAA |
| Destructive | 6.97:1 | AA |
| Text on background | 18.58:1 | AAA |
| Text on card | 18.83:1 | AAA |
| Primary button | 6.49:1 | AA |
| Secondary button | 9.53:1 | AAA |
| Muted text | 8.88:1 | AAA |
| Accent | 9.53:1 | AAA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Structural Bright Indigo in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 305.703);
--foreground: oklch(0 0 0);
--muted: oklch(0.959 0.007 125.841);
--muted-foreground: oklch(0.452 0.022 126.4);
--popover: oklch(0.981 0.005 305.666);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.005 305.666);
--card-foreground: oklch(0 0 0);
--border: oklch(0.925 0.01 305.599);
--input: oklch(0.925 0.01 305.599);
--primary: oklch(0.52 0.291 289.902);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.9 0.254 133.279);
--secondary-foreground: oklch(0.327 0.09 131.495);
--accent: oklch(0.9 0.254 133.279);
--accent-foreground: oklch(0.327 0.09 131.495);
--destructive: oklch(0.326 0.123 29.334);
--destructive-foreground: oklch(0.809 0.098 22.766);
--ring: oklch(0.52 0.291 289.902);
--chart-1: oklch(0.52 0.291 289.902);
--chart-2: oklch(0.9 0.254 133.279);
--chart-3: oklch(0.9 0.254 133.279);
--chart-4: oklch(0.903 0.248 132.484);
--chart-5: oklch(0.523 0.295 289.231);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.022 305.364);
--foreground: oklch(0.973 0.006 305.655);
--muted: oklch(0.177 0.011 126.591);
--muted-foreground: oklch(0.761 0.019 126.081);
--popover: oklch(0.143 0.026 303.926);
--popover-foreground: oklch(0.982 0.004 305.684);
--card: oklch(0.143 0.026 303.926);
--card-foreground: oklch(0.982 0.004 305.684);
--border: oklch(0.247 0.021 304.599);
--input: oklch(0.247 0.021 304.599);
--primary: oklch(0.52 0.291 289.902);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.9 0.254 133.279);
--secondary-foreground: oklch(0.327 0.09 131.495);
--accent: oklch(0.9 0.254 133.279);
--accent-foreground: oklch(0.327 0.09 131.495);
--destructive: oklch(0.624 0.229 28.863);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.52 0.291 289.902);
--chart-1: oklch(0.52 0.291 289.902);
--chart-2: oklch(0.9 0.254 133.279);
--chart-3: oklch(0.9 0.254 133.279);
--chart-4: oklch(0.903 0.248 132.484);
--chart-5: oklch(0.523 0.295 289.231);
}