Tailwind CSS Breakpoints in Google Chrome Device Toolbar

Author: Ally
Published:

Summary:

Setting up the Tailwind breakpoints by adding custom devices in Google Chrome’s device toolbar for easier testing.

The following default breakpoints in Tailwind CSS are:

name                   width
----------------------------
tailwind: 00 xs:       639
tailwind: 01 sm min:   640
tailwind: 02 sm max:   767
tailwind: 03 md min:   768
tailwind: 04 md max:   1023
tailwind: 05 lg min:   1024
tailwind: 06 lg max:   1279
tailwind: 07 xl min:   1280
tailwind: 08 xl max:   1535
tailwind: 09 2xl min:  1536

Open the Google Chrome Developer Tools and click on the device toolbar menu (blue device icon)

Google Chrome Developer Tool Device Toolbar Icon

At the top of the web-page, below the URL bar click on the Dimensions menu and then click Edit at the bottom of the menu.

An Emulated Devices window will open developer tools window.

Emulated Devices

Add the devices with the following names and widths above, I recommend the device height to be around half of the height of your display.

Emulated Devices

I made the following codepen and use in the apps I work on to debug on different viewports.

Using whiptail to show the active git branch for a set of git repositories
Building and hosting a full CI & CD containerised Laravel application
To bottom
To top