Forthright is a shadcn/ui theme built around a muted light green primary color (#ced5be) with muted light violet accents (#c5bed5). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the muted light green primary (#ced5be) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #000000black |
| Foreground | #070901black | #fdfdfcwhite |
| Card | #f9faf4whitesmoke | #030303black |
| Card foreground | #030401black | #ffffffwhite |
| Popover | #f9faf4whitesmoke | #030303black |
| Popover foreground | #030401black | #ffffffwhite |
| Primary | #ced5belightgrey | #ced5belightgrey |
| Primary foreground | #353b26darkslategray | #353b26darkslategray |
| Secondary | #c5bed5thistle | #c5bed5thistle |
| Secondary foreground | #2c263bdarkslategray | #2c263bdarkslategray |
| Muted | #ebe9f2lavender | #100d16black |
| Muted foreground | #474748darkslategray | #b7b7b8silver |
| Accent | #c5bed5thistle | #c5bed5thistle |
| Accent foreground | #2c263bdarkslategray | #2c263bdarkslategray |
| Destructive | #af360efirebrick | #ec4913orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ced5belightgrey | #ced5belightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.40:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 7.67:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 7.70:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 6.26:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.67:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 9.58:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Forthright in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 120.127);
--foreground: oklch(0.132 0.024 119.874);
--muted: oklch(0.938 0.012 299.818);
--muted-foreground: oklch(0.398 0.002 299.935);
--popover: oklch(0.983 0.008 120.173);
--popover-foreground: oklch(0.105 0.019 119.874);
--card: oklch(0.983 0.008 120.173);
--card-foreground: oklch(0.105 0.019 119.874);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.861 0.031 120.653);
--primary-foreground: oklch(0.339 0.035 121.836);
--secondary: oklch(0.815 0.032 299.375);
--secondary-foreground: oklch(0.286 0.037 297.762);
--accent: oklch(0.815 0.032 299.375);
--accent-foreground: oklch(0.286 0.037 297.762);
--destructive: oklch(0.508 0.163 36.594);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.861 0.031 120.653);
--chart-1: oklch(0.861 0.031 120.653);
--chart-2: oklch(0.815 0.032 299.375);
--chart-3: oklch(0.815 0.032 299.375);
--chart-4: oklch(0.842 0.027 299.493);
--chart-5: oklch(0.864 0.036 120.737);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 120.06);
--muted: oklch(0.169 0.019 298.122);
--muted-foreground: oklch(0.78 0.002 299.994);
--popover: oklch(0.092 0 180);
--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.861 0.031 120.653);
--primary-foreground: oklch(0.339 0.035 121.836);
--secondary: oklch(0.815 0.032 299.375);
--secondary-foreground: oklch(0.286 0.037 297.762);
--accent: oklch(0.815 0.032 299.375);
--accent-foreground: oklch(0.286 0.037 297.762);
--destructive: oklch(0.633 0.207 36.261);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.861 0.031 120.653);
--chart-1: oklch(0.861 0.031 120.653);
--chart-2: oklch(0.815 0.032 299.375);
--chart-3: oklch(0.815 0.032 299.375);
--chart-4: oklch(0.842 0.027 299.493);
--chart-5: oklch(0.864 0.036 120.737);
}