```js import generic from '@invisionag/iris-generic'; ```


4.6.23 months ago5 years agoMinified + gzip package size for @invisionag/iris-generic in KB


JS Version

import generic from '@invisionag/iris-generic';

generic is a styled-components wrapper around a couple of shared stylings:

  • box-sizing
  • typography
  • normalization

Usage: Somewhere in your code, you want to inject the exported styling like so:

import * as React from 'react';
import GlobalStyles from '@invisionag/iris-generic';
import App from './my-root-component';

    <GlobalStyles />
    <App />

SCSS Version

Import the generic file in your sass bundle:

@import '~@invisionag/iris-generic/generic.scss';

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.