Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Support nested syntax (a la Sass) #171

Closed
corysimmons opened this issue Apr 19, 2017 · 2 comments
Closed

[feature request] Support nested syntax (a la Sass) #171

corysimmons opened this issue Apr 19, 2017 · 2 comments

Comments

@corysimmons
Copy link

<style jsx>{`
  div {
    background: orange;

    span {
      background: pink;
    }
  }
`}</style>

Doesn't seem like it'd hurt the philosophy of styled-jsx, and it's just nice tbqh.

@giuseppeg
Copy link
Collaborator

We want to stick with CSS standard – the only exception being :global which we can use to opt out scoped styles on occasion.

I made styled-jsx-postcss which should let you add nesting support. Keep in mind though that I don't have a lot of time to maintain it so sometimes it could take a while to get the same features as styled-jsx latest.

@corysimmons
Copy link
Author

Sounds perfect, thank you!

I don't have a lot of time to maintain it

Damn, the possibilities of PostCSS in styled-jsx are endless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants