Skip to content
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

[FE] atomic css 방식을 css props에 적용하는 유틸 함수 생성 #256

Closed
airman5573 opened this issue Aug 12, 2022 · 0 comments · Fixed by #259
Closed

[FE] atomic css 방식을 css props에 적용하는 유틸 함수 생성 #256

airman5573 opened this issue Aug 12, 2022 · 0 comments · Fixed by #259
Assignees
Labels
🚀 feature New feature or request 😁 frontend New frontend feature 🛠 refactoring Refactor code
Milestone

Comments

@airman5573
Copy link
Collaborator

airman5573 commented Aug 12, 2022

요약

twin.macro와 비슷하게 tailwind의 atomic css방식을 css props에 적용하는 유틸 함수를 만듭니다.
예를들어

<SideBar css={tw`sticky mb-20 py-[20px]`} />

이렇게 쓰면

<SideBar css={
  css`position: sticky; margin-bottom: 20px; padding-top: 20px; padding-bottom: 20px;`
} />

로 변환이 됩니다.

@airman5573 airman5573 added 🚀 feature New feature or request 😁 frontend New frontend feature 🛠 refactoring Refactor code labels Aug 12, 2022
@airman5573 airman5573 added this to the Milestone 4 milestone Aug 12, 2022
@airman5573 airman5573 self-assigned this Aug 12, 2022
@airman5573 airman5573 changed the title [기능] atomic css 방식을 css props에 적용하는 유틸 함수 생성 [FE] atomic css 방식을 css props에 적용하는 유틸 함수 생성 Aug 12, 2022
@nan-noo nan-noo closed this as completed Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 feature New feature or request 😁 frontend New frontend feature 🛠 refactoring Refactor code
Projects
None yet
2 participants