Slider is a shadcn/ui theme built around a neutral gray primary color (#818d87) with neutral gray accents (#8d8187). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#818d87) on a teal-tinted background (#040b08).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040b08black |
| Foreground | #040b08black | #f9fbfamintcream |
| Card | #fcfcfcsnow | #050f0ablack |
| Card foreground | #030805black | #fcfdfcwhite |
| Popover | #fcfcfcsnow | #050f0ablack |
| Popover foreground | #030805black | #fcfdfcwhite |
| Primary | #818d87gray | #818d87gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #8d8187gray | #8d8187gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #ebe0e6gainsboro | #1f141ablack |
| Muted foreground | #4f4047darkslategray | #bfb0b8silver |
| Accent | #8d8187gray | #8d8187gray |
| Accent foreground | #000000black | #000000black |
| Destructive | #611605maroon | #f44f2atomato |
| Destructive foreground | #faaf9elightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #818d87gray | #818d87gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 5.63:1 | AA |
| Muted text | 7.56:1 | AAA |
| Accent | 5.63:1 | AA |
| Destructive | 7.20:1 | AAA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 5.63:1 | AA |
| Muted text | 8.63:1 | AAA |
| Accent | 5.63:1 | AA |
| Destructive | 3.50:1 | AA Large |
Paste this into your globals.css to use Slider in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.141 0.017 165.068);
--muted: oklch(0.917 0.014 345.546);
--muted-foreground: oklch(0.39 0.023 346.603);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.123 0.015 165.274);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.123 0.015 165.274);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.632 0.017 164.441);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.616 0.017 345.845);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.616 0.017 345.845);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.327 0.11 33.926);
--destructive-foreground: oklch(0.821 0.092 33.113);
--ring: oklch(0.632 0.017 164.441);
--chart-1: oklch(0.632 0.017 164.441);
--chart-2: oklch(0.616 0.017 345.845);
--chart-3: oklch(0.616 0.017 345.845);
--chart-4: oklch(0.642 0.016 345.769);
--chart-5: oklch(0.638 0.026 164.019);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.016 165.099);
--foreground: oklch(0.986 0.002 165.083);
--muted: oklch(0.208 0.021 347.62);
--muted-foreground: oklch(0.773 0.019 345.775);
--popover: oklch(0.157 0.019 163.35);
--popover-foreground: oklch(0.993 0.001 165.114);
--card: oklch(0.157 0.019 163.35);
--card-foreground: oklch(0.993 0.001 165.114);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.632 0.017 164.441);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.616 0.017 345.845);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.616 0.017 345.845);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.653 0.207 33.941);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.632 0.017 164.441);
--chart-1: oklch(0.632 0.017 164.441);
--chart-2: oklch(0.616 0.017 345.845);
--chart-3: oklch(0.616 0.017 345.845);
--chart-4: oklch(0.642 0.016 345.769);
--chart-5: oklch(0.638 0.026 164.019);
}