@dfds-ui/icons
TypeScript icon, indicating that this package has built-in type declarations

2.0.27 • Public • Published

@dfds-ui/icons

Shared icons as React components within DFDS

Generating components from SVG sources

When adding/removing icons to/from the svgs folder a new set of generated components should be created and committed to the repository. To generate a new set run yarn generate

TODO

List of features and things we would like to add:

  • [x] Add folder containing the SVG sources from UX
  • [x] Use @svgr/cli to generate the React components
  • [ ] Support building "spritemaps" with SVG symbols
  • [ ] Document the "magic" colors being replaced
  • [ ] When publishing add SVGs to dist and then exclude src folder
  • [ ] Ensure that tsconfig.json is not being publish as it can bring warnings for consumers

Readme

Keywords

none

Package Sidebar

Install

npm i @dfds-ui/icons

Weekly Downloads

2,761

Version

2.0.27

License

MIT

Unpacked Size

8.83 MB

Total Files

2046

Last publish

Collaborators

  • dfdswebdev