L- aby slate is a shadcn/ui theme built around a deep blue primary color (#163b56) with light blue accents (#cbdce7). The light mode uses a neutral background (#f5f5f4). Dark mode switches to a near-white primary (#fafaf9) on an orange-tinted background (#0c0a09).
| Token | Light | Dark |
|---|---|---|
| Background | #f5f5f4whitesmoke | #0c0a09black |
| Foreground | #0c0a09black | #fafaf9snow |
| Card | #f5f5f4whitesmoke | #0c0a09black |
| Card foreground | #0c0a09black | #fafaf9snow |
| Popover | #f5f5f4whitesmoke | #0c0a09black |
| Popover foreground | #0c0a09black | #fafaf9snow |
| Primary | #163b56darkslategray | #fafaf9snow |
| Primary foreground | #fafaf9snow | #1c1917black |
| Secondary | #cbdce7gainsboro | #292524darkslategray |
| Secondary foreground | #082031black | #fafaf9snow |
| Muted | #d4d4d4lightgrey | #292524darkslategray |
| Muted foreground | #35312edarkslategray | #a8a29edarkgray |
| Accent | #cbdce7gainsboro | #292524darkslategray |
| Accent foreground | #082031black | #fafaf9snow |
| Destructive | #ef4444tomato | #7f1d1dmaroon |
| Destructive foreground | #fafaf9snow | #fafaf9snow |
| Border | #d4d4d4lightgrey | #292524darkslategray |
| Input | #e7e5e4gainsboro | #292524darkslategray |
| Ring | #0c0a09black | #d6d3d1lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.10:1 | AAA |
| Text on card | 18.10:1 | AAA |
| Primary button | 11.20:1 | AAA |
| Secondary button | 11.82:1 | AAA |
| Muted text | 8.67:1 | AAA |
| Accent | 11.83:1 | AAA |
| Destructive | 3.60:1 | AA Large |
| Text on background | 18.92:1 | AAA |
| Text on card | 18.92:1 | AAA |
| Primary button | 16.73:1 | AAA |
| Secondary button | 14.52:1 | AAA |
| Muted text | 6.01:1 | AA |
| Accent | 14.52:1 | AAA |
| Destructive | 9.58:1 | AAA |
Paste this into your globals.css to use L- aby slate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.97 0.001 106.424);
--foreground: oklch(0.147 0.004 49.314);
--muted: oklch(0.869 0 180);
--muted-foreground: oklch(0.317 0.007 58.045);
--popover: oklch(0.97 0.001 106.424);
--popover-foreground: oklch(0.147 0.004 49.314);
--card: oklch(0.97 0.001 106.424);
--card-foreground: oklch(0.147 0.004 49.314);
--border: oklch(0.87 0 180);
--input: oklch(0.923 0.003 48.716);
--primary: oklch(0.34 0.063 243.415);
--primary-foreground: oklch(0.985 0.001 106.424);
--secondary: oklch(0.885 0.024 237.896);
--secondary-foreground: oklch(0.234 0.044 242.757);
--accent: oklch(0.885 0.024 236.005);
--accent-foreground: oklch(0.234 0.044 242.509);
--destructive: oklch(0.637 0.208 25.326);
--destructive-foreground: oklch(0.985 0.001 106.424);
--ring: oklch(0.147 0.004 49.314);
--chart-1: oklch(0.34 0.063 243.415);
--chart-2: oklch(0.885 0.024 237.896);
--chart-3: oklch(0.885 0.024 236.005);
--chart-4: oklch(0.908 0.019 237.802);
--chart-5: oklch(0.341 0.066 243.756);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.147 0.004 49.314);
--foreground: oklch(0.985 0.001 106.424);
--muted: oklch(0.269 0.006 34.297);
--muted-foreground: oklch(0.716 0.009 56.26);
--popover: oklch(0.147 0.004 49.314);
--popover-foreground: oklch(0.985 0.001 106.424);
--card: oklch(0.147 0.004 49.314);
--card-foreground: oklch(0.985 0.001 106.424);
--border: oklch(0.269 0.006 34.297);
--input: oklch(0.269 0.006 34.297);
--primary: oklch(0.985 0.001 106.424);
--primary-foreground: oklch(0.216 0.006 56.043);
--secondary: oklch(0.269 0.006 34.297);
--secondary-foreground: oklch(0.985 0.001 106.424);
--accent: oklch(0.269 0.006 34.297);
--accent-foreground: oklch(0.985 0.001 106.424);
--destructive: oklch(0.396 0.133 25.721);
--destructive-foreground: oklch(0.985 0.001 106.424);
--ring: oklch(0.868 0.004 56.366);
--chart-1: oklch(0.985 0.001 106.424);
--chart-2: oklch(0.269 0.006 34.297);
--chart-3: oklch(0.269 0.006 34.297);
--chart-4: oklch(0.299 0.007 34.298);
--chart-5: oklch(0.985 0.002 106.432);
}