insomnia/packages/insomnia-components
Gregory Schier 4387381fd1
Upgrade node-libcurl (#2223)
* deps: bump node-libcurl to latest prerelease version

* Add .npmrc, bump Electron to 3.1.13, remove electron-rebuild

* Minor tweaks

* package locks

* Bump version

* Switch to font-manager and fix fsevents rimraf

* Try generating npmrc inside build/

* Try uninstall of fsevents instead

* Bump

* Try npm env vars

* Extra .npmrc

* Try npm env vars in all CI

* Fix insomnia-cookies dependencies

* Fix typo

* Loosen nvmrc version

* Remove npm uninstalls

* Build outside of Docker

* Remove Docker, build all on GH Actions

* Bump Core version

* Disable Snapcraft for now

* Bump

* Disable snap for Designer too

* Update product name for Core

* Update test.yml

* Remove Travis file

* Make userData folder explicit and add Curl types

* Remove old Kong icon

* Remove curl.js adapter

* Revert productName

* Fix release date

* Try remove windows build tools from CI

* Add comment about Snap deploys

* Remove the pane border on Windows (no longer necessary)

Co-authored-by: Jonathan Cardoso Machado <me@jonathancardoso.com>
2020-05-28 10:09:51 -07:00
..
.storybook Various k4k8s config gen bugs (#2136) 2020-05-15 08:27:43 +12:00
assets Storybook Sidebar Provisioning & WIP Implementation (#2125) 2020-05-14 14:00:29 -04:00
components Help Tooltip Component Migration (#2200) 2020-05-21 14:17:14 -04:00
flow-typed Storybook Sidebar Provisioning & WIP Implementation (#2125) 2020-05-14 14:00:29 -04:00
.babelrc Initial designer merge 2020-04-26 13:33:39 -07:00
.flowconfig Initial designer merge 2020-04-26 13:33:39 -07: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
.svgrrc.json Initial designer merge 2020-04-26 13:33:39 -07:00
index.js Storybook Sidebar Provisioning & WIP Implementation (#2125) 2020-05-14 14:00:29 -04:00
package-lock.json lib@2.2.6 2020-05-20 20:15:22 -07:00
package.json Upgrade node-libcurl (#2223) 2020-05-28 10:09:51 -07:00
README.md Initial designer merge 2020-04-26 13:33:39 -07:00
webpack.config.js Initial designer merge 2020-04-26 13:33:39 -07: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.