Skip to content

Instantly share code, notes, and snippets.

@slvnperron
Created March 10, 2017 22:01
Show Gist options
  • Save slvnperron/c2627f62d4c73c09087ddb1ffebed247 to your computer and use it in GitHub Desktop.
Save slvnperron/c2627f62d4c73c09087ddb1ffebed247 to your computer and use it in GitHub Desktop.
Theming your Botpress bot

Applying a custom theme to your Botpress bot

New in version 0.1 but still undocumented is the ability to override the global botpress theme.

For bots prior 0.1

You'll need to migrate your bot to 0.1 (see the README for the migration guide) then create a new file at your bot's root directory called theme.scss with this content inside.

For bots >= 0.1

Upon initialization, your bot should already have a theme.scss file located at your bot's root directory.

Customizing the theme

Now you can edit the theme.scss file and restart your bot to see the changes:

.bp-sidebar-header {
  .bp-logo {
    background-color: red;
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment