Webapp in state card, not panel

I have latest version of Home assistant, I’ve found some projects using custom ui, but I’m unable to show a webapp (HTML+JS+CSS) in a homeassitant state card (not panel) and read sensors values from this app, I’ve readed docs but I’m stucked…Can someone give a hand? I only want to put in HTML file style and script tags, obtain data from HA sensors like temperature or wunderground and show in a card…Thanks