Outlaw is a shadcn/ui theme built around a neutral gray primary color (#3e4142) with muted light cyan accents (#e3eaed). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#3e4142) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #040e11black | #ffffffwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #030a0dblack | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #040e11black | #ffffffwhite |
| Primary | #3e4142darkslategray | #3e4142darkslategray |
| Primary foreground | #d8d9dagainsboro | #d8d9dagainsboro |
| Secondary | #e3eaedlavender | #242728darkslategray |
| Secondary foreground | #3f575fdarkslategray | #bcc1c2silver |
| Muted | #cfdee2gainsboro | #1d2b30darkslategray |
| Muted foreground | #586265dimgray | #9aa4a7darkgray |
| Accent | #e3eaedlavender | #242728darkslategray |
| Accent foreground | #3f575fdarkslategray | #bcc1c2silver |
| Destructive | #b4240efirebrick | #d52a10firebrick |
| Destructive foreground | #fef7f6snow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3e4142darkslategray | #3e4142darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 6.31:1 | AA |
| Muted text | 4.52:1 | AA |
| Accent | 6.31:1 | AA |
| Destructive | 6.19:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 5.72:1 | AA |
| Accent | 8.24:1 | AAA |
| Destructive | 5.01:1 | AA |
Paste this into your globals.css to use Outlaw in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.152 0.018 218.172);
--muted: oklch(0.89 0.017 219.66);
--muted-foreground: oklch(0.488 0.013 219.746);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.152 0.018 218.172);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.137 0.016 215.349);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.372 0.004 219.593);
--primary-foreground: oklch(0.885 0.002 219.524);
--secondary: oklch(0.934 0.008 219.571);
--secondary-foreground: oklch(0.44 0.032 220.407);
--accent: oklch(0.934 0.008 219.571);
--accent-foreground: oklch(0.44 0.032 220.407);
--destructive: oklch(0.501 0.183 31.499);
--destructive-foreground: oklch(0.981 0.008 27.976);
--ring: oklch(0.372 0.004 219.593);
--chart-1: oklch(0.372 0.004 219.593);
--chart-2: oklch(0.934 0.008 219.571);
--chart-3: oklch(0.934 0.008 219.571);
--chart-4: oklch(0.956 0.005 219.548);
--chart-5: oklch(0.373 0.008 219.693);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.278 0.021 220.508);
--muted-foreground: oklch(0.712 0.012 219.645);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.372 0.004 219.593);
--primary-foreground: oklch(0.885 0.002 219.524);
--secondary: oklch(0.271 0.005 219.64);
--secondary-foreground: oklch(0.807 0.006 219.56);
--accent: oklch(0.271 0.005 219.64);
--accent-foreground: oklch(0.807 0.006 219.56);
--destructive: oklch(0.567 0.209 31.444);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.372 0.004 219.593);
--chart-1: oklch(0.372 0.004 219.593);
--chart-2: oklch(0.271 0.005 219.64);
--chart-3: oklch(0.271 0.005 219.64);
--chart-4: oklch(0.302 0.005 219.647);
--chart-5: oklch(0.373 0.008 219.693);
}