sheetify icon indicating copy to clipboard operation
sheetify copied to clipboard

Support for @apply Rule

Open tgfjt opened this issue 8 years ago • 5 comments

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.

tgfjt avatar Aug 25 '16 06:08 tgfjt

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

yoshuawuyts avatar Aug 25 '16 11:08 yoshuawuyts

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

tgfjt avatar Aug 26 '16 05:08 tgfjt

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

yoshuawuyts avatar Aug 27 '16 00:08 yoshuawuyts

Did you manage to resolve this?

yoshuawuyts avatar Nov 16 '16 20:11 yoshuawuyts

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

tgfjt avatar Mar 03 '17 09:03 tgfjt