npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

firefox-css-theme

v0.3.4

Published

Scaffolds, live-debugs, and installs Firefox CSS themes.

Readme

Firefox CSS Theme

npm version Test

A toolkit for scaffolding, live-debugging, and installing Firefox CSS themes. For agentic DOM inspection and live styling, an MCP server is also available.

Getting Started

[!TIP] You need Node.js to get started.

For Theme Authors

Scaffold a new theme project using npx:

npx firefox-css-theme create

This interactively prompts for your theme name and stylesheet targets (userChrome only, userContent only, or both).

If you have already opened a theme repository, launch Firefox with live CSS hot-reloading:

npx firefox-css-theme start

[!NOTE] Theme entry files (userChrome.css and/or userContent.css) must be located at the root of the project directory.

For Theme Users

Navigate to the theme directory and install the stylesheets:

npx firefox-css-theme install

The toolkit will look for userChrome.css and userContent.css in the current directory, and install them into the selected Firefox profile.

For the full list of CLI options, run npx firefox-css-theme --help.

MCP Server Usage

The MCP server enables AI assistants to inspect the Firefox chrome DOM, query computed styles, inject custom CSS, and capture UI screenshots in real time.

MCP Usage Example - Customising Close Tab Button

Configuration

Add the server to your preferred client or development environment:

Claude Code

claude mcp add firefox-css-theme -- npx -y firefox-css-theme mcp

Codex

codex mcp add firefox-css-theme -- npx -y firefox-css-theme mcp

IDE MCP Configuration

{
	"mcpServers": {
		"firefox-css-theme": {
			"command": "npx",
			"args": ["-y", "firefox-css-theme", "mcp"]
		}
	}
}

Available MCP Tools

  • launch_browser: Launches Firefox with chrome debugging.
  • close_browser: Terminates the browser instance.
  • customize_toolbar: Toggles the Firefox "Customise Toolbar" mode.
  • get_ui_tree: Dumps the hierarchical DOM tree of the selected UI element.
  • query_ui_elements: Queries elements matching a CSS selector in the browser chrome.
  • get_computed_styles: Extracts computed CSS property values of a specific UI element.
  • inject_theme_css: Injects a stylesheet into the live UI.
  • remove_theme_css: Removes an injected stylesheet.
  • list_theme_css: Lists all currently injected stylesheets.
  • take_ui_screenshot: Captures a screenshot of a specific UI component.
  • execute_chrome_javascript: Runs JavaScript in the browser chrome window context.

Commands

firefox-css-theme create

Scaffold a new Firefox CSS theme project.

Usage

npx firefox-css-theme create [options]

Options

| Option | Description | | ----------------------- | ------------------------------------------- | | -n, --name <name> | Theme name | | -t, --target <target> | Stylesheet target: chrome, content, or both | | -f, --force | Proceed without warning |


firefox-css-theme start

Launch Firefox with live stylesheet bundling and hot-reloading.

Usage

npx firefox-css-theme start [options]

Options

| Option | Description | | ---------------------- | ----------------------------------------------------------------------------------------- | | -b, --binary <path> | Path to Firefox executable | | -p, --profile <name> | Firefox profile name | | --headless | Run in headless mode | | --atbc | Start with Adaptive Tab Bar Colour | | --no-toolbox | Disable Browser Toolbox | | --no-watch | Disable file watching |


firefox-css-theme install

Install compiled stylesheets from the current working directory into a Firefox profile.

Usage

npx firefox-css-theme install [options]

Options

| Option | Description | | ---------------------- | ------------------------------- | | -p, --profile <name> | Firefox profile name | | -m, --merge | Merge with existing stylesheets | | -f, --force | Proceed without warning |

[!WARNING] This operation will overwrite existing CSS themes in the profile unless --merge is specified. A backup is advised.


firefox-css-theme mcp

Start the Model Context Protocol (MCP) server.

Usage

npx firefox-css-theme mcp [options]

Options

| Option | Description | | ---------------------- | -------------------------- | | -b, --binary <path> | Path to Firefox executable | | -p, --profile <name> | Firefox profile name |