Gong is a shadcn/ui theme built around a neutral gray primary color (#5b575b) with muted purple accents (#c9acc7). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#5b575b) on a purple-tinted background (#0e060e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e060eblack |
| Foreground | #080207black | #faf4faghostwhite |
| Card | #fcfcfcsnow | #120811black |
| Card foreground | #040104black | #fcf8fcsnow |
| Popover | #fcfcfcsnow | #120811black |
| Popover foreground | #040104black | #fcf8fcsnow |
| Primary | #5b575bdimgray | #5b575bdimgray |
| Primary foreground | #f3f2f2whitesmoke | #f3f2f2whitesmoke |
| Secondary | #d8cbd7lightgrey | #151415black |
| Secondary foreground | #40303fdarkslategray | #b0abb0darkgray |
| Muted | #dbd6dbgainsboro | #292429darkslategray |
| Muted foreground | #4b444adarkslategray | #bbb4bbsilver |
| Accent | #c9acc7silver | #2e242ddarkslategray |
| Accent foreground | #281a27black | #c9bac8silver |
| Destructive | #af4204saddlebrown | #e65705orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5b575bdimgray | #5b575bdimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.54:1 | AAA |
| Text on card | 20.31:1 | AAA |
| Primary button | 6.31:1 | AA |
| Secondary button | 7.82:1 | AAA |
| Muted text | 6.59:1 | AA |
| Accent | 8.02:1 | AAA |
| Destructive | 5.81:1 | AA |
| Text on background | 18.42:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 6.31:1 | AA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 3.66:1 | AA Large |
Paste this into your globals.css to use Gong in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.109 0.023 328.84);
--muted: oklch(0.882 0.009 327.645);
--muted-foreground: oklch(0.396 0.015 327.901);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.086 0.018 328.84);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.086 0.018 328.84);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.463 0.007 327.693);
--primary-foreground: oklch(0.962 0.001 327.554);
--secondary: oklch(0.855 0.022 327.791);
--secondary-foreground: oklch(0.334 0.033 328.479);
--accent: oklch(0.777 0.05 328.155);
--accent-foreground: oklch(0.242 0.032 328.759);
--destructive: oklch(0.523 0.154 42.591);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.463 0.007 327.693);
--chart-1: oklch(0.463 0.007 327.693);
--chart-2: oklch(0.855 0.022 327.791);
--chart-3: oklch(0.777 0.05 328.155);
--chart-4: oklch(0.88 0.018 327.744);
--chart-5: oklch(0.46 0.017 327.913);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.023 328.87);
--foreground: oklch(0.974 0.01 327.643);
--muted: oklch(0.266 0.012 327.98);
--muted-foreground: oklch(0.778 0.012 327.7);
--popover: oklch(0.153 0.026 329.071);
--popover-foreground: oklch(0.983 0.006 327.61);
--card: oklch(0.153 0.026 329.071);
--card-foreground: oklch(0.983 0.006 327.61);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.463 0.007 327.693);
--primary-foreground: oklch(0.962 0.001 327.554);
--secondary: oklch(0.192 0.003 327.697);
--secondary-foreground: oklch(0.746 0.008 327.657);
--accent: oklch(0.275 0.022 328.295);
--accent-foreground: oklch(0.807 0.025 327.846);
--destructive: oklch(0.639 0.192 41.881);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.463 0.007 327.693);
--chart-1: oklch(0.463 0.007 327.693);
--chart-2: oklch(0.192 0.003 327.697);
--chart-3: oklch(0.275 0.022 328.295);
--chart-4: oklch(0.226 0.004 327.716);
--chart-5: oklch(0.46 0.017 327.913);
}