Open hahahumble opened 1 month ago
It seems that the issue lies in my understanding. The viewport here refers to a range:
s
: 0-660m
: 660-900l
: 900-1280xl
: 1280+Is it possible to add another breakpoint below s
, for example, xs
?
Hey, right now it's not possible to add custom ones. We can add support for generating them in css, however that won't generate new viewports support in the component properties since we don't have the jsx generation supported right now. Would that still be helpful for you?
Supporting JSX would be ideal. Alternatively, is it possible to add more viewports beyond s
, m
, l
, and xl
, such as xs
and 2xl
?
I can add more viewports to make them available as css custom media queries so you will be able to write custom styles using it. Existing viewports would still support customizing their values and those values will be respected when you use them via jsx props. For example, the s
viewport right now allows customizing the maxPx right now but not minPx because if the smallest viewport and introducing a non 0 minPx value will product no css below that value
Describe the bug Unable to modify the default viewport breakpoints of the token
s
when generating a theme. However, it works correctly for other tokens (m
,l
,xl
).To Reproduce
When running the
reshaped theming
command, themin-width
for the tokens
in the generatedmedia.css
is incorrect, while it is correct for the other tokens.Environment (please complete the following information):