This package has been deprecated

Author message:

Package no longer supported. Use at your own risk.

insomnia-components
TypeScript icon, indicating that this package has built-in type declarations

3.6.0 • Public • Published

insomnia-components

insomnia-components is a React component library of UI elements needed to build Insomnia.

SVGs

We use SVGR on the source SVGs to minify and convert them to React components. This conversion happens during npm run bootstrap.

The generated icons can automatically be bound to the theme library built into Insomnia, by following a few rules. In the source SVG:

  1. All background colors should be black (#000)
  2. All foreground colors should be white (#FFF)

SVGR converts these colors to fill='' and fill='currentColor' respectively. These icons are exposed via svg-icon.js, which sets the css fill and color of the SVG according to the required theme.

Readme

Keywords

none

Package Sidebar

Install

npm i insomnia-components

Weekly Downloads

4

Version

3.6.0

License

MIT

Unpacked Size

663 kB

Total Files

217

Last publish

Collaborators

  • insomnia-admin
  • gschier