3 ms·
If i'm looking at the right thing (https://github.com/pascalduez/postcss-apply https://github.com/pascalduez/postcss-apply), it looks like you can only @apply p
by tlrobinson 8y ago
If i'm looking at the right thing (https://github.com/pascalduez/postcss-apply https://github.com/pascalduez/postcss-apply), it looks like you can only @apply property sets in name variables, like so
:root {
--toolbar-theme: {
background-color: rebeccapurple;
color: white;
border: 1px solid green;
};
}
.Toolbar {
@apply --toolbar-theme;
}
Rather than arbitrary CSS classes?
- ealhad 8y agoI forgot something! Actually, this isn't the @apply I was thinking of. Tailwind comes with its own @apply: https://tailwindcss.com/docs/functions-and-directives/#apply https://tailwindcss.com/docs/functions-and-directives/#apply