Elongation is a shadcn/ui theme built around a light yellow primary color (#e3e3a5) with light green accents (#c4e3a5). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the light yellow primary (#e3e3a5) on a yellow-tinted background (#0f0f06).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf8snow | #0f0f06black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcf8snow | #0f0f06black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcf8snow | #0f0f06black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #e3e3a5palegoldenrod | #e3e3a5palegoldenrod |
| Primary foreground | #424214darkolivegreen | #424214darkolivegreen |
| Secondary | #e3c4a5burlywood | #e3c4a5burlywood |
| Secondary foreground | #422b14darkslategray | #422b14darkslategray |
| Muted | #efebe6linen | #191410black |
| Muted foreground | #4f4740darkslategray | #bfb8b0silver |
| Accent | #c4e3a5palegoldenrod | #c4e3a5palegoldenrod |
| Accent foreground | #2b4214darkgreen | #2b4214darkgreen |
| Destructive | #953309saddlebrown | #eb510forangered |
| Destructive foreground | #fce0d4antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e3e3a5palegoldenrod | #e3e3a5palegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.36:1 | AAA |
| Text on card | 20.36:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 7.64:1 | AAA |
| Accent | 7.89:1 | AAA |
| Destructive | 6.08:1 | AA |
| Text on background | 19.26:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 9.29:1 | AAA |
| Accent | 7.89:1 | AAA |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Elongation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 106.483);
--foreground: oklch(0 0 0);
--muted: oklch(0.941 0.007 67.735);
--muted-foreground: oklch(0.404 0.015 67.377);
--popover: oklch(0.989 0.005 106.483);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.005 106.483);
--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.902 0.08 107.907);
--primary-foreground: oklch(0.37 0.065 109.213);
--secondary: oklch(0.84 0.055 66.966);
--secondary-foreground: oklch(0.313 0.049 64.277);
--accent: oklch(0.879 0.089 129.665);
--accent-foreground: oklch(0.35 0.076 131.718);
--destructive: oklch(0.459 0.139 39.453);
--destructive-foreground: oklch(0.927 0.035 44.634);
--ring: oklch(0.902 0.08 107.907);
--chart-1: oklch(0.902 0.08 107.907);
--chart-2: oklch(0.84 0.055 66.966);
--chart-3: oklch(0.879 0.089 129.665);
--chart-4: oklch(0.861 0.047 67.127);
--chart-5: oklch(0.907 0.084 107.972);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.164 0.02 108.372);
--foreground: oklch(1 0 180);
--muted: oklch(0.197 0.011 67.124);
--muted-foreground: oklch(0.785 0.013 67.638);
--popover: oklch(0.164 0.02 108.372);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.164 0.02 108.372);
--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.902 0.08 107.907);
--primary-foreground: oklch(0.37 0.065 109.213);
--secondary: oklch(0.84 0.055 66.966);
--secondary-foreground: oklch(0.313 0.049 64.277);
--accent: oklch(0.879 0.089 129.665);
--accent-foreground: oklch(0.35 0.076 131.718);
--destructive: oklch(0.639 0.201 38.705);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.902 0.08 107.907);
--chart-1: oklch(0.902 0.08 107.907);
--chart-2: oklch(0.84 0.055 66.966);
--chart-3: oklch(0.879 0.089 129.665);
--chart-4: oklch(0.861 0.047 67.127);
--chart-5: oklch(0.907 0.084 107.972);
}