A Chrome extension for measuring and analyzing web page elements with precision.
- 📏 Instantly measure dimensions of any element on a webpage
- 🧩 Visualize box model (margin, padding, borders)
- 📊 Show distances between elements
- 🔄 Toggle measure mode with a single click
- ⌨️ Keyboard shortcuts for easy operation
- 📋 Automatically copy TSX code snippets for measured elements
- Download or clone this repository
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in the top-right corner)
- Click "Load unpacked" and select the extension directory
- The extension icon should appear in your toolbar
- Click the extension icon in your toolbar to toggle measure mode on/off
- Hover over elements to see their dimensions
- Click on elements to:
- Create persistent measurement overlays
- Automatically copy TSX code snippets to clipboard
- Set reference points for distance measurements
- Press
Esconce to clear all measurements - Press
Esctwice quickly to deactivate measure mode
- Esc (single press): Clear all current measurements
- Esc (double press): Turn off measure mode completely
This extension works by:
- Injecting overlays to visualize element dimensions
- Calculating margin, padding, and positioning of elements
- Tracking distances between clicked elements
- Generating TSX code snippets based on the DOM structure
Contributions are welcome! Feel free to submit issues or pull requests.
- 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
MIT License - See LICENSE file for details.
Ehtz
Made with ❤️ for web developers and designers