support custom breakpoints
See original GitHub issueThanks for making this module! I’ve been hoping to use the newer releases of Tailwind with Emotion.
I’m trying to use my custom @screen
breakpoints with the macro, but can only seem to get the default breakpoints to work.
I’m using the approach mentioned by @llaski on this thread, by calling the _utils.stringifyScreen
function. I recognize that this may not be intended as a public function, but it does work for the default breakpoints. Is there a way to have it recognize my custom breakpoints defined under my Tailwind config?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Additional custom breakpoints | Elementor
Breakpoints are used when designing your website to be responsive across all devices. Breakpoints use an additional set of CSS rules to apply...
Read more >Custom Breakpoints for Elementor – WordPress plugin
This Custom Breakpoint plugin will help you to set a specific property of elements for your custom made breakpoint. Just install and activate...
Read more >Support custom breakpoints · Issue #25 · nandorojo/dripsy
I think I know a simpler solution to this. Just use a static breakpoints variable that gets mutated in render code of the...
Read more >How To Use CSS Breakpoints For Responsive Design
CSS media query breakpoints can be selected based on the device on which the website is being rendered. However, this is not a...
Read more >Breakpoints · Bootstrap v5.0
Breakpoints are customizable widths that determine how your responsive layout behaves across device or viewport sizes in Bootstrap.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If you’re using them in a styled block then it’s a little more complex. You’d need to import the config and grab the screen sizes and work with them manually. I understand this isn’t ideal so I’ll provide a similar function in the near future.
For now, something like this should work:
I’ve run into that issue before and think I fixed it with the advice on that issue.