Skip to content

Instantly share code, notes, and snippets.

@KevM
Last active February 10, 2026 16:50
Show Gist options
  • Select an option

  • Save KevM/d14fb939c4caf787724b9e68f6b24a2d to your computer and use it in GitHub Desktop.

Select an option

Save KevM/d14fb939c4caf787724b9e68f6b24a2d to your computer and use it in GitHub Desktop.
Trmnl Plugin
<div class="view view--full">
<div class="layout layout--col gap--distribute h--full">
<!-- Live Stats Header -->
<!-- Changed gap--distribute to gap--medium and added justify--center to group them better -->
<div class="flex flex--row flex--center-y flex--center-x flex--stretch-x gap--xxlarge">
${ctx.todayGrid !== undefined ? `
<div class="flex flex--row flex--center-y gap--small">
<span class="title title--xxlarge">${(ctx.todayGrid).toFixed(1)}</span>
${GRID_ICON_ALMOST_LARGE}
</div>
` : ''}
${ctx.todaySolar !== undefined ? `
<div class="flex flex--row flex--center-y gap--small">
<span class="title title--xxlarge">${(ctx.todaySolar).toFixed(1)}</span>
${SUN_ICON_ALMOST_LARGE}
</div>
` : ''}
<div class="flex flex--col">
${this.renderBatteryStatusLarge(ctx.batterySoc, ctx.batteryStatus)}
</div>
</div>
<!-- Tariff Tables -->
<div class="flex flex--col w--full m--8 p--8">
${tariffTables}
</div>
<!-- Footer -->
<div class="flex flex--row flex--center-x flex--center-y gap--medium">
<span class="title title--small">${ctx.siteName}</span>
<span class="label label--small">${ctx.dateRange}</span>
</div>
</div>
</div>
@KevM
Copy link
Author

KevM commented Feb 10, 2026

Updated to use trunk framework and remove nested layouts. Working better now.

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