Skip to content

Commit

Permalink
docs(globalstyle): add MS Sans Serif font
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbien committed Apr 8, 2020
1 parent da57101 commit 876c17d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .storybook/decorators/globalStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@ import React from 'react';
import { createGlobalStyle } from 'styled-components';

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

const GlobalStyle = createGlobalStyle`
${styleReset}
@font-face {
font-family: 'MS-Sans-Serif';
src: url('${MSSansSerif}') format('woff2');
}
body {
font-family: 'MS-Sans-Serif', 'sans-serif';
}
`;

export default storyFn => (
Expand Down
Binary file added src/components/assets/fonts/MS-Sans-Serif.woff2
Binary file not shown.

0 comments on commit 876c17d

Please sign in to comment.