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>
<!-- item will be appened to this layout -->
is the chat feed itself. When a new message is sent, it will use the template under <!-- chat item -->
to build each message.{from}
, {message}
, {messageId}
are known as Tokens - placeholders for text provided by Streamlabs. This is entirely a custom feature and is not a base feature of HTML{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 |
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 |