250x250
Notice
Recent Posts
Recent Comments
- Today
- Total
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- JavaScript
- EC2
- mongodb
- nginx
- certbot
- findByIdAndDelete
- Express
- double quote
- TailwindCSS
- Node.js
- Nodejs
- flutter
- wil
- single quote
- https
- await
- async
- moment
- atlas
- mongoose
- TypeScript
- clipBehavior
- css
- jsonwebtoken
- RDS
- MYSQL
- Find
- til
- AWS
- sequelize
Link
Archives
기억 휘발 방지소
[CSS] TailwindCSS 본문
728x90
반응형
1. 설치
npm install -D tailwindcss
2. tailwind.config.js 파일 생성
npx tailwindcss init
3. tailwind.config.js
tailwind.config.js 파일을 다음과 같이 설정해주었다.
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{html,htm,js,jsx,ts,tsx}"],
theme: {
extend: {},
},
plugins: [],
}
4. css 파일 생성
@tailwind base;
@tailwind components;
@tailwind utilities;
5. import
만약 리액트에서 사용한다면 4번에서 만든 CSS 파일을 App.js에서 import 해주면 된다.
6. class
tailwindcss의 클래스를 참고하기 위한 사이트 (공식문서)
Installation - Tailwind CSS
The simplest and fastest way to get up and running with Tailwind CSS from scratch is with the Tailwind CLI tool.
tailwindcss.com
🚩 참고
Installation - Tailwind CSS
The simplest and fastest way to get up and running with Tailwind CSS from scratch is with the Tailwind CLI tool.
tailwindcss.com
728x90
반응형
'Web > CSS' 카테고리의 다른 글
| [CSS] CSS, SCSS, SASS (0) | 2021.09.29 |
|---|