.ya-chat-button_theme_dark .ya-chat-button__container {
background-color: #292c33!important;
}
.ya-chat-button_theme_dark .ya-chat-button__container {
background-color: #E70024!important;
}
<script type='text/javascript'>
(function () {
window['yandexChatWidgetCallback'] = function() {
try {
window.yandexChatWidget = new Ya.ChatWidget({
guid: '7147c0c4-e05c-4cfa-868c-b2fabc52158a',
buttonText: 'Напишите нам, мы онлайн!',
title: 'Онлайн чат',
theme: 'dark',
collapsedDesktop: 'never',
collapsedTouch: 'never'
});
} catch(e) { }
};
var n = document.getElementsByTagName('script')[0],
s = document.createElement('script');
s.async = true;
s.src = 'https://chat.s3.yandex.net/widget.js';
n.parentNode.insertBefore(s, n);
})();
</script>
<style type="text/css">
.ya-chat-button_theme_dark .ya-chat-button__container {
background-color: #red !important;
}
</style>
</head>
<style type="text/css">
.ya-chat-button_theme_dark .ya-chat-button__container {
background-color: #red !important;
}
</style>
<script type='text/javascript'>
(function () {
window['yandexChatWidgetCallback'] = function() {
try {
window.yandexChatWidget = new Ya.ChatWidget({
guid: '7147c0c4-e05c-4cfa-868c-b2fabc52158a',
buttonText: 'Напишите нам, мы онлайн!',
title: 'Онлайн чат',
theme: 'dark',
collapsedDesktop: 'never',
collapsedTouch: 'never'
});
} catch(e) { }
};
var n = document.getElementsByTagName('script')[0],
s = document.createElement('script');
s.async = true;
s.src = 'https://chat.s3.yandex.net/widget.js';
n.parentNode.insertBefore(s, n);
})();
</script>
(function () {
window['yandexChatWidgetCallback'] = function() {
try {
window.yandexChatWidget = new Ya.ChatWidget({
guid: '7147c0c4-e05c-4cfa-868c-b2fabc52158a',
buttonText: 'Напишите нам, мы онлайн!',
title: 'Онлайн чат',
theme: 'dark',
collapsedDesktop: 'never',
collapsedTouch: 'never'
});
} catch(e) { }
};
var n = document.getElementsByTagName('script')[0],
s = document.createElement('script');
s.async = true;
s.src = 'https://chat.s3.yandex.net/widget.js';
n.parentNode.insertBefore(s, n);
})();
$(document).ready(function(){
$('.ya-chat-button__container').attr( 'style', 'background-color: #fff !important' );
});