Different style only when the Paragraph is below Heading

I want to change paragraph node’s style when it is below the heading. Medium editor does that like below.

what is the suggested approach? I am testing using nodeview for paragraph node but worried if this may be an overhead.

You should be able to do this entirely in CSS.

1 Like

oh my god