Skip to content

This website is still under development, so some information may not be accurate yet.Under development · details may not be accurate

UI Tools

A Chrome side-panel extension for designers: inspect the colors, fonts and contrast an element really renders, measure distances, pull a site's palette and design tokens, and audit a page for contrast.

UI Tools: Inspect any website like a design file. The inspect tooltip on a heading, beside the panel's color palette.

The idea

Checking a live website against a design usually means DevTools, a color picker, a contrast checker and a ruler, each in a different place. UI Tools puts them in one side panel that works on any site: hover an element to see the colors and font it actually renders, measure the space between elements the way Figma does, pull a site's palette and design tokens, and audit a whole page for contrast.

Implementation

  • A Manifest V3 extension built with WXT, React and TypeScript that lives in Chrome's side panel. Nothing runs on a page until the panel is used there.
  • Inspect works inside open and closed shadow roots and inside iframes, cross-origin ones included, and reports the font actually rendered rather than the first name in the stack.
  • The page scan reads every frame: a palette ranked by visual weight, text and background colors, the type scale, weights, spacing and radii, the page's CSS custom properties and the font files it loaded.
  • Everything exports as CSS variables, a Tailwind v4 @theme, a Tailwind v3 config, W3C design tokens (DTCG) or plain JSON.
  • The audit composites translucent colors, opacity and gradients, and measures text on photos from real screen pixels. Repeated failures are grouped, with the closest passing color suggested.
  • Overlays for column and baseline grids, redlines, a responsive ruler and color-blindness simulation with the Machado (2009) model that Chrome DevTools uses, kept in place across navigations.
  • Contrast and color tools: WCAG 2.2 and APCA contrast for any CSS color, conversion between HEX, RGB, HSL and OKLCH, tints, shades, harmonies and a color history.

Challenges

  • Reaching into closed shadow roots and cross-origin iframes such as Storybook's preview, and rejoining frames that reload mid-inspection.
  • Measuring contrast as it's actually rendered, through translucent layers, opacity, gradients and text over images.
  • Text over photos that is off-screen during an audit: UI Tools scrolls to each item, reads the pixels and puts the page back where it was.
  • Filtering every iframe for color-blindness simulation, cross-site embeds included, exactly once.

Result

Version 0.1.0 has seven tools in one panel, Inspect, Measure, Page, Audit, Overlay, Contrast and Colors, with light and dark themes and keyboard shortcuts for inspecting and measuring. Vitest covers the color math, compositing, APCA, exports and lint rules, and end-to-end tests drive the built extension in a real Chromium against fixture pages. It isn't on the Chrome Web Store yet.

The Tools

  • Inspect: rendered colors with token names, font, size and live contrast
  • Measure: pixel distances between elements, Figma-style
  • Page: palette, type scale, spacing, radii, tokens and fonts, with exports
  • Audit: WCAG AA contrast, target sizes, tiny text and consistency lints
  • Overlay: grids, redlines, a ruler and color-blindness simulation
  • Contrast: WCAG 2.2 and APCA for any two colors
  • Colors: conversions, tints, shades, harmonies and history

Keyboard

  • Alt+Shift+U toggles inspect
  • Alt+Shift+M toggles measure
  • Arrow keys move to the parent or a child, and [ ] cycle overlapping elements