v0.3Open source, MIT

Pixel-perfect UI feedback for AI agents.

PixelSpec is a free, open-source CSS inspector for your live website. Measure spacing, typography and color, pin visual feedback to any element, and copy a precise spec your AI coding agent can act on.

Install PixelSpec
localhost:3000/analytics
720 × 400
0

Runtime dependencies

1

Line to install

28kb

Gzipped, dev builds only

MIT

Open source, forever

Design QA on the real page. PixelSpec measures what actually shipped, lets you annotate it where it lives, and turns every note into a precise instruction your AI coding agent can act on.

Exact, not approximate

Every number comes from the rendered page. Sizes, spacing, line heights and contrast, measured to the pixel.

Made for your agent

Notes carry the selector, the component and the styles that matter. Paste once and your agent knows what to change.

Invisible to your app

It lives in its own shadow root and only loads in development. Your styles, bundle and users never see it.

Measure spacing, type and color on any website

A CSS inspector built for UI review. Hover for names and sizes, click for the full spec, and hover a second element to measure the distance between them. Every value is one click from your clipboard.

Spacing inspector

See padding, margin and the gap between children, drawn right on the element.

Distance measurement

Measure the space between any two elements in pixels. Hold Alt to measure to the parent.

Typography inspector

The font that actually rendered, with font size, weight, line height and letter spacing.

Color contrast checker

Text and background colors with the WCAG contrast ratio, checked against what's really behind them.

Component detection

React, Vue and Svelte components named automatically, with source files in dev builds.

Pinned visual feedback

Click anything and type. A numbered marker keeps the note on its element, even after a reload.

  • Crosshair guides
  • Pause animations
  • Quote selected text
  • No style leaks
  • Undo for deletes
  • Keyboard first

Visual feedback your
AI coding agent can act on

Every note ships with its CSS selector, component, size and the styles that matter. Your agent knows which element you mean, what it looks like now, and what you want instead. No screenshots, no guessing.

Set it up in a minute
Clipboard
UI feedback for /pricing (1440×900):
1. Make this button bigger
   main>section.hero>button.cta "Start free trial"
   126×34 p:10 18 | Inter 14/14 w600 | contrast:3.7 fails AA
2. Cards should line up with the nav
   section.plans>div.grid <PlanGrid> src/plans.tsx
   1104×520 p:0 24 | grid gap:24 cols:3
3. Too tight. Use the 8px grid
   div.card>ul.features "Unlimited projects"
   320×96 m:0 0 12 | col gap:6 | Inter 15/22 w400
3 notes · compactPress C to copy · Shift for full
  1. 01

    Mark it up

    Click an element and type what should change. Select text to quote it.

  2. 02

    Copy once

    Press C to copy every note. Compact by default, so it costs few tokens.

  3. 03

    Paste into your agent

    Any coding agent reads it. It gets the element, the numbers and your intent.

How it works:
five moves, no setup

Open PixelSpec from the button in the corner or with Alt + Shift + I. Then review your UI on the real page with the same five moves every time.

  1. 01

    Hover

    Name and size of anything under the cursor.

  2. 02

    Click

    The full spec. Click any value to copy it.

    ↑↓
  3. 03

    Measure

    Hover a second element for the distance.

    Alt
  4. 04

    Comment

    Type a note, press Enter. A marker pins it.

    Enter
  5. 05

    Copy

    Every note, ready for your agent.

    C

Install PixelSpec
in under a minute

Works with React, Next.js, Vite, Vue, Svelte and plain HTML. PixelSpec loads only in development, has zero dependencies and never touches your styles.

Terminal
npm install -D pixelspec
App.tsx
import { PixelSpec } from 'pixelspec/react';

export default function App() {
  return (
    <>
      <YourApp />
      {process.env.NODE_ENV === 'development' && <PixelSpec />}
    </>
  );
}

Keyboard

  • Toggle PixelSpecAltShiftI
  • Spacing overlayS
  • GuidesG
  • Pause animationsP
  • Hide markersH
  • Copy feedbackC
  • Clear all, with undoX

Frequently asked
questions

Everything you need to know about inspecting, measuring and annotating your UI with PixelSpec.

What is PixelSpec?

PixelSpec is a free, open-source visual feedback tool and CSS inspector for websites. It runs as an overlay on your live site in development, so you can measure spacing, typography and color, pin notes to elements, and copy precise feedback for your AI coding agent.

How do I measure spacing and padding on a website?

Turn on PixelSpec and hover any element. Padding shows in green, margin in orange and the gaps between children in pink, with the value in pixels. Hover a second element to see the exact distance between the two.

Does it work with my AI coding agent?

Yes. Press C to copy every note as compact text or full Markdown, then paste it into Claude Code, Cursor, Codex, Copilot or any agent that reads text. Each note includes the selector, component, size and styles, so the agent finds the right element.

Is PixelSpec for designers or developers?

Both. Designers use it for design QA on the real build: check spacing, type and color against the design, then leave notes on the exact element instead of sending screenshots. Developers and vibe coders use it to turn “this looks off” into precise instructions their AI coding agent can fix in one pass.

How does PixelSpec help with vibe coding?

When you build with an AI agent, describing visual bugs in words is the slow part. With PixelSpec you click the element, type what should change and copy. The agent gets the selector, component name, size, spacing, font and colors with every note, so it edits the right element without guessing.

Will PixelSpec affect my production site?

No. You load it only in development, it renders inside its own shadow root so it never changes your styles, and it has zero runtime dependencies.

Which frameworks does it support?

Any website. Install it from npm for React, Next.js, Vite, Vue or Svelte, or add one script tag to plain HTML. React, Vue and Svelte component names are detected automatically.

How does the color contrast check work?

PixelSpec reads the text color and the real composited background behind it, then shows the WCAG contrast ratio and whether it passes AA or AAA.

Is PixelSpec free?

Yes. PixelSpec is open source under the MIT license, free for personal and commercial use.

Stop eyeballing it.

Add PixelSpec to your dev build and ship every pixel the way you meant it.

Star on GitHub