Tailwind Inspector is a premium browser extension designed for developers and designers who work with Tailwind CSS. This tool provides real-time inspection, editing, and validation of Tailwind CSS classes on web pages, enabling rapid prototyping and debugging during development.
This extension supports:
- Full Tailwind CSS 3.x compatibility including arbitrary values, properties, and variants
- Real-time class inspection with visual element highlighting
- Interactive class editing with autocomplete suggestions
- Comprehensive error scanning for accessibility, broken images, and form validation
- Performance-optimized validation with caching and pre-compiled patterns
- Professional UI with dark theme and smooth animations
This documentation is intended for:
- Frontend Developers who use Tailwind CSS in their projects
- UI/UX Designers who need to inspect and modify styling in real-time
- Quality Assurance Engineers who validate CSS implementations
- Development Teams requiring collaborative debugging tools
- Browser: Chrome 88+, Firefox 85+, or Edge 88+
- Knowledge: Basic understanding of HTML, CSS, and Tailwind CSS
- Permissions: Access to active tabs for inspection functionality
- Tailwind CSS Documentation
- Chrome Extension Manifest V3
- ISO/IEC/IEEE 26514:2018 - Systems and software engineering β Requirements for designers and developers of user documentation
- Operating System: Windows 10+, macOS 10.14+, Linux (Ubuntu 18.04+)
- Browser: Chrome 88+, Firefox 85+, or Microsoft Edge 88+
- RAM: Minimum 512MB available
- Storage: 2MB free space for extension files
- Download the extension package (
.zipfile) - Extract the contents to a local directory
- Open Chrome and navigate to
chrome://extensions/ - Enable Developer mode in the top-right corner
- Click Load unpacked and select the extracted directory
- Verify the extension appears in the extensions list with the Tailwind logo
- Download the extension package
- Extract contents to a local directory
- Open Firefox and navigate to
about:debugging - Click This Firefox in the sidebar
- Click Load Temporary Add-on
- Select the
manifest.jsonfile from the extracted directory - Confirm the extension loads successfully
- Follow the same procedure as Chrome (Edge uses Chromium engine)
- Access extensions via
edge://extensions/
- Click the Tailwind Inspector icon in the browser toolbar
- Confirm the popup displays with the toggle button
- Navigate to any webpage
- Click the toggle button to activate the inspector
- Expected Result: A subtle overlay appears, and hovering over elements highlights them
Purpose: Enable the Tailwind Inspector for real-time CSS analysis.
Preconditions:
- Extension is installed and enabled
- You are on a webpage with HTML elements
Steps:
- Click the Tailwind Inspector icon in the browser toolbar
- In the popup window, click the large PREMIUM UNIQUE toggle button
- The button will turn green and display "ACTIVE" state
- Navigate to any webpage or refresh the current page
Result: The inspector is now active, and elements will highlight on hover.
Purpose: View and analyze Tailwind classes applied to specific elements.
Preconditions:
- Inspector is activated (green toggle button)
- You are viewing a webpage
Steps:
- Move your mouse cursor over any element on the webpage
- Observe: The element highlights with a colored overlay
- Click on the highlighted element
- Result: An inspector panel appears showing:
- Current Tailwind classes applied
- Edit/remove buttons for each class
- Input field for adding new classes
Purpose: Modify Tailwind classes in real-time for rapid prototyping.
Preconditions:
- Element is selected (inspector panel visible)
- You know the desired Tailwind class syntax
Steps:
- In the inspector panel, locate the class you want to modify
- Click the Γ button next to the class to remove it, OR
- Click directly on the class name to edit it in a prompt dialog
- Enter the new class name and press Enter
- Observe: The element styling updates immediately
Result: The element's appearance changes according to the new Tailwind classes.
Purpose: Apply additional Tailwind classes to enhance element styling.
Preconditions:
- Element is selected (inspector panel visible)
- You have identified the desired Tailwind utility classes
Steps:
- In the "Add new class" input field, type the class name
- Observe: Autocomplete suggestions appear as you type
- Select a suggestion using arrow keys and Enter, OR
- Complete typing the full class name
- Click the Add Class button or press Enter
- Observe: The class appears in the class list and applies to the element
Result: The new class is added to the element and the styling updates immediately.
Purpose: Perform comprehensive analysis of the webpage for issues.
Preconditions:
- Inspector is activated
- You want to audit the current webpage
Steps:
- Click the π SuperScan for Issues button in the popup
- Observe: The scan begins automatically
- Wait for completion (typically 1-5 seconds)
- Check the browser console for detailed results
Result: A markdown report is generated and displayed in the console, including:
- Invalid Tailwind classes with occurrence counts
- Accessibility issues (missing alt tags, unlabeled forms)
- Broken images and links
- Form validation problems
- Performance metrics
Purpose: Export the error scanning results for documentation or sharing.
Preconditions:
- Error scan has been completed
- Inspector panel is visible with selected element
Steps:
- In the inspector panel header, click the copy report icon (clipboard)
- Observe: Success tooltip appears: "Error report copied!"
- Paste the content into your preferred text editor or documentation tool
Result: The complete markdown-formatted error report is copied to clipboard.
Purpose: Export element HTML or class list for code reuse.
Preconditions:
- Element is selected in the inspector
Steps:
- In the inspector panel header, click the copy element icon (link)
- Result: Complete element HTML is copied to clipboard, OR
- Click the copy classes icon (document)
- Result: Space-separated list of classes is copied to clipboard
Purpose: Monitor the extension's validation performance and cache efficiency.
Preconditions:
- Inspector has been used on multiple elements
- Browser console is accessible
Steps:
- Open browser developer tools (F12)
- Go to the Console tab
- Type:
window.tailwindInspector.logCacheStats() - Press Enter
Result: Detailed performance statistics display, including:
- Cache hit rate percentage
- Total validations performed
- Average validation time
- Cache size and capacity
Symptoms: Extension icon not visible in toolbar, or popup not opening.
Resolution Steps:
- Verify browser compatibility (Chrome 88+, Firefox 85+, Edge 88+)
- Check if extension is enabled in browser settings
- Try refreshing the extension:
- Go to
chrome://extensions/(or equivalent) - Toggle the extension off and on again
- Go to
- Restart the browser completely
- Reinstall the extension if issues persist
Symptoms: Toggle button is active but elements don't highlight on hover.
Resolution Steps:
- Refresh the current webpage
- Check if the webpage uses shadow DOM (limited support)
- Verify the page has finished loading completely
- Try deactivating and reactivating the inspector
- Check browser console for JavaScript errors
Symptoms: Class input field doesn't show suggestions when typing.
Resolution Steps:
- Ensure you're typing valid Tailwind class prefixes
- Wait a moment for the autocomplete to load (may take 1-2 seconds on first use)
- Check if the cache is full - clear it with:
window.tailwindInspector.clearCache() - Refresh the page and try again
Symptoms: Added classes don't change element appearance.
Resolution Steps:
- Verify the class name is spelled correctly
- Check if Tailwind CSS is loaded on the page
- Ensure the element supports the CSS property you're trying to apply
- Try applying a simple class first (e.g.,
bg-red-500) to test functionality
| Error Message | Meaning | Resolution |
|---|---|---|
Extension context invalidated |
Extension was reloaded during use | Refresh the page and reactivate inspector |
Cannot read property 'classList' |
Selected element doesn't support class manipulation | Try selecting a different HTML element |
Cache validation failed |
Internal cache corruption | Run window.tailwindInspector.clearCache() |
Pattern compilation error |
Regex pattern issue | Reload the extension |
Symptoms: Error scanning takes longer than 10 seconds.
Resolution:
- The page may have many elements - this is normal for large pages
- Check performance metrics:
window.tailwindInspector.getCacheStats() - Clear cache if hit rate is low:
window.tailwindInspector.clearCache() - Consider scanning smaller sections of the page
Symptoms: Browser becomes slow or unresponsive.
Resolution:
- Clear the validation cache:
window.tailwindInspector.clearCache() - Restart the browser to free memory
- Limit use to smaller pages during development
The extension consists of three main components:
- Popup Interface (
popup.html,popup.js): User control interface - Content Script (
content.js): Core inspection and validation logic - Manifest (
manifest.json): Extension configuration and permissions
- Cold Cache: ~0.12ms per validation
- Warm Cache: ~0.001ms per validation (150x faster)
- Cache Hit Rate: 80-95% on typical pages
- Memory Usage: ~50KB for 1000 cached validations
- Small Pages (100 elements): ~15ms
- Medium Pages (1000 elements): ~80ms
- Large Pages (5000 elements): ~250ms
- β Core Utilities: All standard Tailwind classes
- β
Arbitrary Values:
w-[137px],bg-[#1da1f2],w-[calc(100%-2rem)] - β
Arbitrary Properties:
[mask-type:luminance] - β
Arbitrary Variants:
[@media(min-width:600px)]: - β
Responsive Variants:
sm:,md:,lg:,xl:,2xl: - β
State Variants:
hover:,focus:,active:,visited:,disabled: - β
Dark Mode:
dark: - β
Important Modifier:
!text-red-500 - β
Opacity Modifiers:
bg-red-500/50 - β
Universal Variant (v4):
*:text-sm - β
Has Variants (v4):
has-hover:,has-[.selected]:,group-has-focus: - β
Nth-child Formulas (v4):
nth-[2n+1]:,nth-[3n]: - β
ARIA Attributes (v4):
aria-[checked=true]:,aria-expanded: - β
Data Attributes (v4):
data-[state=open]:,data-active: - β
3D Transforms (v4):
rotate-x-45,translate-z-12,perspective-1000 - β
Subgrid (v4):
grid-cols-subgrid,grid-rows-subgrid - β
Text Wrap (v4):
text-balance,text-pretty - β
Starting Variant (v4):
starting:opacity-0 - β
Forced Colors (v4):
forced-colors:border-2 - β And 50+ more Tailwind 4 features!
- Missing alt attributes on images
- Unlabeled form inputs
- Broken image sources
- Empty or placeholder links
- Chrome: 88+ (Manifest V3)
- Firefox: 85+
- Edge: 88+ (Chromium-based)
- Safari: Not supported (Manifest V3 limitations)
For technical support or questions:
- Email: support@b-b.top
- GitHub: https://github.com/bivex
- Documentation: This README file
When reporting bugs, please include:
- Browser version and operating system
- Steps to reproduce the issue
- Expected vs. actual behavior
- Console error messages (if any)
- Screenshot of the problem
Suggestions for new features are welcome via:
- GitHub Issues on the project repository
- Email to the support address
This software is licensed under the MIT License.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Commercial licensing options are available for enterprise use, redistribution, or custom development. Contact support@b-b.top for licensing inquiries.
This tool is provided for development and debugging purposes. The authors are not responsible for any damages or issues caused by the use of this software in production environments.
- 10-150x faster validation with LRU caching
- 95%+ cache hit rate on typical pages
- Pre-compiled regex patterns (15+ patterns)
- Set-based O(1) lookups for prefixes (300+ entries)
- Real-time performance metrics in scan reports
Version 2.0.0 adds complete support for all Tailwind 4 features:
*:- Universal variant (applies to all children)has-hover:,has-[.selected]:- Has-state variantsnth-[2n+1]:,nth-[3n]:- Nth-child with formulasaria-[checked=true]:- Enhanced ARIA attributesdata-[state=open]:- Data attribute variantsstarting:- Animation entry statesforced-colors:,contrast-more:- Accessibility modes
- 3D Transforms:
rotate-x-*,rotate-y-*,rotate-z-*,translate-z-*,perspective-* - Subgrid:
grid-cols-subgrid,grid-rows-subgrid - Text Wrap:
text-balance,text-pretty,text-wrap - Anchor Positioning:
anchor-name-*,position-anchor-* - View Transitions:
view-transition-name-* - Scroll Animations:
animation-timeline-*,animation-range-* - And much more!
- Full CSS function support:
calc(),clamp(),min(),max(),var() - Complex expressions:
w-[calc(100%-theme(spacing.8))] - Nested functions:
h-[clamp(min(1rem,2vw),5vw,max(3rem,8vh))]
- PERFORMANCE_IMPROVEMENTS.md - Detailed optimization guide
- TAILWIND_4_SUPPORT.md - Complete Tailwind 4 feature reference
New console utilities for debugging:
window.tailwindInspector.getCacheStats() // View cache performance
window.tailwindInspector.logCacheStats() // Detailed statistics table
window.tailwindInspector.clearCache() // Reset cacheTailwind Inspector - Premium CSS Development Tools Version: 2.0.0 (Tailwind 4 Compatible) Author: Bivex Copyright: Β© 2025 Bivex. All rights reserved. Last Updated: December 20, 2025