This Repository contain some Awesome Tailwind CSS component that u can able to use directly for your Web
☣ Read the below information very carefully
Tailwind-CSS is the farmwork of css that was free to use and by using TailWind we can able to create some aswesome web page
◉ There are many version able in the Tailwind site: https://tailwindcss.com/docs/installation
◉ You can access Tailwind CSS version 2.O by just pasting this embeded link under the head tag like this:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet"> <!-- Just appy this link to access the Tailwind CSS -->
<title>Nav1</title>
</head>
<body class="bg-gray-900">
</body>
</html>
◉ To access the Latest version of the Tailwind CSS just follow the Boilerplate that u can able to see in the Repository or just can use the below link:
-
First install node js in the system.
-
visit the site of tailwind css installation page ==>
npm install -D tailwindcss postcss autoprefixer
-> give this command in the cmd terminal
==> npx tailwindcss init
-> then give the command. This will open the tailwind.config.js file
==> int the tailwind.config.js file change the content[] -> ' content["*"]
', then close the file
-
add the
<script src="https://cdn.tailwindcss.com"></script>
in the head of the html -
the give the command ==>
npm install vite
-
give the command ==>
npm init
(it will create the package.json file) -
go to package.json file and add the
"scripts": {
"start": "vite"
},
- then give the command ==>
npm run start
(it will run the vite and then vite will give you some instructions just follow that so you can run it through port)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script> <!-- Applying this Script is very inportant -->
<title>Boilerplate</title>
</head>
<body>
</body>
</html>