mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
9bf5d29160
* Toast based logos locally sourced, consistent names, fixing positioning * Pulling unused classes * Using APP_ID_INSOMNIA over appName method, styling footer, adding alt tags * Removing gravatar from src and component library |
||
---|---|---|
.. | ||
.storybook | ||
assets | ||
components | ||
flow-typed | ||
webpack | ||
.babelrc | ||
.flowconfig | ||
.gitignore | ||
.npmignore | ||
.nvmrc | ||
.svgrrc.json | ||
index.js | ||
package-lock.json | ||
package.json | ||
README.md |
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:
- All background colors should be black (#000)
- 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.