You add a survey to your site to find out where people struggle. If the survey looks nothing like your site, it can become one more thing they struggle with.
A card in another font and another blue looks like it came from outside the site, and a card like that is easy to close without reading.
Here is the same question in a card matched to the site.
The difference isn’t this big on every site. On a light site the default white card often fits well, and on the coffee shop below it is arguably the clearer one.
Matching matters most on sites with a dark mode or a strong background color. Look at your own site before you decide. Keeping the default is fine.
The same goes for any card that sits on top of your site, whether it is a survey or a feedback widget.
The three sites in this post are examples we built for it. The cards on them are real Usercase question cards, drawn by the same code that runs on customer sites.
What to match
The card's layout and position stay the same everywhere. Only the values that differ from site to site change.
- Accent color: the color of your main buttons. When a visitor picks an answer, it shows in this color.
- Background and text: match the surface of your site's cards and modals, not the page background.
- Dark colors: if your site has a dark mode, a separate set for when it is dark.
- Font: the same font as your body text.
- Corners and shadow: sharp or round, a soft shadow or a plain border, like your own cards.
One more check when you pick colors: button text and body text need to stand out from the background. Usercase warns you under the colors when the contrast is below 4.5:1 and offers a shade that fixes it in one click.
Option 1: match it by hand
In Settings › Installation › How it looks, pick Custom and set the values above. Hover, border and muted text colors are worked out from your three colors, so the card stays consistent whatever you pick. The preview shows the card as visitors will see it, and the same look applies to research invites and the research widget.
Option 2: let your coding agent match it
If you have the site's code, you don't need to pick each color yourself. In Claude Code or Codex with the Usercase plugin, run the theme command:
/usercase:theme (Claude Code)
$usercase:theme (Codex)Or ask in your own words:
Make the Usercase question cards match my siteThe agent reads your code and does not run the app. It looks first for the design values your site already defines: CSS variables, the Tailwind theme, or an MUI or Chakra theme. Where there are none, it looks at what your buttons, inputs and cards actually use. It never makes up a color.
It saves up to three suggestions. A second or third one only appears when something in the code was ambiguous, such as two different colors on main buttons, and each comes with a line saying which files its values came from. Pick one in Settings › Installation › How it looks › Matched to your site. Nothing changes on your site until you do.
Make it follow dark mode
If you set dark colors, the card also needs to know when your site is dark. There are three ways, depending on how your site does it.
- Your site follows the device setting: the card follows it too.
- Your site puts a class or attribute on html or body, like html.dark or [data-theme="dark"]: enter that selector in settings and the card switches when it appears.
- Your site switches only inside its JavaScript: tell Usercase from your code, in two places.
When the page opens, so a visitor who chose dark yesterday gets a dark card today, set it in the install code:
// in the install code, after w.Usercase.project = "..."
w.Usercase.colorScheme = localStorage.theme === "dark" ? "dark" : "light";And when the visitor switches:
window.Usercase?.theme?.(isDark ? "dark" : "light");What your code says wins over the option picked in settings. If your coding agent does the matching, it finds how your site turns dark and picks one of the three. In the third case it shows you the lines first and changes your code only if you say yes.
The card changes even while it is open. Below, the same card stayed on screen while the site switched to dark.
What stays the same
The card's structure, order and position are the same on every site. Questions and invites appear at the bottom right, and fill the bottom of the screen on phones. The width, text sizes and close button are fixed too.
Usercase asks your real visitors a short question at the moment they get stuck. On Free you can change the card's three colors. Dark colors, font, corners, shadow and matching with your coding agent come with Pro and Max.
Ask your real visitors why they got stuck
Usercase shows one short question at the moment it happens. Virtual users let you rehearse before they arrive.
Get started free