Can we edit css properties of the Bot in index.js file instead of innit


#1

Hello question i have bot project and in the index.js i would like to add a custom style sheet like this:

 const webchat = {
    botName: 'CM multichannel Bot',
    botAvatarUrl: 'https://i.ibb.co/2SvKF2R/1.png',
    botConvoTitle: 'Multichannel Bot',
    botConvoDescription: "Be part of it!",
    backgroundColor: '#ffffff',
    textColorOnBackground: '#101E1E ',
    foregroundColor: '#1657EA',
    textColorOnForeground: '#ffffff',
    customStyleSheet: 'https://soufyanbreda.github.io/bot-style.css'
  }

my steelsheet is not having any effect https://soufyanbreda.github.io/bot-style.css

i would like to change the buttons in the webchat window but i can’t edit nothing ? can we only add custom style sheet in the innit method


#2

Yes, you can only apply it via init method which you aren’t doing in the example above.