-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: 공용 스타일(폰트,색상), 로컬 폰트 적용 및 기타 오류 해결 #19
Closed
Closed
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
36796a3
Chore: url 변경에 따른 app 폴더 구조 변경
seoyoung-min 3f39a2c
Fix: imageUrl 타입변경으로 인한 아이템 추가 오류 해결
seoyoung-min bc02ea1
Style: pretendard 로컬 폰트 적용
seoyoung-min 00b3740
Style: 색상 테마 설정 및 공용 font style 추가
seoyoung-min c96f47d
Style: 공용 색상, 폰트 활용하여 css 변경
seoyoung-min 359acc5
Fix: 파일명 변경 후 경로 수정 안해 발생한 오류 수정
seoyoung-min 365a447
Chore: 불필요 파일 삭제
seoyoung-min File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이렇게 전역적으로 사용할 수 있는 Pretendard라는 custom fontface를 만든 파일입니다. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { globalFontFace } from '@vanilla-extract/css'; | ||
|
||
export const Pretendard = 'GlobalPretendard'; | ||
|
||
globalFontFace(Pretendard, { | ||
fontWeight: 900, | ||
src: `url('/fonts/Pretendard-Black.woff2') format('woff2')`, | ||
}); | ||
|
||
globalFontFace(Pretendard, { | ||
fontWeight: 800, | ||
src: `url('/fonts/Pretendard-ExtraBold.woff2') format('woff2')`, | ||
}); | ||
|
||
globalFontFace(Pretendard, { | ||
fontWeight: 700, | ||
src: `url('/fonts/Pretendard-Bold.woff2') format('woff2')`, | ||
}); | ||
|
||
globalFontFace(Pretendard, { | ||
fontWeight: 600, | ||
src: `url('/fonts/Pretendard-SemiBold.woff2') format('woff2')`, | ||
}); | ||
|
||
globalFontFace(Pretendard, { | ||
fontWeight: 500, | ||
src: `url('/fonts/Pretendard-Medium.woff2') format('woff2')`, | ||
}); | ||
|
||
globalFontFace(Pretendard, { | ||
fontWeight: 400, | ||
src: `url('/fonts/Pretendard-Regular.woff2') format('woff2')`, | ||
}); | ||
|
||
globalFontFace(Pretendard, { | ||
fontWeight: 300, | ||
src: `url('/fonts/Pretendard-Light.woff2') format('woff2')`, | ||
}); | ||
|
||
globalFontFace(Pretendard, { | ||
fontWeight: 200, | ||
src: `url('/fonts/Pretendard-ExtraLight.woff2') format('woff2')`, | ||
}); | ||
|
||
globalFontFace(Pretendard, { | ||
fontWeight: 100, | ||
src: `url('/fonts/Pretendard-Thin.woff2') format('woff2')`, | ||
}); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
만들어둔 fontface를 globalStyle의 fontFamily로 적용했습니다!