A modern project utilizing Tailwind CSS with a Prettier plugin for Tailwind to ensure well-structured and optimized styling. This project demonstrates the integration of Tailwind CSS into a development workflow with real-time changes and prettier formatting.
git clone https://github.com/CFMVCarlos/TailwindCSS-Testing.git
cd TailwindCSS-Testing
npm install
prettier.config.js
):module.exports = {
plugins: ["prettier-plugin-tailwindcss"],
};
tailwind.config.js
):/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./*.html"],
theme: {
extend: {},
},
plugins: [],
};
Run the following command to build your Tailwind CSS file:
npx tailwindcss -i ./src/input.css -o ./src/output.css --watch
Open your browser and navigate to localhost to see the project in action.