Use Stitches native responsive variants #168
-
Right now, NextUI doesn't use Stitches built-in responsive variants feature. Stitches built-in responsive variants work using CSS media queries and don't use any JS under the hood. Using them looks like this: () => (
<Button
color={{
'@initial': 'gray',
'@bp2': 'violet'
}}
>
Button
</Button>
); Thanks for the amazing library! This is the missing layer above Stitches that I've dreamed about for a long time. I will definitely use it for my next project. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @hmbrg I'm glad you liked it!, actually NextUI does have built-in Stitches media queries, I just cleared that answer -> #164 (comment), it was just a misunderstanding Hope this helps 👍🏻 |
Beta Was this translation helpful? Give feedback.
Hey @hmbrg I'm glad you liked it!, actually NextUI does have built-in Stitches media queries, I just cleared that answer -> #164 (comment), it was just a misunderstanding
Hope this helps 👍🏻