website/src/utils/typography.js

26 lines
496 B
JavaScript
Raw Normal View History

2020-11-28 00:39:21 +00:00
import Typography from 'typography';
2020-11-27 16:08:32 +00:00
const typography = new Typography({
baseFontSize: '18px',
baseLineHeight: 1.666,
headerFontFamily: [
2020-11-28 00:39:21 +00:00
'M PLUS 1p',
'Helvetica Neue',
'Segoe UI',
'Helvetica',
'Arial',
'sans-serif',
2020-11-27 16:08:32 +00:00
],
bodyFontFamily: ['Georgia', 'serif'],
googleFonts: [
{
2020-11-28 00:39:21 +00:00
name: 'M PLUS 1p',
2020-11-27 16:08:32 +00:00
styles: ['100', '400'],
2020-11-28 00:39:21 +00:00
},
],
2020-11-27 16:08:32 +00:00
});
// Export helper functions
export const { scale, rhythm, options } = typography;
2020-11-28 00:39:21 +00:00
export default typography;