Skip to content

Conversation

TrySound
Copy link
Member

Ref #2651

When convert tailwind breakpoints to webstudio breakpoints our algorithm can find holes and will stop conversion. Though this will create mobile-first breakpoints which users do not expect.

Here I added workaround to specify "unset" value on property when tailwind breakpoints has holes. Here's examples

sm:opacity-20 - here the hole is in the beginning, opacity: 0.2 can be defined on base breakpoint but we need to fill with something max-width: 479

max-sm:opacity-10 md:opacity-20 - here the holr is in the middle, we have max-width: 479 and base breakpoint but no max-width: 767

Ref #2651

When convert tailwind breakpoints to webstudio breakpoints
our algorithm can find holes and will stop conversion.
Though this will create mobile-first breakpoints which users do not
expect.

Here I added workaround to specify "unset" value on property when
tailwind breakpoints has holes. Here's examples

**sm:opacity-20** - here the hole is in the beginning, opacity: 0.2
can be defined on base breakpoint but we need to fill with something
`max-width: 479`

**max-sm:opacity-10 md:opacity-20** - here the holr is in the middle,
we have `max-width: 479` and base breakpoint but no `max-width: 767`
@TrySound TrySound merged commit 232847c into main Jun 28, 2025
17 checks passed
@TrySound TrySound deleted the unset branch June 28, 2025 14:55
TrySound added a commit that referenced this pull request Jun 28, 2025
Ref #2651

When convert tailwind breakpoints to webstudio breakpoints our algorithm
can find holes and will stop conversion. Though this will create
mobile-first breakpoints which users do not expect.

Here I added workaround to specify "unset" value on property when
tailwind breakpoints has holes. Here's examples

**sm:opacity-20** - here the hole is in the beginning, opacity: 0.2 can
be defined on base breakpoint but we need to fill with something
`max-width: 479`

**max-sm:opacity-10 md:opacity-20** - here the holr is in the middle, we
have `max-width: 479` and base breakpoint but no `max-width: 767`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants