Skip to content

Repository files navigation

Contributors Forks Stargazers Issues MIT License

TypeCascade

TypeCascade

See which typography rule wins on a live page — then change it.

Explore the docs » · Demo · Changelog

Who this is for

Designers and front-end engineers who want DevTools-style typography cascade (winner + struck-through overruled layers), without hand-injecting Google Fonts / Bunny Fonts link tags just to preview a face on one div.

What it does

  1. Pick an element on any http(s) page.
  2. Read its classes, computed type, and detected font providers.
  3. Show a typography cascade stack — winners first; overruled inheritance / lower-specificity rules with strikethrough.
  4. Edit winning values and apply them as a temporary override.
  5. Inject a Google Fonts or Bunny Fonts stylesheet and apply the family to the selection.

Cross-origin stylesheets the browser keeps opaque are called out in the panel (same limitation as most extensions without the debugger API).

Install (unpacked)

Chrome / Edge / Chromium

  1. Clone this repo.
  2. Open chrome://extensions → enable Developer mode.
  3. Load unpacked → select this repository root (manifest.json).
  4. Open the side panel from the toolbar icon, then Pick element.

Firefox

  1. Copy manifest.firefox.json over manifest.json (or load it via web-ext).
  2. about:debuggingThis FirefoxLoad Temporary Add-on → choose manifest.json.
  3. Open the sidebar from the TypeCascade action.

Demo

An interactive facsimile of the panel lives in demos/ (GitHub Pages).

Built With

Role Stack
Runtime WebExtensions Manifest V3
UI Vanilla HTML / CSS / JS side panel
Fonts CDN Google Fonts CSS API, Bunny Fonts

Changelog

See CHANGELOG.md.

License

MIT

Contact

About

Pick page elements, see typography cascade with strikethrough overrides, edit winners, inject Google/Bunny fonts.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages