mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-20 05:02:37 +08:00
17 lines
351 B
JavaScript
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;
|