style: format caption component HTML files

This commit is contained in:
Miguel Ángel
2026-05-17 17:12:25 -04:00
parent b725066fb5
commit ed5747a723
26 changed files with 178 additions and 36 deletions
@@ -158,7 +158,8 @@
el.className = "kt-word";
el.id = "kt-w-" + wi;
el.textContent = w.text.toUpperCase();
el.style.fontSize = fitFontSize(w.text.toUpperCase(), 220, "400", "'Anton', sans-serif", 1720) + "px";
el.style.fontSize =
fitFontSize(w.text.toUpperCase(), 220, "400", "'Anton', sans-serif", 1720) + "px";
if (KEYWORDS.has(wi)) el.style.color = "#FFD700";
container.appendChild(el);