Package Exports
- @welcome-ui/icons
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@welcome-ui/icons) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
How to add icons in welcome-ui (from abstract)
Download the svg from abstract
Use svgomg to upload the svg you just downloaded
Deactivate the options
Round/rewrite paths
andRound/rewrite tansforms
Download the optimized svg and save it in the
icons/_assets/
folder using snake_case (repeat steps 1. 2. 3. and 4. for each icon you want to add)Make sure that the
fill
attribute of your svg is set tocurrentColor
(for monochrome icons)Run
yarn pre-build
Run
yarn build:icons
Run
yarn build
Run
yarn
Add your new icon(s) in the doc for
icons
andiconFont
respectively indocs/pages/components/icon.mdx
anddocs/pages/components/icon-font.mdx
Start/Restart your front server
Go fetch a beer, you're done!