Fortnight is a shadcn/ui theme built around a light green primary color (#d6e4aa) with muted light green accents (#cfd5b8). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the light green primary (#d6e4aa) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #030302black |
| Foreground | #070901black | #f9faf4whitesmoke |
| Card | #fbfcf8snow | #030302black |
| Card foreground | #070901black | #f9faf4whitesmoke |
| Popover | #fbfcf8snow | #030302black |
| Popover foreground | #070901black | #f9faf4whitesmoke |
| Primary | #d6e4aapalegoldenrod | #d6e4aapalegoldenrod |
| Primary foreground | #3a4516darkolivegreen | #3a4516darkolivegreen |
| Secondary | #e3e5dcgainsboro | #2d2e29darkslategray |
| Secondary foreground | #4d533cdarkolivegreen | #c6c7c1silver |
| Muted | #dee0d7gainsboro | #26281fdarkslategray |
| Muted foreground | #565851dimgray | #adaea7darkgray |
| Accent | #cfd5b8silver | #3b3e32darkslategray |
| Accent foreground | #343a22darkslategray | #d4d6cdlightgrey |
| Destructive | #e33702orangered | #fd6030tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d6e4aapalegoldenrod | #d6e4aapalegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 7.58:1 | AAA |
| Secondary button | 6.31:1 | AA |
| Muted text | 5.40:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 4.36:1 | AA Large |
| Text on background | 19.62:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 7.58:1 | AAA |
| Secondary button | 8.09:1 | AAA |
| Muted text | 6.65:1 | AA |
| Accent | 7.46:1 | AAA |
| Destructive | 6.88:1 | AA |
Paste this into your globals.css to use Fortnight in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 117.166);
--foreground: oklch(0.134 0.026 117.489);
--muted: oklch(0.902 0.013 117.332);
--muted-foreground: oklch(0.455 0.011 117.509);
--popover: oklch(0.989 0.005 117.166);
--popover-foreground: oklch(0.134 0.026 117.489);
--card: oklch(0.989 0.005 117.166);
--card-foreground: oklch(0.134 0.026 117.489);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.893 0.076 118.64);
--primary-foreground: oklch(0.37 0.07 121.02);
--secondary: oklch(0.918 0.013 117.34);
--secondary-foreground: oklch(0.43 0.037 118.633);
--accent: oklch(0.861 0.04 117.915);
--accent-foreground: oklch(0.335 0.04 119.296);
--destructive: oklch(0.6 0.214 34.147);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.893 0.076 118.64);
--chart-1: oklch(0.893 0.076 118.64);
--chart-2: oklch(0.918 0.013 117.34);
--chart-3: oklch(0.861 0.04 117.915);
--chart-4: oklch(0.939 0.01 117.269);
--chart-5: oklch(0.897 0.081 118.723);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.009 117.279);
--foreground: oklch(0.984 0.008 117.229);
--muted: oklch(0.273 0.017 118.196);
--muted-foreground: oklch(0.748 0.01 117.311);
--popover: oklch(0.098 0.009 117.279);
--popover-foreground: oklch(0.984 0.008 117.229);
--card: oklch(0.098 0.009 117.279);
--card-foreground: oklch(0.984 0.008 117.229);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.893 0.076 118.64);
--primary-foreground: oklch(0.37 0.07 121.02);
--secondary: oklch(0.297 0.008 117.551);
--secondary-foreground: oklch(0.828 0.008 117.257);
--accent: oklch(0.357 0.019 118.046);
--accent-foreground: oklch(0.871 0.013 117.34);
--destructive: oklch(0.687 0.201 36.83);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.893 0.076 118.64);
--chart-1: oklch(0.893 0.076 118.64);
--chart-2: oklch(0.297 0.008 117.551);
--chart-3: oklch(0.357 0.019 118.046);
--chart-4: oklch(0.328 0.009 117.569);
--chart-5: oklch(0.897 0.081 118.723);
}