Replies: 2 comments
-
Related: chakra-ui/chakra-ui#1199 |
Beta Was this translation helpful? Give feedback.
0 replies
-
For anyone interested in this functionality, I've published an updated version of my Note that the input format has been changed to accept responsive arrays. eg. const styles = responsiveCapsize({
capHeight: [16, 32],
lineGap: [8, 16],
fontMetrics
}) Happy to help with integrating this into Capsize, or close this feature request. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, thanks for the library. 😀
I'm using Capsize in a Theme UI (https://theme-ui.com/home) project with responsive styles.
Rather than using Capsize generated CSS-in-JS for each breakpoint in separate media queries, I'd prefer to use the "responsive array" format supported by Theme UI and Styled System (https://styled-system.com/css#responsive-arrays) eg.
Currently, I'm using a
responsiveCapsize
utility function to generate these:Would you consider adding similar functionality to the Capsize to generate CSS-in-JS output using responsive arrays?
Beta Was this translation helpful? Give feedback.
All reactions