feat: Tailwind UI 패키지 Storybook 환경 구축 #357
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
💻 작업 내용
Tailwind CSS 기반 UI 패키지(
@gitanimals/ui-tailwind)에 Storybook 개발 환경을 구축했습니다.Storybook 설정 추가:
.storybook/main.ts: Vite 기반 Storybook 설정, path alias 지원.storybook/preview.ts: 기본 프리뷰 설정 및 다크 테마 배경 설정.storybook/globals.css: Tailwind 디렉티브 및 Storybook 전용 스타일컴포넌트 스토리 작성 (5개):
Button: Primary/Secondary variant, S/M/L 사이즈, Disabled 상태, AnchorButtonCheckbox: 기본/체크/비활성화 상태, Label 연동 예제Dialog: 사이즈 variant(default/large/screen), 닫기 버튼 토글, Header/Footer 구성Select: 기본 사용법, 비활성화, 에러 상태, FormField 통합TextField: 사이즈 variant, 비활성화/에러 상태, Label/HelperText 연동패키지 설정:
postcss.config.js: Tailwind CSS PostCSS 플러그인 설정tailwind.config.ts: Storybook 경로 content 설정 추가package.json: Storybook 관련 의존성 및 스크립트 추가이전과 비교:
실행 방법:
pnpm --filter @gitanimals/ui-tailwind storybook # 또는 루트에서 pnpm sb:tailwind