GithubHelp home page GithubHelp logo

Comments (3)

andrebernardezbrana avatar andrebernardezbrana commented on August 22, 2024 1

Thank you very much, you have helped me a lot and I appreciate all the explanation.
I think I already have it.

Thanks😁

from rasa-webchat.

Rikkokiri avatar Rikkokiri commented on August 22, 2024

If you simply want to change the banner color etc. there are some properties available for customizing that.. (see src/index.hs:

defaultHighlightCss: PropTypes.string,
defaultHighlightAnimation: PropTypes.string,
mainColor: PropTypes.string,
conversationBackgroundColor: PropTypes.string,
userTextColor: PropTypes.string,
userBackgroundColor: PropTypes.string,
assistTextColor: PropTypes.string,
assistBackgoundColor: PropTypes.string

These are set the same way as for example socketUrl (see README or ask if you are unsure).

Or, as you mentioned, you can use the classnames listed in the README (or ones you find exploring widget code using browser dev tools) to define css rules.

I don't know what your background and comfort level with CSS is, so I'm sorry if this already obvious to you:

  • Only the rules you set in your css code (such as color or text-align) will get overwritten. Any rules that you don't change will remain as they are in widget code.
  • What value each rule get is impacted by specificity. So sometimes just using a class name is not enough, as there might be more specific rules in place (i.e. the target of the rule is defined using multiple selectors). If you're not yet familiar with this, I'd recommend checking out some tutorial or for example MDN docs.
  • If highly recommend exploring the styles using browser dev tools. That will help you figure out where certain style value is coming from and how to "overrule" it ☺️

Again, sorry if all this was obvious to you - and if not, feel free to ask more questions! (Also: I'm not a maintainer on this project, I've just worked with it a lot.)

from rasa-webchat.

stale avatar stale commented on August 22, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from rasa-webchat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.