Documentation Add to Chrome

Reading & converting CSS

Three views of an element’s styles in one panel: live computed values, the source stylesheet rules that apply to it, and a Tailwind utility-class equivalent. Switch between views with a dropdown.

Click an element with the ruler active to populate the side panel’s Code section. A dropdown at the top of the section toggles between three formats. Computed CSS is free; Source and Tailwind are part of Inspect and Studio.

Computed CSS

The computed view shows the final, resolved CSS values that the browser is using to render the element. Every property is included, even ones inherited from parents or set by browser defaults. This is the truth on screen: what you see is exactly what’s being applied right now.

It’s the right view when you want to know what styles are active without caring where they came from. Useful for quick checks, copying a known-good style as a starting point, or auditing the rendered state of a third-party widget you can’t inspect any other way.

Click any single line to copy that one declaration to your clipboard. Use the copy button at the bottom of the block to grab the whole thing.

Source

The Source view answers a different question: where did each style come from? Screen Ruler walks every accessible CSSStyleSheet on the page and matches each rule’s selector against the selected element. Rules are grouped by source stylesheet and listed in the same order they appear in the file. Any rule declared inside an @media block is shown nested under that wrapper, including ones inactive at the current viewport, so you can see how the cascade would shift at a different breakpoint. Properties that are overridden by a higher-specificity rule are marked as such, so the cascade resolution is visible at a glance.

For each rule you see the selector, the source stylesheet, the media query if any, and the properties it sets. Cross-origin stylesheets the browser can’t read are skipped silently.

Rules are grouped by stylesheet and listed in file order, with overridden properties visibly marked.

This is how you debug “why is my style not applying?” without staring at DevTools. The rule that’s overriding yours is the highest-specificity match, with its source file and selector visible alongside any properties it knocked out.

Tailwind

The Tailwind view takes the element’s computed styles and converts them into equivalent Tailwind CSS utility classes, outputting Tailwind v4-compatible output.

This is the fastest way to migrate hand-written CSS to Tailwind, or to grab a working set of utilities from a competitor’s site. Click to copy the converted class string, paste it into your component, and you’re done.

Breakpoint differences

The Breakpoint Differences section shows how the selected element’s styles change across viewport widths. It appears below the Text Content section, or below the Code section when the element has no text, whenever the element’s styles differ between widths, with one code block per breakpoint range, written as an @media rule and listed from the smallest width up.

Only the properties that change are listed. Values the element inherits from a parent, such as a font size set on the body, are included too; hover over one to see which element it comes from. Design tokens show their real value at each width, so a padding set with var(--space) reads as the size it renders at.

The block for the current viewport width starts open. The others are folded to their media query: click one to see its styles, and use the copy button to grab the whole rule.

It works at any window size, with or without responsive mode. Rules inside @container or @scope aren’t included, and styles from cross-origin stylesheets the browser can’t read are missing until you grant access. When Screen Ruler can’t be sure of every value for an element, it leaves the section out instead of showing a guess.