Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@NYeonK
Copy link
Contributor

@NYeonK NYeonK commented Jul 10, 2022

  • 브랜치명, 브랜치 알맞게 설정
  • Reviewer, Assignees, Label, Milestone, Issue(PR 작성 후에) 붙이기
  • PR이 승인된 경우 해당 브랜치는 삭제하기

📌 내용

  • style theme font, color setting

📌 내가 알게 된 부분

  • theme 설정하는 방법을 알게 되었다.
  • 아래처럼 font 함수 설정하는 법!
function FONT({ weight, size }: Font) {
  return css`
    font-family: "Pretendard";
    font-weight: ${weight};
    font-size: ${size}rem;
    line-height: 140%;
    letter-spacing: -0.04rem;
  `;
}
  • font라는 타입도 있다는 사실~!
  • theme 설정 후에는, indes.tsx에 <ThemeProvider theme={theme}>로 감싸줘야 적용이 된다!

📌 질문할 부분

  • 이해 완료😊

📸 스크린샷

첨부파일 없음

@NYeonK NYeonK self-assigned this Jul 10, 2022
@NYeonK NYeonK added this to the 🔥 Demo Day 🔥 milestone Jul 10, 2022
@NYeonK NYeonK linked an issue Jul 10, 2022 that may be closed by this pull request
4 tasks
Copy link
Member

@joohaem joohaem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

나이쓰 ~~~~ LGTM 🔥🔥🔥🔥

@joohaem joohaem merged commit 5100d5e into develop Jul 10, 2022
@joohaem joohaem deleted the feat/#3-style_theme branch July 10, 2022 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ Common ] style theme font, color setting

3 participants