HTML representations of macOS native UI elements have been attempted many times. I still haven't seen anyone get them just right. I think you're better off using a design which doesn't try to replicate native elements as they won't match a user's selected appearance, nor will they automatically update when macOS makes a styling change. This will probably give the user a bad impression of your app.