Drimer Docs

Options Reference

Complete reference of all Drimer.init() parameters.

Drimer.init(options)

ParameterTypeRequiredDescription
publicKeystringYesYour partner public key (pk_live_...)
tokenstringYesSession token from the Partner API
elementstring | HTMLElementYesCSS selector or DOM element for the widget container
configWidgetConfigNoTheme and locale configuration

WidgetConfig

PropertyTypeDefaultDescription
localestring"es"Language code (see Localization)
themeThemeConfigColor customization

ThemeConfig

PropertyTypeDefaultDescription
primaryColorstring"#171717"Hex color for buttons and accents
primaryColorForegroundstring"#fafafa"Hex color for text on primary surfaces

Example

Drimer.init({
  publicKey: "pk_live_abc123",
  token: "your_session_token",
  element: "#amelia",
  config: {
    locale: "en",
    theme: {
      primaryColor: "#dc2626",
      primaryColorForeground: "#ffffff",
    },
  },
});

On this page