Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- tailwind
- React Query
- revalidatepath
- 코어자바스크립트
- 자바스크립트
- react router dom
- 리액트 패턴
- Form
- 코테
- 토이프로젝트
- 프로그래머스
- 리액트
- Supabase
- 리덕스
- tanstack query
- reduxtoolkit
- 동적계획법
- styled component
- React
- JavaScript
- Next.js
- 코딩테스트
- 스택
- 그리디
- TypeScript
- 타입스크립트
- 프론트엔드
- react pattern
- 리액트 라우터 돔
- 토이 프로젝트
Archives
- Today
- Total
느려도 한걸음씩
Pokemon Card Flip - 3.프로젝트 셋업 + tailwindcss 설치 본문
npx create-react-app my-app --template typescript
CRA + Typescipt로 리액트 프로젝트 생성
git 레포지토리 생성후 프로젝트 연결
npm install -D tailwindcss
Tailwind 설치
npx tailwindcss init
tailwind init 명령어를 통해 tailwind.config.js 파일을 생성
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {},
},
plugins: [],
};
tailwind.config.js에 템플릿 파일 경로 추가
@tailwind base;
@tailwind components;
@tailwind utilities;
index.css 파일 맨윗줄 Tailwind의 레이어에 대한 @tailwind 지시문을 추가
import "./App.css";
const App = () => {
return <h1 className='text-3xl font-bold underline'>Hello world!</h1>;
};
export default App;
tailwind가 잘 적용된 모습
'토이프로젝트 > Pokemon Card Flip' 카테고리의 다른 글
Pokemon Card Flip - 6. tailwind 기본 폰트 설정 (0) | 2025.03.16 |
---|---|
Pokemon Card Flip - 5. reduxToolkit을 이용한 앱 상태 관리 (0) | 2025.03.15 |
Pokemon Card Flip - 4.reduxTookit, tanstackquery 설치 (0) | 2025.03.15 |
Pokemon Card Flip - 2.와이어 프레임 제작 (0) | 2025.03.13 |
Pokemon Card Flip - 1.개발 계획 세우기 (0) | 2025.03.13 |