Skip to content

mihalidis/PixelTape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

PixelTape

PixelTape

Measure distances & pick colors on any webpage A minimal, privacy-first Chrome extension built for frontend developers and QA testers.

Version Manifest Privacy License


โœจ Features

๐Ÿ“ Ruler

Measure the distance between any two points on a page in pixels. A live w ร— h tooltip follows your cursor while dragging, and the result is copied to the clipboard after the second click. It stays in measurement mode until you press ESC โ€” so you can take multiple measurements back-to-back.

๐ŸŽจ Color Picker

Grab any pixel on the page using the native EyeDropper API. Displays the value in HEX, RGB, HSL, and RGBA, and automatically copies your chosen format to the clipboard. Picked colors accumulate in the Saved Colors list.

๐Ÿ”ฒ Outline (Pesticide mode)

The fastest way to debug CSS layout problems: one click draws a 1px outline around every element on the page. Each tag type (div, section, p, ul, button, imgโ€ฆ) gets its own color, so you can tell nested elements apart at a glance. Inspired by Pesticide โ€” much faster than clicking around the DevTools element tree. Click the button again to turn it off.

๐Ÿช„ Extras

  • ๐ŸŽฏ Auto-copy format โ€” Pre-select your preferred format (HEX / RGB / HSL / RGBA)
  • ๐Ÿ’พ Saved Colors โ€” Every picked color is stored as a round swatch; click to re-copy (max 18)
  • ๐ŸŒ Bilingual โ€” Turkish and English (defaults to TR, your choice is persisted)
  • ๐Ÿ”’ 100% private โ€” No data collected, no network requests, everything lives in local chrome.storage.local
  • โšก Manifest V3 โ€” Modern service worker architecture
  • ๐Ÿ“ฆ Zero dependencies โ€” Vanilla JS, CSS, Chrome APIs โ€” no external libraries

๐Ÿš€ Installation

# 1. Clone the repo
git clone https://github.com/<user>/pixeltape.git

# 2. Open chrome://extensions in Chrome
# 3. Enable "Developer mode" in the top right
# 4. Click "Load unpacked" โ†’ select the pixeltape folder

๐ŸŽฎ Usage

Ruler

  1. Open the PixelTape popup โ†’ click the Ruler button
  2. Your cursor becomes a crosshair โ€” click anywhere on the page
  3. Until the second click, a live w: 20px - h: 15px tooltip follows the cursor
  4. On the second click the measurement is copied to the clipboard automatically
  5. Click again to start a new measurement โ€” press ESC to exit the mode

Color Picker

  1. Open the PixelTape popup โ†’ choose an Auto-copy format (HEX, RGB, HSL, RGBA)
  2. Click the Color Picker button โ†’ the magnifier appears on the page
  3. Pick a pixel โ†’ the value is copied to the clipboard in your chosen format
  4. The color is added to Saved Colors โ€” click it any time to re-copy

Outline

  1. Open the PixelTape popup โ†’ click the Outline button
  2. Every element on the page gets a colored outline based on its tag type
  3. Once you've found the layout issue, click Outline again to turn it off

๐ŸŽจ Design System

PixelTape comes with a carefully crafted color palette and typography:

Element Value
Font Nunito (400/600/700/800/900) + DM Mono
Header Gradient #e8e0ff โ†’ #fce4f5 โ†’ #d8f5ee
Lavender Accent #b39ddb / #9575cd / #5c42a8
Pink Accent #f48fb1 / #ec407a
Mint (active) #4caf96 / #d4f5ec
Border Radius 24px shell ยท 16px buttons ยท 14px cards

๐Ÿ“ Project Structure

pixeltape/
โ”œโ”€โ”€ manifest.json        # Manifest V3 configuration
โ”œโ”€โ”€ popup.html           # Extension popup UI
โ”œโ”€โ”€ popup.css            # Design system styles
โ”œโ”€โ”€ popup.js             # Popup logic + i18n + state
โ”œโ”€โ”€ content.js           # Injected ruler/picker/outline logic
โ”œโ”€โ”€ content.css          # Overlay, tooltip, and marker styles
โ”œโ”€โ”€ background.js        # Service worker โ€” popup open, message relay
โ”œโ”€โ”€ icons/               # 16 / 48 / 128 px extension icons
โ””โ”€โ”€ README.md

๐Ÿ” Privacy

PixelTape collects no data and makes no external requests.

  • โŒ No analytics
  • โŒ No telemetry
  • โŒ No remote APIs
  • โœ… All data stays in chrome.storage.local โ€” only in your browser
  • โœ… Source code is fully open and readable

๐Ÿ› ๏ธ Tech

  • Manifest V3 Chrome Extension
  • Vanilla JavaScript (no frameworks, no libraries)
  • Chrome APIs โ€” storage, scripting, tabs, action, clipboardWrite
  • Native EyeDropper API (Chrome 95+)

๐Ÿ“œ License

MIT ยฉ PixelTape


๐Ÿ”’ No data collected ยท 100% private

Made with ๐Ÿ’œ for developers & designers

About

๐Ÿ“๐ŸŽจ Measure distances & pick colors on any webpage โ€” a minimal Chrome extension for frontend devs & QA.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors