@botfabrik/engine-webclient 4.55.0 → 4.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -224,23 +224,72 @@ Beispiel (de.json)
224
224
  ## Anpassungen am Aussehen
225
225
 
226
226
  Das Aussehen des Webclients kann pro Projekt angepasst werden. Dazu kann eine eigene CSS Datei namens 'custom.css' im
227
- Verzeichnis 'public/\${name-meines-webclients}/' abgelegt werden. Auf gleiche Art und Weise können auch die Avatare
228
- (visitor.svg und bot.svg) angepasst werden.
227
+ Verzeichnis `public/\${name-meines-webclients}/` abgelegt werden. Auf gleiche Art und Weise können auch der FAB (fab.svg), der Bot-Avatar
228
+ (bot.svg) sowie das Logo (logo.svg) angepasst werden.
229
229
 
230
230
  ### Standard CSS Variabeln
231
231
 
232
232
  ```css
233
233
  :root {
234
- --brand-primary-color: #008fd7;
234
+ --aspect-ratio: calc(16 / 9);
235
+ --brand-primary-color: rgb(114, 46, 209);
235
236
  --brand-secondary-color: white;
237
+ --danger-color: #cd2147;
238
+
239
+ /* FAB */
240
+ --fab-size: 6em;
241
+ --fab-size-mobile: var(--fab-size, 5em);
242
+ --fab-top: auto;
243
+ --fab-top-mobile: var(--fab-top, auto);
244
+ --fab-right: 1.5em;
245
+ --fab-right-mobile: var(--fab-right, 1.5em);
246
+ --fab-bottom: 1.5em;
247
+ --fab-bottom-mobile: var(--fab-bottom, 1.5em);
248
+ --fab-left: auto;
249
+ --fab-left-mobile: var(--fab-left, auto);
250
+
251
+ /* chat window */
252
+ --window-height: 40em;
253
+ --window-width: 23em;
254
+ --window-border-radius: 8px;
255
+ --header-height: 4em;
256
+ --header-background-color: var(--brand-primary-color);
257
+ --logo-padding: 1em;
258
+ --close-icon-padding: 1em;
259
+
260
+ /* chat body */
261
+ --body-background-color: white;
262
+
263
+ --avatar-size: 2rem;
264
+ --avatar-radius: 50%;
265
+ --bot-avatar-background-color: rgb(240, 242, 245);
266
+ --agent-avatar-background-color: rgb(240, 242, 245);
267
+
268
+ --bubble-padding: 0.9em 1em;
269
+ --bubble-margin-small: 3px;
270
+ --bubble-margin-large: 1.2rem;
271
+ --bubble-radius-large: 20px;
272
+ --bubble-radius-small: 4px;
236
273
 
237
274
  --bot-bubble-background-color: white;
238
- --bot-bubble-text-color: rgb(46, 46, 46);
239
-
240
- --guest-bubble-background-color: #008fd7;
275
+ --bot-bubble-text-color: #2e2e2e;
276
+ --bot-bubble-border-color: #434343;
277
+ --bot-bubble-border-width: 2px;
278
+ --bot-bubble-top-left-radius: var(--bubble-radius-small);
279
+ --bot-bubble-top-right-radius: var(--bubble-radius-small);
280
+ --bot-bubble-bottom-right-radius: var(--bubble-radius-small);
281
+ --bot-bubble-bottom-left-radius: var(--bubble-radius-small);
282
+
283
+ --guest-bubble-background-color: var(--brand-primary-color);
241
284
  --guest-bubble-text-color: white;
242
-
243
- --danger-color: #ee263d;
285
+ --guest-bubble-border-color: white;
286
+ --guest-bubble-border-width: 0px;
287
+ --guest-bubble-top-left-radius: var(--bubble-radius-small);
288
+ --guest-bubble-top-right-radius: var(--bubble-radius-small);
289
+ --guest-bubble-bottom-right-radius: var(--bubble-radius-small);
290
+ --guest-bubble-bottom-left-radius: var(--bubble-radius-small);
291
+
292
+ --scrollbar-thumb-color: #adadad;
244
293
  }
245
294
  ```
246
295