scalableminds / chatroom

React-based Chatroom Component for Rasa Stack
https://npm-scalableminds.s3.eu-central-1.amazonaws.com/@scalableminds/chatroom@master/demo.html
GNU Affero General Public License v3.0
307 stars 207 forks source link

changing the style of the widget #155

Closed nailon closed 3 years ago

nailon commented 3 years ago

Hello, I love the chatroom widget and I use it with my Rasa X backend. However, I would like to change the css properties of the elements. Is there an easy way to do this, without actually making a copy of the project and serving the js myself? Can I pass css options to the constructor?
Thanks :-) Nir

hotzenklotz commented 3 years ago

Yes and no. Since all elements on a website life in the same namespace, you can serve your custom CSS overriding some of the CSS classes of the widget. I guess that is not really clean, but works.

The cleaner version, is to include the widget in your project, change the SASS variables and serve it yourself.

nailon commented 3 years ago

thank you! I will try these solutions out :-)