Icons for HashiCorp Structure design system
npm install @hashicorp/structure-iconsnpm i @hashicorp/structure-icons or yarn add @hashicorp/structure-icons@hashicorp/structure-icons/dist/name-of-icon.svg. If you need a list of@hashicorp/structure-icons/dist/index.js.ember-cli-build.js:``
var app = new EmberApp({
svgJar: {
// Icons have already been optimized via SVGO,
// so we don't need to optimize them again.
optimize: false,
paths: [
'path/to/node_modules/@hashicorp/structure-icons/dist',
// ... additional paths
]
}
});
`
1. Go to the Icon System page in Figma. _Note:_ This link might be out of date, so check with someone in Design if you're not sure.
1. Highlight all of the icons under the "Icons" and "Logos" headers to the right of the sticker sheet
1. Use the right panel to export the icons in SVG format to the /src folder in this repo (if you delete any files from /src, be careful not to delete the "run" or "loading" SVG files or their CSS).npm run generate
1. Run /dist/index.html
1. Review to make sure your updates were added correctly
1. Commit your changes and follow the "New releases" instructions below
you should:1. ensure the
src folder contains all of the CSS and SVG files you want to publish
1. bump version number in the package.json
1. run npm publish - this will run the prepublishOnly hook which will
re-generate all of the optimized SVGs from the src folder and copy them to a
dist` folder.