Sitelet https://github.com/devtoolcss/devtoolcss
Skip to content

Repository files navigation

DevtoolCSS

DevtoolCSS is a monorepo providing utilities and applications for manipulating DevTool's CSS data, currently supporting Chrome DevTools Protocol (CDP). It aims to demonstrate programmatic use of style panel's information.

Currently there are two applications focusing on inlining:

App Description Release
UI Export A Chrome DevTool extension that exports any components with CSS inlined. Chrome Web Store Version
cleanclone A cli crawler that inlilnes CSS, downloads resources, and rewrites links. NPM Version

Getting Started

If you want to try DevtoolCSS, start with UI Export.

Install the extension, open Chrome DevTools on a page, select an element, and export it in a few clicks.

For automated page-level workflows, see cleanclone.

Each package contains its own installation and usage documentation.

Motivation

I was migrating a WordPress site to code. I thought this would be easy with today’s tools, but it turned out that LLM-based cloners hallucinate CSS, and existing inliners can’t handle huge stylesheets.

However, Devtool can always provide the exact styles applied during rendering. Knowing that it’s all powered by Chrome DevTools Protocol (CDP) — thanks to my previous experience working on Chromium — I decided to create this project.

About

Let's build with devtool-parsed CSS!

Topics

Resources

Stars

30 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages