Marked as helpful by the asker
Two moves, in order:
- Pull repeated class strings into components, not into
@apply.<Card>with the 15 classes once, used six times. - Put colors in CSS variables (
--accent) and reference them in Tailwind via the theme. Then a color change is one line.
Ask v0 per component: "extract the repeated card markup into a Card component, keep the classes identical". Small, checkable steps beat "use a design system".
Card component done, six copies became one. Doing the CSS variables next.
yuki_builds
Colors are in variables now. Changed the accent once and every card followed. Thank you!
yuki_builds