refactor: use tailwind theme utilities

This commit is contained in:
2026-06-20 19:39:34 +02:00
committed by Milas Holsting
parent 2dca69c9f4
commit 2593a45cc3
10 changed files with 21 additions and 22 deletions

View File

@@ -63,8 +63,7 @@ export const renderSegments = (): void => {
state.skip.activeSegments.forEach((s) => {
const bar = document.createElement("div");
bar.className = "absolute opacity-95";
bar.style.backgroundColor = "var(--player-segment)";
bar.className = "absolute bg-player-segment opacity-95";
bar.style.top = "-1px";
bar.style.height = "calc(100% + 2px)";
bar.style.left = `${(s.start / bounds) * 100}%`;