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 | 31 |
Tags
- timepicker
- 서버동기화
- 1883
- tailwind
- AntDesign
- c# datagridview 데이터 넣기
- DatePicker
- setInterval 외부 정지
- html #select #option #multiple
- datagridview 직접입력
- 맥 어드레스
- map이 undefined가 뜰 때
- pm2
- mySQL_Replication
- pm2 확인
- mosquitto
- mosquitto.conf
- setInterval 정지
- vite
- pm2 시작
- listener 1883
- setInterval clear
- pm2 설치
- DataGridView 직접 입력
- pm2 상태 확인
- allow_anonymouse
- setInterval 중지
- react
- 데이터테이블 데이터 넣기
- invalid data
Archives
- Today
- Total
개발 노트
vite 6 + react 19 에 tailwind.css 4 + antd 5.24 적용하기 본문
npm i tailwindcss
vite.config.js
import path from "path"
import { fileURLToPath } from 'url'
import tailwindcss from "@tailwindcss/vite"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
const __dirname = path.dirname(fileURLToPath(import.meta.url))
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
})
tailwind.config.js
/** @type {import('tailwindcss').Config} */
export default {
darkMode: 'class',
content: [
"./index.html",
"./src/**/*.{js,jsx,ts,tsx}",
],
theme: {
extend: {
colors: {
primary: {
50: '#f0f9ff',
100: '#e0f2fe',
200: '#bae6fd',
300: '#7dd3fc',
400: '#38bdf8',
500: '#0ea5e9',
600: '#0284c7',
700: '#0369a1',
800: '#075985',
900: '#0c4a6e',
950: '#082f49',
}
}
},
},
plugins: [],
}
index.css
@import "tailwindcss";