Freighter is a shadcn/ui theme built around a deep yellow primary color (#585a1b) with deep green accents (#395a1b). The light mode uses a neutral background (#fdfdf7). Dark mode keeps the deep yellow primary (#585a1b) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdf7snow | #030302black |
| Foreground | #000000black | #f9f9f5whitesmoke |
| Card | #fdfdf7snow | #030302black |
| Card foreground | #000000black | #f9f9f5whitesmoke |
| Popover | #fdfdf7snow | #030302black |
| Popover foreground | #000000black | #f9f9f5whitesmoke |
| Primary | #585a1bdarkolivegreen | #585a1bdarkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #5a3d1bsaddlebrown | #5a3d1bsaddlebrown |
| Secondary foreground | #ebd5bcwheat | #ebd5bcwheat |
| Muted | #e7dcd0gainsboro | #2f2418black |
| Muted foreground | #4a433adarkslategray | #c5bdb5silver |
| Accent | #395a1bdarkolivegreen | #395a1bdarkolivegreen |
| Accent foreground | #d2ebbclightgrey | #d2ebbclightgrey |
| Destructive | #cb4b10chocolate | #ef7339tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #585a1bdarkolivegreen | #585a1bdarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.56:1 | AAA |
| Text on card | 20.56:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 7.21:1 | AAA |
| Accent | 6.14:1 | AA |
| Destructive | 4.60:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 8.11:1 | AAA |
| Accent | 6.14:1 | AA |
| Destructive | 7.15:1 | AAA |
Paste this into your globals.css to use Freighter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.008 108.091);
--foreground: oklch(0 0 0);
--muted: oklch(0.9 0.021 71.237);
--muted-foreground: oklch(0.387 0.017 70.994);
--popover: oklch(0.992 0.008 108.091);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0.008 108.091);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.453 0.084 111.169);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.386 0.064 67.494);
--secondary-foreground: oklch(0.885 0.041 70.968);
--accent: oklch(0.428 0.099 133.091);
--accent-foreground: oklch(0.91 0.068 130.559);
--destructive: oklch(0.581 0.173 40.445);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.453 0.084 111.169);
--chart-1: oklch(0.453 0.084 111.169);
--chart-2: oklch(0.386 0.064 67.494);
--chart-3: oklch(0.428 0.099 133.091);
--chart-4: oklch(0.419 0.07 67.328);
--chart-5: oklch(0.459 0.087 111.255);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.009 109.23);
--foreground: oklch(0.982 0.006 108.045);
--muted: oklch(0.271 0.027 70.007);
--muted-foreground: oklch(0.803 0.014 71.288);
--popover: oklch(0.099 0.009 109.23);
--popover-foreground: oklch(0.982 0.006 108.045);
--card: oklch(0.099 0.009 109.23);
--card-foreground: oklch(0.982 0.006 108.045);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.453 0.084 111.169);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.386 0.064 67.494);
--secondary-foreground: oklch(0.885 0.041 70.968);
--accent: oklch(0.428 0.099 133.091);
--accent-foreground: oklch(0.91 0.068 130.559);
--destructive: oklch(0.692 0.169 43.392);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.453 0.084 111.169);
--chart-1: oklch(0.453 0.084 111.169);
--chart-2: oklch(0.386 0.064 67.494);
--chart-3: oklch(0.428 0.099 133.091);
--chart-4: oklch(0.419 0.07 67.328);
--chart-5: oklch(0.459 0.087 111.255);
}