storybook/docs/utils/typography.js
2017-05-26 00:46:23 +02:00

17 lines
351 B
JavaScript

import Typography from 'typography';
import CodePlugin from 'typography-plugin-code';
const options = {
scaleRatio: 1.618,
plugins: [new CodePlugin()],
};
const typography = new Typography(options);
// Hot reload typography in development.
if (process.env.NODE_ENV !== 'production') {
typography.injectStyles();
}
export default typography;