Flagsmith / Flagsmith/flagsmith

Port bootstrap breakpoints to tailwind

Open
#6,111 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
6.6k
Forks
567
Avg merge
1d 13h
Merged PRs (30d)
121

Description

Currently using Bootstrap 5.2.2 breakpoints throughout the codebase. Need to configure Tailwind to use identical breakpoints to migrate without regressions.

## Current state
Bootstrap breakpoints:
```
xs: 0px,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px,
xxl: 1400px
```

Tailwind default breakpoints:
```
sm: 640px,
md: 768px,
lg: 1024px,
xl: 1280px,
2xl: 1536px
```

Migrate components using Bootstrap responsive classes: `py-md-2, d-lg-flex` etc.

## DoD
- [ ] Tailwind breakpoints match Bootstrap breakpoints exactly
- [ ] Responsive classes can be migrated without visual changes
- [ ] Documentation exists for team on migration pattern
- [ ] No visual regressions in responsive design

**Migration examples**
```
// tailwind.config.js
screens: {
'xs': '0px',
'sm': '576px',
'md': '768px',
'lg': '992px',
'xl': '1200px',
'2xl': '1400px'
}

text-sm text-md-lg -> text-sm lg:text-lg
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.