ogTailwind is a project that utilizes Tailwind CSS for styling.
- Node.js and npm (or yarn) installed on your system
- Tailwind CSS installed as a dev dependency
- Clone the repository:
git clone git@github.com:pedrorvidal/ogtailwind.git
- Install dependencies:
npm install
(oryarn install
)
npm install -D tailwindcss
npx tailwindcss init
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{html,js}'],
theme: {
extend: {},
},
plugins: [],
};
- Start the development server:
npm start
(oryarn start
) - Open your web browser and navigate to
http://localhost:3000
- npx tailwindcss -i ./src/input.css -o ./src/output.css --watch
- Build the project:
npm run build
- Deploy the built project to your preferred hosting platform (e.g. Vercel, Netlify, GitHub Pages)
- Pedro R. Vidal