Setup

  1. Log in to https://streamlabs.com/
  2. head to https://streamlabs.com/dashboard#/widgets/chat-box
  3. (optional) Choose a theme you like the layout of

image.png

  1. Customize the rest of the settings to match what you need.
  2. Ensure Custom HTML/CSS is enabled

image.png

  1. Save settings. When using Streamlabs, remember to save often so that your edits are not lost!

Customization

Layout

Before we begin, be sure to check out the list of helpful websites

In the HTML tab, you will see code similar to the following:

<!-- item will be appened to this layout -->
<div id="log" class="sl__chat__layout">
</div>

<!-- chat item -->
<script type="text/template" id="chatlist_item">
  <div data-from="{from}" data-id="{messageId}">
    <span class="meta" style="color: {color}">
	    <span class="badges">
      </span>
      <span class="name">{from}</span>
    </span><br>
    <span class="message">
      {message}
    </span>
  </div>
</script>

Tokens

{from} The username of the sender
{messageId} the ID of the message. Used for various functions unrelated to the outward appearance of the message
{color} The color of the sender’s twitch username. If they have it set to a random color, the colors may not sync up. If you want all names to be the same color, you may replace it with a color value of any kind
{message} The content of the message

Classes

badges the contents of this tag will fill with relevant chat badges based on settings you have selected
meta Used for style in CSS tab @ #log .meta
name Used for style in CSS tab @ .name
message Used for style in CSS tab @ #log .message