/wordpress-icon-extractor

Programmatically export all the SVG icons from @wordpress/icons.

Primary LanguageJavaScriptMIT LicenseMIT

WordPress Icon Extractor

Programmatically export all the SVG icons from @wordpress/icons. This repository contains 305 icons extracted from @wordpress/icons@10.15.1.

WordPress Icons Grid

How to use

  1. Install dependencies with yarn.
  2. Run yarn start.

If there's a new version of the npm package, the script will automatically update the version in the package.json file and then download the new icons into the icons folder. After that task, it will generate a sample grid file and save it with the following name: grid-{package-version}.svg.

What to do after running the script

Run yarn compare <version> <version> to compare the icons between two versions.

wordpress-icon-compare.mp4

Configuration

By default the script will generate a grid with 16 icons per row and 16px size per icon. You can change these values in the script.

const ICONS_PER_ROW = 16;
const ICON_SIZE = 24;

Last updated

This repository gets updated automatically with the latest version of @wordpress/icons.
The last update was on: 2025-01-13