Skip to content

Commit

Permalink
🔧(breakpoint) add a new xs media queries
Browse files Browse the repository at this point in the history
Implement extra-small media queries for specific cases in responsive layout
on small screens. There is a difference of 16em between xs ans sm sizes, to
match the one between md and lg.

As default breakpoints have been overridden, this addition requires
no extra work.
  • Loading branch information
lebaudantoine committed Mar 19, 2024
1 parent c9bd6e7 commit 6629ad7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const config: Config = {
* up to 200% text zoom (RGAA criteria) and this is the easiest way to achieve that.
*/
screens: {
xs: '24em', // 384px
sm: '40em', // 640px
md: '48em', // 768px
lg: '64em', // 1024px
Expand Down

0 comments on commit 6629ad7

Please sign in to comment.