Programmatically export all the SVG icons from @wordpress/icons. This repository contains 305 icons extracted from @wordpress/icons@10.15.1.
- Install dependencies with
yarn
. - 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
.
Run yarn compare <version> <version>
to compare the icons between two versions.
wordpress-icon-compare.mp4
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;
This repository gets updated automatically with the latest version of @wordpress/icons.
The last update was on: 2025-01-13