A minimalist and effective Chrome extension that displays TailwindCSS responsive breakpoints for easy reference during development.
Respify is a developer tool that shows the current TailwindCSS responsive breakpoint (xs, sm, md, lg, xl) in a draggable tooltip directly on your webpage. It helps front-end developers quickly identify which breakpoint is active during responsive design work.
- 📱 Real-time display of current TailwindCSS breakpoint
- 📊 Shows current screen resolution
- 🔄 Updates automatically when resizing the browser
- 🖱️ Draggable tooltip that stays where you place it
- ⚙️ Customizable tooltip size and opacity
- 🔍 Smart detection of TailwindCSS usage on websites
- 📋 Whitelist and blacklist functionality for specific sites
- 🛠️ Development mode to only show on development URLs
The extension can be downloaded directly from the chrome web store page, or locally from the repository, only needing /lib /src and manifest.json.
-
Clone this repository:
git clone /~https://github.com/mathieuTrunet/respify.git
-
Install dependencies (only needed for linting and chrome API intellisense):
bun install
-
Load the extension in Chrome:
- Open Chrome and navigate to
chrome://extensions/
- Enable "Developer mode"
- Click "Load unpacked" and select the root of directory
- Open Chrome and navigate to
- Click the Respify icon in your browser toolbar to access settings
- Navigate to any website using TailwindCSS
- The tooltip will appear showing the current breakpoint and screen resolution
- Drag the tooltip to position it anywhere on the screen
- Adjust size and opacity from the extension popup
The following diagram illustrates how Respify works:
The extension consists of:
- Background Scripts: Handle extension initialization and browser events
- Content Scripts: Inject and manage the tooltip in web pages
- Popup Interface: Provides user settings and controls
- Storage: Manages user preferences and site lists
Default TailwindCSS breakpoints:
- xs: < 640px
- sm: ≥ 640px
- md: ≥ 768px
- lg: ≥ 1024px
- xl: ≥ 1280px
- 2xl: ≥ 1536px
These can be customized in the extension settings.
- TailwindCSS Only: Only show on sites using TailwindCSS
- Development Only: Only show on development URLs
- Whitelist Mode: Only show on whitelisted sites
- Blacklist Mode: Don't show on blacklisted sites
Contributions are welcome. Feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.