Online is a shadcn/ui theme built around a green primary color (#3ce25a) with red accents (#e25a3c). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the green primary (#3ce25a) on a neutral background (#020803).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf8mintcream | #020803black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #f2fcf4honeydew | #030c05black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f7fdf8mintcream | #020803black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #3ce25alimegreen | #3ce25alimegreen |
| Primary foreground | #0b4716darkgreen | #0b4716darkgreen |
| Secondary | #5a3ce2slateblue | #5a3ce2slateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d6d4degainsboro | #23212bdarkslategray |
| Muted foreground | #484653darkslategray | #aeacb9darkgray |
| Accent | #e25a3ctomato | #e25a3ctomato |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6b0e05maroon | #f53524orangered |
| Destructive foreground | #fbaea7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3ce25alimegreen | #3ce25alimegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.37:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 6.33:1 | AA |
| Secondary button | 6.61:1 | AA |
| Muted text | 6.27:1 | AA |
| Accent | 3.64:1 | AA Large |
| Destructive | 6.93:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 6.33:1 | AA |
| Secondary button | 6.61:1 | AA |
| Muted text | 7.08:1 | AAA |
| Accent | 3.64:1 | AA Large |
| Destructive | 3.88:1 | AA Large |
Paste this into your globals.css to use Online in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.01 151.26);
--foreground: oklch(0 0 0);
--muted: oklch(0.874 0.014 294.533);
--muted-foreground: oklch(0.4 0.023 293.737);
--popover: oklch(0.988 0.01 151.26);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.015 151.184);
--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.801 0.223 145.842);
--primary-foreground: oklch(0.349 0.099 145.669);
--secondary: oklch(0.502 0.235 282.285);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.639 0.176 34.152);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.341 0.128 30.307);
--destructive-foreground: oklch(0.823 0.091 25.005);
--ring: oklch(0.801 0.223 145.842);
--chart-1: oklch(0.801 0.223 145.842);
--chart-2: oklch(0.502 0.235 282.285);
--chart-3: oklch(0.639 0.176 34.152);
--chart-4: oklch(0.531 0.222 284.323);
--chart-5: oklch(0.809 0.229 145.668);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.022 150.414);
--foreground: oklch(0.993 0.001 151.392);
--muted: oklch(0.255 0.019 293.437);
--muted-foreground: oklch(0.75 0.02 294.334);
--popover: oklch(0.123 0.022 150.414);
--popover-foreground: oklch(0.993 0.001 151.392);
--card: oklch(0.141 0.025 150.296);
--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.801 0.223 145.842);
--primary-foreground: oklch(0.349 0.099 145.669);
--secondary: oklch(0.502 0.235 282.285);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.639 0.176 34.152);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.631 0.228 29.92);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.801 0.223 145.842);
--chart-1: oklch(0.801 0.223 145.842);
--chart-2: oklch(0.502 0.235 282.285);
--chart-3: oklch(0.639 0.176 34.152);
--chart-4: oklch(0.531 0.222 284.323);
--chart-5: oklch(0.809 0.229 145.668);
}