sheetify
sheetify copied to clipboard
Support for @apply Rule
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.
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
hmm I wonder if should send parsed postcss's AST to sheetify
...
yeah just send a string back and we should be good I reckon?
Did you manage to resolve this?
@yoshuawuyts Uh-oh! Yes, I did! feel free to close.