I am not sure why it doesn't pick up the styling in your application. I have updated my example with a colored header, which does appear in the html file.
Maybe you can create a reproducible example?
A webshot/appshot could work but I think you can only create a PNG for the whole application and not just one component.