Allow creating sx
container queries from breakpoint keys
#45868
Labels
sx
container queries from breakpoint keys
#45868
Summary
Right now you can create container queries easily by providing a
@
prefixed value as the key insx
. You can also use thecontainerQueries
helper alongside theme breakpoints on thetheme
object to create anat rule
by writingtheme.containerQueries.up('sm')
.Examples
It'd be convenient to use the built-in theme breakpoint values here. Something like this:
Which would be interpreted as
Motivation
This would streamline creating container query powered styles, as I typically want to use values set by our design system. Right now my approach is verbose in the form of
Search keywords: container query, sx, breakpoint
The text was updated successfully, but these errors were encountered: