Useful is a shadcn/ui theme built around a vivid teal primary color (#08b56a) with vivid orange accents (#b56a08). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid teal primary (#08b56a) on a teal-tinted background (#050b08).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050b08black |
| Foreground | #010403black | #fcfdfdwhite |
| Card | #ffffffwhite | #050b08black |
| Card foreground | #010403black | #fcfdfdwhite |
| Popover | #ffffffwhite | #050b08black |
| Popover foreground | #010403black | #fcfdfdwhite |
| Primary | #08b56amediumseagreen | #08b56amediumseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6a08b5rebeccapurple | #6a08b5rebeccapurple |
| Secondary foreground | #f8f0feghostwhite | #f8f0feghostwhite |
| Muted | #e2d7eagainsboro | #201528black |
| Muted foreground | #62576bdimgray | #9f94a8darkgray |
| Accent | #b56a08darkgoldenrod | #b56a08darkgoldenrod |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d01406firebrick | #f8382aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #08b56amediumseagreen | #08b56amediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.58:1 | AAA |
| Primary button | 2.67:1 | Fail |
| Secondary button | 8.16:1 | AAA |
| Muted text | 4.89:1 | AA |
| Accent | 4.17:1 | AA Large |
| Destructive | 5.55:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 2.67:1 | Fail |
| Secondary button | 8.16:1 | AAA |
| Muted text | 6.05:1 | AA |
| Accent | 4.17:1 | AA Large |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Useful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.1 0.015 169.025);
--muted: oklch(0.894 0.027 310.821);
--muted-foreground: oklch(0.475 0.034 310.474);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.015 169.025);
--card: oklch(1 0 180);
--card-foreground: oklch(0.1 0.015 169.025);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.68 0.166 155.423);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.434 0.226 301.134);
--secondary-foreground: oklch(0.966 0.02 310.901);
--accent: oklch(0.595 0.134 63.07);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.544 0.215 29.782);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.68 0.166 155.423);
--chart-1: oklch(0.68 0.166 155.423);
--chart-2: oklch(0.434 0.226 301.134);
--chart-3: oklch(0.595 0.134 63.07);
--chart-4: oklch(0.459 0.239 300.982);
--chart-5: oklch(0.688 0.169 155.088);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.013 168.866);
--foreground: oklch(0.994 0.002 168.672);
--muted: oklch(0.22 0.038 309.543);
--muted-foreground: oklch(0.684 0.031 310.696);
--popover: oklch(0.139 0.013 168.866);
--popover-foreground: oklch(0.994 0.002 168.672);
--card: oklch(0.139 0.013 168.866);
--card-foreground: oklch(0.994 0.002 168.672);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.68 0.166 155.423);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.434 0.226 301.134);
--secondary-foreground: oklch(0.966 0.02 310.901);
--accent: oklch(0.595 0.134 63.07);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.64 0.229 29.247);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.68 0.166 155.423);
--chart-1: oklch(0.68 0.166 155.423);
--chart-2: oklch(0.434 0.226 301.134);
--chart-3: oklch(0.595 0.134 63.07);
--chart-4: oklch(0.459 0.239 300.982);
--chart-5: oklch(0.688 0.169 155.088);
}