Skip to content

Commit

Permalink
feat: Pretendard Regular woff2 하나만 남겨놓고 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
jklasd2001 committed Nov 15, 2022
1 parent f48984f commit de9fd5a
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 26 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-turkeys-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@musma/react-component": patch
---

feat: Pretendard Regular woff2 하나만 남겨놓고 제거
3 changes: 2 additions & 1 deletion packages/react-component/src/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { MouseEvent, useCallback, useMemo, useState } from 'react'

import { Box } from 'src/elements'

import { Button, Dropdown, Select } from './components'
import { Button, Dropdown, Select, Typography } from './components'

const OPTIONS = [
{ label: '31', value: 31 },
Expand All @@ -26,6 +26,7 @@ export const Component = () => {

return (
<Box>
<Typography type="h1">안녕하시렵니까.</Typography>
<Box css={{ textAlign: 'center', padding: 40 }}>
<Button onClick={toggleModal}>드롭다운 버튼</Button>
</Box>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,35 +1,11 @@
import { css, Global } from '@emotion/react'

import PretendardBold from 'src/assets/fonts/Pretendard-Bold.subset.woff2'
import PretendardMedium from 'src/assets/fonts/Pretendard-Medium.subset.woff2'
import PretendardRegular from 'src/assets/fonts/Pretendard-Regular.subset.woff2'
import PretendardSemiBold from 'src/assets/fonts/Pretendard-SemiBold.subset.woff2'

export const PretendardFont = () => {
return (
<Global
styles={css`
@font-face {
font-family: 'Pretendard';
font-weight: 700;
font-display: swap;
src: local('Pretendard Bold'), url(${PretendardBold}) format('woff2');
}
@font-face {
font-family: 'Pretendard';
font-weight: 600;
font-display: swap;
src: local('Pretendard SemiBold'), url(${PretendardSemiBold}) format('woff2');
}
@font-face {
font-family: 'Pretendard';
font-weight: 500;
font-display: swap;
src: local('Pretendard Medium'), url(${PretendardMedium}) format('woff2');
}
@font-face {
font-family: 'Pretendard';
font-weight: 400;
Expand All @@ -38,7 +14,9 @@ export const PretendardFont = () => {
}
html {
font-family: 'Pretendard';
font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR',
'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}
`}
/>
Expand Down

0 comments on commit de9fd5a

Please sign in to comment.