Skip to content

feat: Tailwind UI 패키지 Storybook 환경 구축#357

Merged
sumi-0011 merged 13 commits into
devfrom
feat/tailwind-storybook
Apr 1, 2026
Merged

feat: Tailwind UI 패키지 Storybook 환경 구축#357
sumi-0011 merged 13 commits into
devfrom
feat/tailwind-storybook

Conversation

@sumi-0011
Copy link
Copy Markdown
Member

💻 작업 내용

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 상태, AnchorButton
  • Checkbox: 기본/체크/비활성화 상태, 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 관련 의존성 및 스크립트 추가

이전과 비교:

  • 이전: Tailwind UI 컴포넌트만 존재하고 시각적 테스트 환경 없음
  • 현재: Storybook에서 모든 컴포넌트를 인터랙티브하게 확인하고 문서화 가능

실행 방법:

pnpm --filter @gitanimals/ui-tailwind storybook
# 또는 루트에서
pnpm sb:tailwind

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jan 14, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 1f4d0bcf-0302-4e94-975f-c20502eac89f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/tailwind-storybook

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tailwind fontSize 설정이 fontFamily를 지원하지 않는 한계를 플러그인으로 해결하여,
text-glyph-* 클래스 사용 시 font-product 없이도 Product Sans가 자동 적용되도록 함

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
sumi and others added 5 commits March 30, 2026 21:19
# Conflicts:
#	apps/web/src/app/[locale]/game/quiz/_components/CreateOrSolve/QuizTypeCard.tsx
#	apps/web/src/app/[locale]/game/quiz/_components/CreateOrSolve/SolveQuizConfirmDialog.tsx
#	apps/web/src/app/[locale]/game/quiz/create/_components/QuizCreateForm.tsx
#	apps/web/src/app/[locale]/game/quiz/solve/_components/done/CompleteAlertDialog.tsx
#	apps/web/src/app/[locale]/game/quiz/solve/_components/fail/FailAlertDialog.tsx
#	apps/web/src/app/[locale]/game/quiz/solve/_components/success/CorrectConfirmDialog.tsx
#	apps/web/src/app/[locale]/guild/_components/GuildPeopleList.tsx
#	apps/web/src/app/[locale]/guild/_components/SelectPersonaList.tsx
#	apps/web/src/app/[locale]/laboratory/_component/ConfirmDialog.tsx
#	apps/web/src/app/[locale]/laboratory/multi-merge/PersonaItem.tsx
#	apps/web/src/app/[locale]/landing/AvailablePetSection/AvailablePetSection.tsx
#	apps/web/src/app/[locale]/landing/ChoosePetSection/ChoosePetSection.tsx
#	apps/web/src/app/[locale]/landing/Footer/Footer.style.ts
#	apps/web/src/app/[locale]/landing/MainSection/MainSection.style.ts
#	apps/web/src/app/[locale]/landing/MainSection/MainSection.tsx
#	apps/web/src/app/[locale]/landing/MainSection/MainSlider.tsx
#	apps/web/src/app/[locale]/landing/RankingSection/MobileRankingTable.tsx
#	apps/web/src/app/[locale]/landing/RankingSection/RankingSection.tsx
#	apps/web/src/app/[locale]/mypage/(github-custom)/FarmPersonaSelect.tsx
#	apps/web/src/app/[locale]/mypage/(github-custom)/FarmType.tsx
#	apps/web/src/app/[locale]/mypage/(github-custom)/LinePersonaSelect.tsx
#	apps/web/src/app/[locale]/mypage/PersonaList.tsx
#	apps/web/src/app/[locale]/mypage/my-pet/_components/SelectPersonaList.tsx
#	apps/web/src/app/[locale]/page.tsx
#	apps/web/src/app/[locale]/shop/_auction/index.tsx
#	apps/web/src/app/[locale]/shop/_petGotcha/OnePet.tsx
#	apps/web/src/components/CardGame/FanDrawingGame/FanDrawingGame.tsx
#	apps/web/src/components/Guild/MemeberSlider.tsx
ui-panda Dialog API와 맞추기 위해 ui-tailwind Dialog에 누락된 서브컴포넌트와 prop을 추가하고,
quiz 컴포넌트에서 참조하는 ConfirmDialog 컴포넌트를 생성하여 type-check 오류 해결

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
# Conflicts:
#	apps/web/src/app/[locale]/guild/_components/GuildPeopleList.tsx
#	apps/web/src/app/[locale]/guild/_components/SelectPersonaList.tsx
#	apps/web/src/app/[locale]/laboratory/multi-merge/PersonaItem.tsx
#	apps/web/src/app/[locale]/landing/MainSection/MainSlider.tsx
#	apps/web/src/app/[locale]/mypage/(github-custom)/FarmType.tsx
#	apps/web/src/app/[locale]/mypage/(github-custom)/LinePersonaSelect.tsx
#	apps/web/src/app/[locale]/mypage/my-pet/_components/SelectPersonaList.tsx
#	apps/web/src/app/[locale]/shop/_petGotcha/OnePet.tsx
#	apps/web/src/components/Guild/MemeberSlider.tsx
Stories files reference @storybook/react types which are not available
during the library type-check. Excluding them follows the standard
pattern of separating storybook config from library builds.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Base automatically changed from chore/tailwind-mi to dev April 1, 2026 01:42
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sumi-0011 sumi-0011 merged commit 2ca72da into dev Apr 1, 2026
5 checks passed
@sumi-0011 sumi-0011 deleted the feat/tailwind-storybook branch April 1, 2026 01:50
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.

1 participant