Streamlining web development with modern tools
Pre-prepared libraries for easier, standards-compliant web design
A utility-first CSS framework for rapidly building custom user interfaces
<div class="bg-blue-500 text-white p-4 rounded-lg shadow-md">
This is a Tailwind styled div
</div>
Install Tailwind via npm:
npm install tailwindcss
npx tailwindcss init
// tailwind.config.js
module.exports = {
content: ["./src/**/*.{html,js}"],
theme: {
extend: {},
},
plugins: [],
}
Tailwind uses small, single-purpose utility classes to build complex designs
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
Click me
</button>
<div class="text-center sm:text-left md:text-right lg:text-justify">
Responsive text alignment
</div>
Extend or override Tailwind's default theme:
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'custom-blue': '#1da1f2',
},
},
},
}
Extend Tailwind with reusable third-party plugins
// tailwind.config.js
module.exports = {
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
],
}
Create a simple card component using Tailwind CSS classes
Any questions about CSS frameworks or Tailwind CSS?
Continue your web development journey!
Next: JavaScript Basics Back to Home