This repository was archived by the owner on May 27, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
7. HTML Templates
Prolix OCs edited this page Aug 14, 2025
·
1 revision
Templates control how your tracker cards look. You can use built-in templates or create your own custom designs.
The extension comes with several templates ready to use:
- Designed for relationship tracking
- Shows affection, desire, trust, and contempt meters
- Includes status effects and internal thoughts
- Simple, clean design
- Good for minimal tracking needs
- Easy to read format
- Open SillyTavern
- Go to Extensions settings
- Find Silly Sim Tracker
- Select a different template from the dropdown
- Cards will update automatically
You can create completely custom templates for your specific needs.
<!-- CARD_TEMPLATE_START -->
<style>
/* Your CSS styles here */
.card {
background: linear-gradient(145deg, {{bgColor}}, {{darkerBgColor}});
color: {{contrastColor}};
}
</style>
<div class="card">
<h2>{{characterName}}</h2>
<div>Date: {{currentDate}}</div>
{{#each stats}}
<div>{{@key}}: {{this}}</div>
{{/each}}
</div>
<!-- CARD_TEMPLATE_END -->-
Markers: Use
<!-- CARD_TEMPLATE_START -->and<!-- CARD_TEMPLATE_END --> -
Handlebars Variables: Use
{{variable}}for dynamic content -
CSS Styling: Include styles in a
<style>tag
-
{{characterName}}- Character's name -
{{currentDate}}- Current date (YYYY-MM-DD) -
{{currentTime}}- Current time (HH:MM) -
{{bgColor}}- Card background color -
{{darkerBgColor}}- Darker background variant -
{{contrastColor}}- Text color for contrast -
{{stats.fieldName}}- Any field from your JSON data
- Create your template in a text editor
- Save as an HTML file
- In SST settings, click "Load from File"
- Select your template file
- Cards will update to use your design
To go back to built-in templates:
- In SST settings, click "Clear Custom"
- Select a default template from the dropdown
- Start Simple: Begin with the built-in template and modify it
-
Use CSS Variables:
{{bgColor}}and related variables automatically adapt to your data - Test Often: Make small changes and test the results
- Responsive Design: Consider how your template looks on mobile vs desktop
- Keep It Readable: Don't overcrowd cards with too much information
Here's a simple custom template to get you started:
<!-- CARD_TEMPLATE_START -->
<style>
.rpg-card {
background: linear-gradient(145deg, {{bgColor}} 0%, {{darkerBgColor}} 100%);
border-radius: 12px;
padding: 16px;
color: {{contrastColor}};
font-family: Arial, sans-serif;
min-width: 250px;
}
.character-header {
border-bottom: 1px solid rgba(255,255,255,0.2);
padding-bottom: 8px;
margin-bottom: 12px;
}
.stat-line {
display: flex;
justify-content: space-between;
margin-bottom: 6px;
}
</style>
<div class="rpg-card">
<div class="character-header">
<h3>{{characterName}}</h3>
<div>{{currentDate}} at {{currentTime}}</div>
</div>
{{#each stats}}
{{#if (and (not (eq @key "bg")) (not (eq @key "inactive")))}}
<div class="stat-line">
<span>{{@key}}:</span>
<span>{{this}}</span>
</div>
{{/if}}
{{/each}}
</div>
<!-- CARD_TEMPLATE_END -->This template will display all your character stats in a clean, organized format.