https://github.com/javierarce/wordpress-icon-extractor
Programmatically export all the SVG icons from @wordpress/icons.
https://github.com/javierarce/wordpress-icon-extractor
icons icons-pack wordpress wordpress-development
Last synced: 8 months ago
JSON representation
Programmatically export all the SVG icons from @wordpress/icons.
- Host: GitHub
- URL: https://github.com/javierarce/wordpress-icon-extractor
- Owner: javierarce
- License: mit
- Created: 2024-07-11T11:49:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-09T00:25:37.000Z (8 months ago)
- Last Synced: 2025-02-09T01:24:51.152Z (8 months ago)
- Topics: icons, icons-pack, wordpress, wordpress-development
- Language: JavaScript
- Homepage:
- Size: 4.43 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.base.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
### 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 ` to compare the icons between two versions.
https://github.com/user-attachments/assets/eb03431a-6bd7-460a-85c7-550b6a8956ac
### 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.
```JavaScript
const ICONS_PER_ROW = 16;
const ICON_SIZE = 24;
```