Skip to content

chore: tailwindcss v3 -> v4 마이그레이션 작업#55

Merged
spde3289 merged 8 commits into
developfrom
chore/tailwindcss-v4
Mar 12, 2026
Merged

chore: tailwindcss v3 -> v4 마이그레이션 작업#55
spde3289 merged 8 commits into
developfrom
chore/tailwindcss-v4

Conversation

@spde3289

@spde3289 spde3289 commented Mar 12, 2026

Copy link
Copy Markdown
Owner

개요

작업 이유

  • 코드 하이라이팅 로직을 서버사이드로 이관하는 과정에서 본문 스타일링의 구조적 한계를 발견함.
    • 스타일링 설정의 파편화
      • 기존 블로그의 다크모드 대응 및 본문 커스텀 스타일링 코드가 tailwind.config.ts, globals.css, 개별 컴포넌트 레벨에 분산되어 있음.
    • 마크다운 패키지 도입의 필요성
      • 이를 해결하고 본문 스타일링을 규격화하기 위해 마크다운 CSS 패키지 도입을 결정함.
      • 하지만 v3 환경에서 이 작업을 진행할 경우, 여전히 tailwind.config.ts와 CSS 파일 간의 설정 파편화 문제는 근본적으로 해결되지 않음.
  • 이를 해결하기 위해 전체 스타일링 시스템을 리팩토링해야 하는 상황이 발생함.
  • 따라서 v3 환경에서 작업하기보다는 아래의 이유를 고려해 Tailwind v4 도입을 선제적으로 진행하는 것이 기술적으로 타당하다고 판단함.
    • 설정 파일 단일화: @theme 지시어를 이용한 유틸리티 및 테마 제어 통합
    • 빌드 성능 향상
    • 향후 이중 마이그레이션 방지

작업 내용

  • tailwindcss v3 -> v4 마이그레이션
  • tailwindcss 유틸 추가 (tailwind-merge, eslint-plugin-tailwindcss, clsx)
  • tailwind.config.ts 파일 제거 및 스타일 역할별(예: 폰트, 폰트 스타일 등) 파일 분리
  • husky, lint-staged를 이용한 pre-commit 적용
  • 패키지 의존성 위험도 제거 작업

@spde3289 spde3289 self-assigned this Mar 12, 2026
@spde3289 spde3289 added the chore 설정 label Mar 12, 2026
@spde3289 spde3289 merged commit 208453e into develop Mar 12, 2026
2 checks passed
@spde3289 spde3289 deleted the chore/tailwindcss-v4 branch March 12, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore 설정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant