Skip to content

Latest commit

 

History

History

web-extension

@carbon/devtools-web-extension

The Carbon Devtools web extension is a plugin tool for browsers that provides designers, developers, QA teams and anyone collaborating to build and validate Carbon pages with a simple set of tools.

Features

Grid overlay

Use the grid overlay feature to lay the 2x and mini unit grid on top of your page to quickly check the alignment of your page's layout. breakpoints.

chrome - screenshot - 1280x800  (2)

Grid overlay visual example

Specs

Switch between a number of speccing options like color, spacing, and typography to identify what Carbon tokens are being used for a given component or element on the page.

chrome - screenshot - 1280x800  (3)

Token identifier visual example

Component list

Quickly get an inventory of all the Carbon supported components being used on a given page. Search for a specific component, and click on it to find where it's located on the page.

chrome - screenshot - 1280x800  (4)

Resize browser

Identify what Carbon breakpoint you're browser is actively using, and quickly resize your browser to see how your page responds at various supported

Install on Chrome

  1. Go to Carbon Devtools on the Chrome Web Store.
  2. Click the "Add to Chrome" button.
  3. Once installed you can click to open it next to the Chrome Omnibox.

This extension works for all chromium based browsers, and thus can be applied to Microsoft Edge, Brave, and Opera as well.

Install on Firefox

  1. Go to Carbon Devtools on the Firefox browser add-ons.
  2. Click the "+ Add to Firefox" button.
  3. Once installed you can click to open it from your toolbar.

Local development

  1. Use node v16
  2. From the repository's root dir, run yarn install
  3. From this package's dir, run yarn build to build once or yarn watch to build on every filesave
  4. Launch the local build with one of the below:
  • yarn launch:chrome to open https://ibm.com in chrome
  • yarn launch:firefox to open https://ibm.com in firefox
  • yarn launch:firefox:dev to open firefox to the extension's debugging page.

Note: You may need to re-launch the extension for some changes (e.g. changes to the manifest file).

Build extension

  1. fork, clone and yarn install dependencies
  2. yarn build or yarn watch to build extension

🙌 Contributing

We're always looking for contributors to help us fix bugs, build new features, or help us improve the project documentation. If you're interested, definitely check out our Contributing Guide! 👀

📝 License

Licensed under the Apache 2.0 License.