Oblong is a shadcn/ui theme built around a vivid green primary color (#28eb49) with vivid teal accents (#28ebaa). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#28eb49) on a green-tinted background (#060e08).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060e08black |
| Foreground | #010402black | #fbfdfcwhite |
| Card | #ffffffwhite | #060e08black |
| Card foreground | #010402black | #fbfdfcwhite |
| Popover | #ffffffwhite | #060e08black |
| Popover foreground | #010402black | #fbfdfcwhite |
| Primary | #28eb49limegreen | #28eb49limegreen |
| Primary foreground | #064110darkgreen | #064110darkgreen |
| Secondary | #69eb28lawngreen | #69eb28lawngreen |
| Secondary foreground | #1a4106darkgreen | #1a4106darkgreen |
| Muted | #dde1dagainsboro | #20251eblack |
| Muted foreground | #586652dimgray | #a0ad99darkgray |
| Accent | #28ebaamediumspringgreen | #28ebaamediumspringgreen |
| Accent foreground | #06412edarkslategray | #06412edarkslategray |
| Destructive | #a12c12brown | #e74723chocolate |
| Destructive foreground | #fcece8linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #28eb49limegreen | #28eb49limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 7.38:1 | AAA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 4.62:1 | AA |
| Accent | 7.52:1 | AAA |
| Destructive | 6.36:1 | AA |
| Text on background | 19.13:1 | AAA |
| Text on card | 19.13:1 | AAA |
| Primary button | 7.38:1 | AAA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 6.65:1 | AA |
| Accent | 7.52:1 | AAA |
| Destructive | 3.96:1 | AA Large |
Paste this into your globals.css to use Oblong in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.098 0.018 149.738);
--muted: oklch(0.905 0.011 134.888);
--muted-foreground: oklch(0.492 0.035 135.204);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.098 0.018 149.738);
--card: oklch(1 0 180);
--card-foreground: oklch(0.098 0.018 149.738);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.82 0.249 144.699);
--primary-foreground: oklch(0.329 0.098 145.09);
--secondary: oklch(0.834 0.246 138.158);
--secondary-foreground: oklch(0.335 0.096 137.778);
--accent: oklch(0.835 0.172 163.78);
--accent-foreground: oklch(0.335 0.067 164.564);
--destructive: oklch(0.472 0.157 33.714);
--destructive-foreground: oklch(0.955 0.019 32.673);
--ring: oklch(0.82 0.249 144.699);
--chart-1: oklch(0.82 0.249 144.699);
--chart-2: oklch(0.834 0.246 138.158);
--chart-3: oklch(0.835 0.172 163.78);
--chart-4: oklch(0.841 0.237 137.701);
--chart-5: oklch(0.829 0.255 144.55);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.153 0.019 149.778);
--foreground: oklch(0.993 0.003 150.778);
--muted: oklch(0.256 0.015 135.132);
--muted-foreground: oklch(0.732 0.032 135.051);
--popover: oklch(0.153 0.019 149.778);
--popover-foreground: oklch(0.993 0.003 150.778);
--card: oklch(0.153 0.019 149.778);
--card-foreground: oklch(0.993 0.003 150.778);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.82 0.249 144.699);
--primary-foreground: oklch(0.329 0.098 145.09);
--secondary: oklch(0.834 0.246 138.158);
--secondary-foreground: oklch(0.335 0.096 137.778);
--accent: oklch(0.835 0.172 163.78);
--accent-foreground: oklch(0.335 0.067 164.564);
--destructive: oklch(0.622 0.202 33.836);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.82 0.249 144.699);
--chart-1: oklch(0.82 0.249 144.699);
--chart-2: oklch(0.834 0.246 138.158);
--chart-3: oklch(0.835 0.172 163.78);
--chart-4: oklch(0.841 0.237 137.701);
--chart-5: oklch(0.829 0.255 144.55);
}