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:--rdb-* variables first, then use selectors only for details that variables cannot cover.
Theme model
Light theme variables go in:root.
[data-bs-theme="dark"].
:root and [data-bs-theme="dark"] values.
Recommended variables
Use these variables before targeting element classes:RGB channel variables
Some Remapdb variables are inserted into CSS likergb(var(--name)) or rgba(var(--name), 0.25). These variables must contain only RGB channels, not a hex color.
Correct:
--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:Quote form structure
When quoting is enabled, the quote panel contains: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, 0format, 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, externalurl(...), fixed positioning, very largez-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.