I outlined an approach where we’ve had some success using CSS variables and data attributes. You can check it out here.