Quickly inspect and copy CSS from any element on any webpage
View the Project on GitHub dangtrannam/css-inspector-extension
Quickly inspect and copy CSS from any element on any webpage.

https://github.com/user-attachments/assets/screenshots/recording-1.mp4
Escape to close, Space to pin/unpin the panel, Arrow keys to switch tabs.focus-visible and prefers-reduced-motion for enhanced usability.chrome://extensions/css-inspector-extension foldercss-inspector-extension/
├── manifest.json # Extension configuration (MV3)
├── background.js # Minimal service worker for extension lifecycle
├── popup.html # Popup UI structure
├── popup.css # Popup styling (Glassmorphism theme)
├── popup.js # Popup logic and communication
├── src/
│ ├── scripts/
│ │ └── content-script.js # In-page element inspection, CSS extraction, panel rendering
│ ├── styles/
│ │ └── overlay.css # Styles for overlay, panel, and rulers injected into page
│ └── images/
│ ├── icon.svg # Source SVG for icons
│ ├── icon-16.png # Extension icon (16x16)
│ ├── icon-48.png # Extension icon (48x48)
│ └── icon-128.png # Extension icon (128x128)
├── docs/ # Project documentation
├── plans/ # Implementation plans and reports
├── test-page.html # Development test page for quick validation
└── README.md # Project overview and usage guide
activeTab: Grants temporary host permission to the active tab when the user explicitly invokes the extension.scripting: Required to inject and manage content scripts dynamically into web pages on-demand.clipboardWrite: Enables the functionality to copy extracted CSS and selectors to the clipboard.Security Note: The extension uses minimal permissions. Content scripts are only injected when you click “Start Inspecting” on supported pages (excludes chrome://, chrome-extension://, and about: pages).
No build step required. Edit files directly and reload extension.
# Package for Chrome Web Store
zip -r css-inspector.zip . -x "*.git*" -x "docs/*" -x "plans/*" -x "test-page.html" -x ".claude/*" -x "src/images/*.error.txt" -x "*.mp4" -x "*.webm" -x "*.mov" -x "*.avi" -x "*.mkv" -x "_config.yml" -x "repomix-output.xml"
MIT