Skip to main content
Use this page when you want an external AI assistant, such as ChatGPT, Claude, Cursor, or Codex, to help generate custom CSS for the Remapdb widget. Remapdb does not require a special AI assistant for styling. Your assistant only needs this styling context, the goal you want to achieve, and any brand colors or website examples you want it to follow.

Copy this prompt

How widget styling is applied

The Remapdb widget is rendered inside an iframe. Custom CSS is injected into that iframe, after the default widget CSS and after the UI-based customizer variables. The order is:
This means Custom CSS can override values set in the UI customizer. When possible, ask the AI assistant to change --rdb-* variables first, then use selectors only for details that variables cannot cover.

Theme model

Light theme variables go in :root.
Dark theme variables go in [data-bs-theme="dark"].
If the widget is set to Auto, Remapdb can switch the iframe theme based on the parent website theme. In that case, include both :root and [data-bs-theme="dark"] values. Use these variables before targeting element classes:
See CSS variable reference for the larger variable list.

RGB channel variables

Some Remapdb variables are inserted into CSS like rgb(var(--name)) or rgba(var(--name), 0.25). These variables must contain only RGB channels, not a hex color. Correct:
Incorrect:
If you want to use a hex color, set the final component variable instead:
Common RGB-channel variables:
Do not override derived aliases such as --rdb-text-primary unless you understand where they are used. Prefer changing --rdb-primary-color as RGB channels, or set final component variables such as --rdb-title-color and --rdb-button-solid-bg.

Main widget structure

The initial widget view contains:
The vehicle details content is loaded dynamically after a vehicle is selected and View remap is clicked.

Quote form structure

When quoting is enabled, the quote panel contains:
Optional quoting features may add pricing, services, options, dealer map controls, file upload, and custom message areas.

Useful selectors

Prefer variables first. Use selectors only for targeted adjustments.

CSS rules for AI assistants

Ask the assistant to follow these rules:
  • Output CSS only.
  • Do not include <style> tags.
  • Prefer --rdb-* variables over raw Bootstrap class overrides.
  • Use 202, 0, 0 format, not #ca0000, for RGB-channel variables such as --rdb-primary-color.
  • Include both light and dark theme values when the widget can use Auto theme.
  • Avoid global website selectors. The CSS runs inside the widget iframe, but broad rules still make future maintenance harder.
  • Avoid @import, external url(...), fixed positioning, very large z-index, and layout resets.
  • Avoid hiding required controls, validation messages, quote fields, or the View remap button.
  • Avoid changing IDs or relying on generated option IDs.
  • Test on desktop and mobile after saving.

Example: dark premium style

More references