Directives with the same variants can now be nested using parenthesis. Oceanwind will expand the nested directives; applying the variant to each nested directive before translation. For example:
Two things to note here is that the outermost variant should always be a responsive variant (just like in tailwind hover:sm: is not supported) and that nesting responsive variants doesn't make sense either, for example sm:md: is not supported.
Directives with the same variants can now be nested using parenthesis. Oceanwind will expand the nested directives; applying the variant to each nested directive before translation. For example:
Gets expanded into:
It is possible to nest groupings too, for example:
Two things to note here is that the outermost variant should always be a responsive variant (just like in tailwind
hover:sm:
is not supported) and that nesting responsive variants doesn't make sense either, for examplesm:md:
is not supported.Syntax inspired by a comment in this article https://dev.to/swyx/why-tailwind-css-2o8f by @sw-yx.