📅  最后修改于: 2023-12-03 14:47:51.126000             🧑  作者: Mango
Tailwind CSS is a highly customizable CSS framework that focuses on utility classes. With Tailwind CSS, you can rapidly build modern and responsive user interfaces for your web applications.
To get started with Tailwind CSS, follow these steps:
$ npm install tailwindcss
tailwind.config.js
file in your project directory:// tailwind.config.js
module.exports = {
purge: [],
theme: {
extend: {},
},
variants: {},
plugins: [],
}
/* styles.css */
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
<div class="container mx-auto">
<h1 class="text-4xl font-bold text-center">Welcome to Tailwind CSS!</h1>
<p class="text-lg text-gray-700 mt-4">Tailwind CSS helps you create amazing user interfaces.</p>
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded mt-4">Get Started</button>
</div>
For detailed documentation and examples, visit the official Tailwind CSS website.