tailwindcss

This commit is contained in:
Robert 2024-03-04 17:17:21 +07:00
parent 282c932724
commit 4003fde0b6
No known key found for this signature in database
GPG Key ID: F631C7FD957D5F22
5 changed files with 19 additions and 1 deletions

3
.prettierrc.json Normal file
View File

@ -0,0 +1,3 @@
{
"plugins": ["prettier-plugin-tailwindcss"]
}

BIN
bun.lockb

Binary file not shown.

View File

@ -10,8 +10,11 @@
"preview": "vite preview" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {
"autoprefixer": "^10.4.18",
"postcss": "^8.4.35",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0" "react-dom": "^18.2.0",
"tailwindcss": "^3.4.1"
}, },
"devDependencies": { "devDependencies": {
"@types/react": "^18.2.56", "@types/react": "^18.2.56",
@ -22,6 +25,8 @@
"eslint": "^8.56.0", "eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5", "eslint-plugin-react-refresh": "^0.4.5",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.11",
"typescript": "^5.2.2", "typescript": "^5.2.2",
"vite": "^5.1.4" "vite": "^5.1.4"
} }

6
postcss.config.js Normal file
View File

@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};

4
tailwind.config.js Normal file
View File

@ -0,0 +1,4 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx,mdx}"],
};