forked from kookmin-sw/cap-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #245 from kookmin-sw/feature/13
Feat : 폰트 적용
- Loading branch information
Showing
15 changed files
with
174 additions
and
26 deletions.
There are no files selected for viewing
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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 |
---|---|---|
@@ -1,13 +0,0 @@ | ||
body { | ||
margin: 0; | ||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', | ||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', | ||
sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
code { | ||
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', | ||
monospace; | ||
} | ||
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
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,77 @@ | ||
import { createGlobalStyle } from "styled-components"; | ||
import { reset } from "styled-reset"; | ||
import Pretendard_Black from "../assets/fonts/pretendard/Pretendard-Black.woff"; | ||
import Pretendard_Bold from "../assets/fonts/pretendard/Pretendard-Bold.woff"; | ||
import Pretendard_semiBold from "../assets/fonts/pretendard/Pretendard-SemiBold.woff"; | ||
import Pretendard_ExtraBold from "../assets/fonts/pretendard/Pretendard-ExtraBold.woff"; | ||
import Pretendard_ExtraLight from "../assets/fonts/pretendard/Pretendard-ExtraLight.woff"; | ||
import Pretendard_Light from "../assets/fonts/pretendard/Pretendard-Light.woff"; | ||
import Pretendard_Medium from "../assets/fonts/pretendard/Pretendard-Medium.woff"; | ||
import Pretendard_Regular from "../assets/fonts/pretendard/Pretendard-Regular.woff"; | ||
import Pretendard_Thin from "../assets/fonts/pretendard/Pretendard-Thin.woff"; | ||
|
||
const GlobalFont = createGlobalStyle` | ||
@font-face { | ||
font-family: 'Pretendard Black'; | ||
font-weight: 900; | ||
font-display: swap; | ||
src: local('Pretendard Black'), url(${Pretendard_Black}) format('woff'); | ||
} | ||
@font-face { | ||
font-family: 'Pretendard '; | ||
font-weight: 800; | ||
font-display: swap; | ||
src: local('Pretendard ExtraBold'), | ||
url(${Pretendard_ExtraBold}) format('woff'); | ||
} | ||
@font-face { | ||
font-family:'Pretendard'; | ||
font-weight:700; | ||
font-display:swap; | ||
src:local('Pretendard Bold'), url(${Pretendard_Bold}) format("woff"); | ||
} | ||
@font-face { | ||
font-family:'Pretendard'; | ||
font-weight:600; | ||
font-display:swap; | ||
src:local('Pretendard SemiBold'), url(${Pretendard_semiBold}) format("woff"); | ||
} | ||
@font-face { | ||
font-family:'Pretendard'; | ||
font-weight:500; | ||
font-display:swap; | ||
src:local('Pretendard Medium'), url(${Pretendard_Medium}) format("woff") | ||
} | ||
@font-face { | ||
font-family:'Pretendard'; | ||
font-weight:400; | ||
font-display:swap; | ||
src:local('Pretendard Regular'), url(${Pretendard_Regular}) format("woff") | ||
} | ||
@font-face { | ||
font-family: 'Pretendard'; | ||
font-weight: 300; | ||
font-display: swap; | ||
src: local('Pretendard Light'),url(${Pretendard_Light}) format('woff'); | ||
} | ||
@font-face { | ||
font-family: 'Pretendard'; | ||
font-weight: 200; | ||
font-display: swap; | ||
src: local('Pretendard ExtraLight'), url(${Pretendard_ExtraLight}) format('woff'); | ||
} | ||
@font-face { | ||
font-family: 'Pretendard'; | ||
font-weight: 100; | ||
font-display: swap; | ||
src: local('Pretendard Thin'),url(${Pretendard_Thin}) format('woff'); | ||
} | ||
`; | ||
export default GlobalFont; |
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,14 @@ | ||
export const theme = { | ||
token: { | ||
colorSuccess: "#58f60a", | ||
colorWarning: "#ffb600", | ||
colorError: "#f93638", | ||
colorBgBase: "#1a1a20", | ||
fontSize: 15, | ||
colorLink: "#1677ff", | ||
colorPrimaryBgHover: "#1677ff", | ||
}, | ||
components: { | ||
// component token | ||
}, | ||
}; |