From 9cfbf2ba979100f2ebfb911f84cb50438aea43b8 Mon Sep 17 00:00:00 2001 From: c0mrade Date: Tue, 26 May 2026 21:00:02 +0300 Subject: [PATCH] polish: drop dead .progress-bar / .progress-fill utilities MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Created with future-API intent during the optimize pass but no .tsx consumer materialised — the three Subscription progress bars inline their classes directly. Dead utility classes accumulate, confuse the next reader ("this looks like our pattern, am I doing it wrong?"), and add bytes to the CSS. Drop both the dark version and the .light .progress-bar override. If a future progress bar needs them back: inline first, extract only when 3+ call sites share intent (per /impeccable extract guidance). --- src/styles/globals.css | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/styles/globals.css b/src/styles/globals.css index 4b6aaf6..20f44cb 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -646,18 +646,6 @@ img.twemoji { @apply badge border border-dark-600/50 bg-dark-700/50 text-dark-300; } - /* Progress bar - Dark */ - .progress-bar { - @apply h-2 w-full overflow-hidden rounded-full bg-dark-800; - } - - .progress-fill { - /* GPU-composited progress fill — consumer sets transform: scaleX(0..1) - with transform-origin: left. Avoids width-triggered reflow per frame. */ - @apply h-full w-full origin-left rounded-full duration-500 ease-smooth; - transition-property: transform, background-color; - } - /* Stat card - Dark */ .stat-value { @apply text-2xl font-bold text-dark-50 sm:text-3xl; @@ -824,11 +812,6 @@ img.twemoji { @apply border border-champagne-300 bg-champagne-200/50 text-champagne-700; } - /* Progress bar - Light */ - .light .progress-bar { - @apply bg-champagne-200; - } - /* Stat card - Light */ .light .stat-value { @apply text-champagne-900;