@invisionag/iris-generic

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@invisionag/iris-generic
4.6.22 years ago6 years agoMinified + gzip package size for @invisionag/iris-generic in KB

Readme

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';

render(
  <>
    <GlobalStyles />
    <App />
  </>
)
SCSS Version
Import the generic file in your sass bundle:
@import '~@invisionag/iris-generic/generic.scss';