Laravel is a shadcn/ui theme built around a muted deep indigo primary color (#090910) with neutral gray accents (#d4d4d4). The light mode uses a neutral background (#fafafa). Dark mode keeps the muted deep indigo primary (#090910) on a neutral background (#fafafa).
| Token | Light | Dark |
|---|---|---|
| Background | #fafafasnow | #fafafasnow |
| Foreground | #090910black | #090910black |
| Card | #f5f5f5whitesmoke | #f5f5f5whitesmoke |
| Card foreground | #000000black | #000000black |
| Popover | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Popover foreground | #000000black | #000000black |
| Primary | #090910black | #090910black |
| Primary foreground | #8d8dbfmediumpurple | #8d8dbfmediumpurple |
| Secondary | #b4b4cbsilver | #b4b4cbsilver |
| Secondary foreground | #1f1f2ddarkslategray | #1f1f2ddarkslategray |
| Muted | #e9e2e2gainsboro | #e9e2e2gainsboro |
| Muted foreground | #564343darkslategray | #564343darkslategray |
| Accent | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Accent foreground | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Destructive | #d51d10firebrick | #d51d10firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #edededwhitesmoke | #edededwhitesmoke |
| Input | #e6e6e6gainsboro | #e6e6e6gainsboro |
| Ring | #090910black | #090910black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.99:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 6.31:1 | AA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 5.21:1 | AA |
| Text on background | 18.99:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 6.31:1 | AA |
| Secondary button | 7.97:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 5.21:1 | AA |
Paste this into your globals.css to use Laravel in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0 180);
--foreground: oklch(0.145 0.015 284.3);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.962 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.97 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.947 0 180);
--input: oklch(0.923 0 153.435);
--primary: oklch(0.145 0.015 284.3);
--primary-foreground: oklch(0.661 0.074 284.2);
--secondary: oklch(0.777 0.032 285.621);
--secondary-foreground: oklch(0.247 0.026 284.338);
--accent: oklch(0.869 0 165.964);
--accent-foreground: oklch(0.351 0 167.471);
--destructive: oklch(0.559 0.216 29.724);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.145 0.015 284.3);
--chart-1: oklch(0.145 0.015 284.3);
--chart-2: oklch(0.777 0.032 285.621);
--chart-3: oklch(0.869 0 165.964);
--chart-4: oklch(0.804 0.028 285.747);
--chart-5: oklch(0.143 0.017 284.014);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.985 0 180);
--foreground: oklch(0.145 0.015 284.3);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.962 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.97 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.947 0 180);
--input: oklch(0.923 0 153.435);
--primary: oklch(0.145 0.015 284.3);
--primary-foreground: oklch(0.661 0.074 284.2);
--secondary: oklch(0.777 0.032 285.621);
--secondary-foreground: oklch(0.247 0.026 284.338);
--accent: oklch(0.869 0 165.964);
--accent-foreground: oklch(0.351 0 167.471);
--destructive: oklch(0.559 0.216 29.724);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.145 0.015 284.3);
--chart-1: oklch(0.145 0.015 284.3);
--chart-2: oklch(0.777 0.032 285.621);
--chart-3: oklch(0.869 0 165.964);
--chart-4: oklch(0.804 0.028 285.747);
--chart-5: oklch(0.143 0.017 284.014);
}