Settler is a shadcn/ui theme built around a blue primary color (#325881) with indigo accents (#333281). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#325881) on a neutral background (#020508).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020508black |
| Foreground | #020a12black | #ffffffwhite |
| Card | #ffffffwhite | #020508black |
| Card foreground | #020a12black | #ffffffwhite |
| Popover | #ffffffwhite | #020508black |
| Popover foreground | #020a12black | #ffffffwhite |
| Primary | #325881darkslateblue | #325881darkslateblue |
| Primary foreground | #edf2f8whitesmoke | #edf2f8whitesmoke |
| Secondary | #327f81seagreen | #327f81seagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dbebeblavender | #142424black |
| Muted foreground | #4c4d4ddarkslategray | #b2b3b3darkgray |
| Accent | #333281darkslateblue | #333281darkslateblue |
| Accent foreground | #ededf8lavender | #ededf8lavender |
| Destructive | #d41e02firebrick | #fd2808orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #325881darkslateblue | #325881darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 6.56:1 | AA |
| Secondary button | 4.67:1 | AA |
| Muted text | 6.89:1 | AA |
| Accent | 9.44:1 | AAA |
| Destructive | 5.26:1 | AA |
| Text on background | 20.42:1 | AAA |
| Text on card | 20.42:1 | AAA |
| Primary button | 6.56:1 | AA |
| Secondary button | 4.67:1 | AA |
| Muted text | 7.64:1 | AAA |
| Accent | 9.44:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Settler in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.139 0.024 243.375);
--muted: oklch(0.928 0.017 198.092);
--muted-foreground: oklch(0.42 0.002 198.292);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.139 0.024 243.375);
--card: oklch(1 0 180);
--card-foreground: oklch(0.139 0.024 243.375);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.451 0.08 251.443);
--primary-foreground: oklch(0.959 0.01 249.745);
--secondary: oklch(0.551 0.075 196.755);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.368 0.129 278.714);
--accent-foreground: oklch(0.948 0.015 286.877);
--destructive: oklch(0.556 0.215 31.066);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.451 0.08 251.443);
--chart-1: oklch(0.451 0.08 251.443);
--chart-2: oklch(0.551 0.075 196.755);
--chart-3: oklch(0.368 0.129 278.714);
--chart-4: oklch(0.584 0.08 196.75);
--chart-5: oklch(0.451 0.085 251.624);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.013 241.487);
--foreground: oklch(1 0 180);
--muted: oklch(0.246 0.022 197.2);
--muted-foreground: oklch(0.766 0.002 198.329);
--popover: oklch(0.111 0.013 241.487);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.111 0.013 241.487);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.451 0.08 251.443);
--primary-foreground: oklch(0.959 0.01 249.745);
--secondary: oklch(0.551 0.075 196.755);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.368 0.129 278.714);
--accent-foreground: oklch(0.948 0.015 286.877);
--destructive: oklch(0.636 0.244 31.034);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.451 0.08 251.443);
--chart-1: oklch(0.451 0.08 251.443);
--chart-2: oklch(0.551 0.075 196.755);
--chart-3: oklch(0.368 0.129 278.714);
--chart-4: oklch(0.584 0.08 196.75);
--chart-5: oklch(0.451 0.085 251.624);
}