insomnia/packages/insomnia-components
2021-03-19 14:52:45 +01:00
..
__jest__ Tooltip with an initial empty message does not unmount correctly (#2927) 2020-12-15 09:27:11 +13:00
__mocks__ Tooltip with an initial empty message does not unmount correctly (#2927) 2020-12-15 09:27:11 +13:00
.storybook Updating storybook styling (#2489) 2020-08-06 10:00:21 -04:00
assets Design sidebar (#2328) 2020-07-22 09:13:06 -04:00
components Add option to disable migrating workspaces (#3108) 2021-02-26 12:01:46 +13:00
flow-typed Autobind replacement and react-hot-reload update (#3022) 2021-02-03 11:23:42 +13:00
webpack Fix webpack file watching, remove styled-components from insomnia-components bundle (#2497) 2020-08-11 07:12:53 +12:00
.babelrc Tooltip with an initial empty message does not unmount correctly (#2927) 2020-12-15 09:27:11 +13:00
.flowconfig Tooltip with an initial empty message does not unmount correctly (#2927) 2020-12-15 09:27:11 +13:00
.gitignore Remove built files from source control and update bootstrap steps (#2165) 2020-05-15 08:57:03 +12:00
.npmignore Remove built files from source control and update bootstrap steps (#2165) 2020-05-15 08:57:03 +12:00
.nvmrc Fix netlify/storybook deployment issues (#2572) 2020-08-31 21:58:54 +12:00
.svgrrc.json Initial designer merge 2020-04-26 13:33:39 -07:00
index.js Update layout of the homepage (#3069) 2021-02-11 12:37:10 +13:00
package-lock.json lib@2.2.29 2021-03-03 11:12:19 +13:00
package.json lib@2.2.29 2021-03-03 11:12:19 +13:00
README.md Initial designer merge 2020-04-26 13:33:39 -07:00
vercel.json Replace Netlify with Vercel for Storybook (#3212) 2021-03-19 14:52:45 +01:00

insomnia-components

insomnia-components is a React component library of UI elements needed to build Insomnia. Explore the components via Storybook!

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.

You can view the current icons available here.