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

Support for @apply Rule #91

Open
tgfjt opened this issue Aug 25, 2016 · 5 comments
Open

Support for @apply Rule #91

tgfjt opened this issue Aug 25, 2016 · 5 comments

Comments

@tgfjt
Copy link

tgfjt commented Aug 25, 2016

Hi! What do you think about @apply support?

:root {
  --awesomeComponent-theme: {
    color: white;
    background: black;
  }
}

.awesomeComponent {
  width: 100%;
  margin: 0 auto;
  @apply --awesomeComponent-theme;
}

https://www.chromestatus.com/feature/5753701012602880

ref: #87
if we can use plugin, resolve with postcss-apply.

@yoshuawuyts
Copy link
Contributor

Oh that's interesting for sure - yeah I think a plugin is definitely the way to approach this. We probably need a generalized sheetify-postcss plugin or something to easily plug in postcss plugins into sheetify. Hmmm

@tgfjt
Copy link
Author

tgfjt commented Aug 26, 2016

hmm I wonder if should send parsed postcss's AST to sheetify...

@yoshuawuyts
Copy link
Contributor

yeah just send a string back and we should be good I reckon?

@yoshuawuyts yoshuawuyts mentioned this issue Nov 8, 2016
3 tasks
@yoshuawuyts
Copy link
Contributor

Did you manage to resolve this?

@tgfjt
Copy link
Author

tgfjt commented Mar 3, 2017

@yoshuawuyts
Uh-oh! Yes, I did! feel free to close.

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