Try to search your question here, if you can't find : Ask Any Question Now ?

Tailwind CSS – Responsive breakpoints as components

HomeCategory: stackoverflowTailwind CSS – Responsive breakpoints as components
Avatarcraig asked 5 months ago

How should I deal with responsive breakpoints as component in Tailwind?

Without Tailwind, I used to declare breakpoints as a scss mixins:

@mixin tablet-portrait {
  @media (min-width: 700px) {


@include tablet-portrait {
  // whatever

I know that Tailwind has responsive utility clases to use it inline as md:color-red but I need to abstract this breakpoins as components.

How should I extract Tailwind breakpoints from Taiwind config file?

1 Answers
Best Answer
AvatarMikhail answered 5 months ago
Your Answer

3 + 7 =

Popular Tags

WP Facebook Auto Publish Powered By :