Not a real response to your question, but I think you can use modules (see Bep’s tailwind module & hugo mod npm pack
) and then use hugo mod vendor
.
So everything (code wise) will be provided by the theme.
[EDIT] I think I remember vaguely Bep talking about using modules for providing CSS, but I never tried this.