-
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.
Refactor: GlobalStyle & Theme 외부 파일 생성
main에서 선언하는 방식에서 각각의 파일로 생성하여 선언
- Loading branch information
Showing
3 changed files
with
40 additions
and
38 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
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,17 @@ | ||
import { createGlobalStyle } from "styled-components"; | ||
|
||
export const GlobalStyle = createGlobalStyle` | ||
/* css reset */ | ||
*{margin:0;padding:0;font:inherit;color:inherit;} | ||
*, :after, :before {box-sizing:border-box;} | ||
:root {-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;text-size-adjust:100%;cursor:default;line-height:1.5;overflow-wrap:break-word;word-break:break-word;tab-size:4;} | ||
html, body, #root {height:100%;} | ||
img, svg {display: block;max-width:100%;} | ||
button {background:none;border:0;cursor:pointer;} | ||
a {text-decoration:none} | ||
* { | ||
box-sizing: border-box; | ||
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; | ||
} | ||
`; |
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,20 @@ | ||
export const theme = { | ||
color: { | ||
primaryLight: "#FFECDB", | ||
primary: "#FF7C17", | ||
primaryDark: "#CB5A04", | ||
|
||
secondaryLight: "#CDEDFF", | ||
secondary: "#519EC9", | ||
secondaryDark: "#0072B1", | ||
|
||
black: "#151515", | ||
|
||
greyScale1: "#404040", | ||
greyScale2: "#686868", | ||
greyScale3: "#999999", | ||
greyScale4: "#B8B8B8", | ||
greyScale5: "#CDCDCD", | ||
greyScale6: "#E9E9E9", | ||
}, | ||
}; |