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

[Feature] tailwindcss 를 외부에서 가져다 쓸 수 있도록 #42

Open
1 task
Skyrich2000 opened this issue Jun 3, 2023 · 3 comments
Open
1 task

Comments

@Skyrich2000
Copy link
Member

Skyrich2000 commented Jun 3, 2023

작업할 내용

  • tailwind를 쓰는 프로젝트는 내부 tailwindcss를 extend해서 사용할 수 있게 제공해야한다
  • 이런경우, 내부적으로는 tailwindcss가 포함되어있으면 안된다

해야할 일

  • todo1
  • todo2
  • todo3

Tasks

개쩐다 TV!

@Seojunhwan
Copy link
Member

요거 살짝 벗어나긴 했는데 가볍게 읽어봐주십숑ㅇ,,!

같은 className을 사용하는 프로젝트 tailwindConfig을 처리하는 괜찮은 방법이 있을까요?
사진과 같이 css가 2개 추가될 것 같은데, 만일 해당 프로젝트가 우연치않게 저희의 config값과 동일하게 overriding 하는 경우 어떤 style을 바라봐야하는지 모를 것 같아서,,
image

tailwind config prefix 요 부분이 있는데, 이런 식으로 prefix를 두면 저희 디자인 시스템이 바라봐야 하는 css는 명확하게 할 수 있지 않을까 싶어요

config 또한 export 하여 제공하는 것도 좋을 것 같아요 (필요하면 너네 tailwindConfig에 colorToken추가해서 써라!)

@Skyrich2000
Copy link
Member Author

아 맞아요 4ds에서는 무조건 prefix 두어서 가져다 쓰는쪽이랑 구분하도록 해야합니다
요것도 해야겠네요
사실 저희 esbuild 할때 자동으로 되면 좋은데
지금 방식이 그냥 무식하게 css 파일 강제로 꼽는거라..
일단 prefix는 해야합니다

@asdf99245
Copy link
Contributor

오 이런것도 고민해야됐네요 prefix는 꼭 넣어야겠군요

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants