Skip to content

Commit c2eb343

Browse files
Fix dark light mode in Front integration (#1142)
* Add css targeting to force apply light dark mode * add color scheme * changeset * remove old changeset
1 parent d565165 commit c2eb343

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/ready-roses-melt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@gitbook/integration-front': minor
3+
---
4+
5+
Add new parameter for color scheme

integrations/front/src/script.raw.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99

1010
s.onload = function () {
1111
if (window.FrontChat) {
12-
window.FrontChat('init', { chatId: chatId, useDefaultLauncher: true });
12+
window.FrontChat('init', {
13+
chatId: chatId,
14+
useDefaultLauncher: true,
15+
colorScheme: 'light dark',
16+
});
1317
}
1418
};
1519

0 commit comments

Comments
 (0)