Skip to content
Discussion options

You must be logged in to vote

If I'm understanding correctly, you're trying to style descendant elements of your PostWrapper.

To achieve this you can use a style in combination with the globalStyle API.

So you could do something like this:

// style.css.ts
import { style, globalStyle } from '@vanilla-extract/css';

export const stylePostWrapper = style({});

globalStyle(`${stylePostWrapper} h1`, {
  color: 'pink'
});

globalStyle(`${stylePostWrapper} h2`, {
  color: 'blue'
});

// etc...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@victorkardel
Comment options

Answer selected by victorkardel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants