Menu

Building a Privacy-First CSS/Tailwind/SVG Inspector With Zero Dependencies and Three Permissions
πŸ“°

Building a Privacy-First CSS/Tailwind/SVG Inspector With Zero Dependencies and Three Permissions

DEV Community: tailwindcssΒ·Kinto LabsΒ·2 days ago
#jJ5yxLMe
#devtotailwindcss#devto#dev#tailwind#shadow
Long article (1324 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Most "design inspector" extensions ask for a permission set that makes no sense for what they do: <all_urls> , background network access, sometimes even tabs with full history read. I wanted the opposite constraint for SpecPeek : a CSS, Tailwind, and SVG inspector that runs on exactly the tab you click, ships zero third-party JS, and never has a reason to see a URL you didn't explicitly show it. This post is about the engineering decisions that came out of holding that line β€” manifest permissions, Shadow DOM isolation, and writing a Tailwind class converter and a ZIP exporter from scratch instead of pulling in dependencies.

Why activeTab instead of <all_urls>

The default instinct for a page-inspection tool is to request host permissions for everything, because then your content script is always available and you never have to think about injection timing.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.