I’m currently using tachyons (functional css library) for a project. With a library like tachyons, you basically write styles inline (this isn’t 100% accurate, but that’s generally how it works). You can imagine this may yield a lot of redundant styles. Thus, it’s highly encouraged that you build composable wrappers similar to React components.
How can I achieve this in Hugo? Specifically in a layout? I have taken a look at partials, but they don’t support wrapping. Blocks work, but it’s limited in terms of choosing multiple templates from anywhere, anyhow. It’s not that composable.