Skip to content

Commit 876c17d

Browse files
committed
docs(globalstyle): add MS Sans Serif font
1 parent da57101 commit 876c17d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.storybook/decorators/globalStyle.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@ import React from 'react';
22
import { createGlobalStyle } from 'styled-components';
33

44
import styleReset from '../../src/components/common/styleReset';
5+
import MSSansSerif from '../../src/components/assets/fonts/MS-Sans-Serif.woff2';
56

67
const GlobalStyle = createGlobalStyle`
78
${styleReset}
9+
@font-face {
10+
font-family: 'MS-Sans-Serif';
11+
src: url('${MSSansSerif}') format('woff2');
12+
}
13+
body {
14+
font-family: 'MS-Sans-Serif', 'sans-serif';
15+
}
816
`;
917

1018
export default storyFn => (
3.23 KB
Binary file not shown.

0 commit comments

Comments
 (0)