General is a shadcn/ui theme built around a vivid cyan primary color (#30e3f3) with muted light red accents (#ded8d8). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the vivid cyan primary (#30e3f3) on a cyan-tinted background (#050a0a).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fbfcghostwhite | #050a0ablack |
| Foreground | #000000black | #f5f9f9whitesmoke |
| Card | #f8fbfcghostwhite | #050a0ablack |
| Card foreground | #000000black | #f5f9f9whitesmoke |
| Popover | #f8fbfcghostwhite | #050a0ablack |
| Popover foreground | #000000black | #f5f9f9whitesmoke |
| Primary | #30e3f3turquoise | #30e3f3turquoise |
| Primary foreground | #054c52darkslategray | #054c52darkslategray |
| Secondary | #ebebeblinen | #1d292adarkslategray |
| Secondary foreground | #525252darkslategray | #b0c7c9silver |
| Muted | #efe6e6linen | #101819black |
| Muted foreground | #605757dimgray | #9fa7a8darkgray |
| Accent | #ded8d8gainsboro | #243b3ddarkslategray |
| Accent foreground | #483d3ddarkslategray | #bcd5d7lightblue |
| Destructive | #a51009darkred | #df160cred |
| Destructive foreground | #fde3e2mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #30e3f3turquoise | #30e3f3turquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 6.53:1 | AA |
| Muted text | 5.71:1 | AA |
| Accent | 7.44:1 | AAA |
| Destructive | 6.45:1 | AA |
| Text on background | 18.79:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 6.18:1 | AA |
| Secondary button | 8.42:1 | AAA |
| Muted text | 7.33:1 | AAA |
| Accent | 7.75:1 | AAA |
| Destructive | 4.93:1 | AA |
Paste this into your globals.css to use General in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.003 203.549);
--foreground: oklch(0 0 0);
--muted: oklch(0.932 0.01 17.331);
--muted-foreground: oklch(0.466 0.012 17.59);
--popover: oklch(0.987 0.003 203.549);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.003 203.549);
--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.838 0.135 204.605);
--primary-foreground: oklch(0.379 0.063 204.922);
--secondary: oklch(0.939 0 180);
--secondary-foreground: oklch(0.437 0 180);
--accent: oklch(0.888 0.006 17.275);
--accent-foreground: oklch(0.371 0.015 17.839);
--destructive: oklch(0.459 0.18 29.424);
--destructive-foreground: oklch(0.938 0.029 21.299);
--ring: oklch(0.838 0.135 204.605);
--chart-1: oklch(0.838 0.135 204.605);
--chart-2: oklch(0.939 0 180);
--chart-3: oklch(0.888 0.006 17.275);
--chart-4: oklch(0.962 0 180);
--chart-5: oklch(0.845 0.138 204.73);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.009 201.969);
--foreground: oklch(0.979 0.004 203.546);
--muted: oklch(0.202 0.012 203.166);
--muted-foreground: oklch(0.722 0.01 203.462);
--popover: oklch(0.138 0.009 201.969);
--popover-foreground: oklch(0.979 0.004 203.546);
--card: oklch(0.138 0.009 201.969);
--card-foreground: oklch(0.979 0.004 203.546);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.838 0.135 204.605);
--primary-foreground: oklch(0.379 0.063 204.922);
--secondary: oklch(0.271 0.017 203.157);
--secondary-foreground: oklch(0.814 0.025 203.326);
--accent: oklch(0.333 0.028 203.121);
--accent-foreground: oklch(0.854 0.026 203.326);
--destructive: oklch(0.573 0.227 29.475);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.838 0.135 204.605);
--chart-1: oklch(0.838 0.135 204.605);
--chart-2: oklch(0.271 0.017 203.157);
--chart-3: oklch(0.333 0.028 203.121);
--chart-4: oklch(0.305 0.02 203.148);
--chart-5: oklch(0.845 0.138 204.73);
}