Introduction To Tailwind CSS - GeeksforGeeks PDF
Introduction To Tailwind CSS - GeeksforGeeks PDF
HTML CSS JavaScript jQuery PHP Bootstrap NodeJS ReactJS AngularJS ExpressJS Tailwind Bulma Foundation React Desktop
Tailwind CSS
Introduction to Tailwind
Tailwind CSS Spacing level CSS framework that gives you all of the building blocks you
need to build bespoke designs without any annoying opinionated
Tailwind CSS Sizing styles you have to fight to override.
The beauty of this thing called tailwind is it doesn’t impose design
Tailwind CSS specification or how your site should look like, you simply bring tiny
Typography
components together to construct a user interface that is unique.
What Tailwind simply does is take a ‘raw’ CSS file, processes this CSS
Tailwind CSS
Backgrounds file over a configuration file, and produces an output.
Why Tailwind CSS?
Tailwind CSS Borders
Faster UI building process
It is a utility-first CSS framework which means we can use utility
Tailwind CSS Effects
classes to build custom designs without writing CSS as in
traditional approach.
Tailwind Filters
Tailwind CSS Transitions No more silly names for CSS classes and Id’s.
and Animation Minimum lines of Code in CSS file.
We can customize the designs to make the components.
Tailwind CSS Makes the website responsive.
Transforms Makes the changes in the desired manner.
CSS is global in nature and if make changes in the file the
Tailwind CSS W H AT ' S N E W
property is changed in all the HTML files linked to it. But with the
Interactivity
help of Tailwind CSS we can use utility classes and make local
changes. Data Structures &
Tailwind CSS SVG
Algorithms- Self
Installation: Paced Course
View Details
Method 1: Install Tailwind via npm
@tailwind base;
@tailwind components; Practice Problems,
@tailwind utilities; POTD Streak, Weekly
Step 4:npx tailwindcss init Contests & More!
View Details
This is used to create a config file to customize the designs. It is
an optional step.
Step 5:npx tailwindcss build styles.css -o output.css Online course for data analyst
This command is used to compile style.css is the file which has to
be compiled and output.css is the file on which it has to be
compiled.If the file output.css is not created earlier then it will
automatically created.
Learn More
html
But there are some limitations when CDN is used. Some of them are:
Example:
html
<p>GeeksforGeeks</p>
</div>
<!-- focus pseudo class -->
<input class="border focus:border-red-500
focus:outline-none p-5 m-5
placeholder-red-500"
type="text"
name=""
value=""
placeholder="name" />
<!-- layout -->
<div class="md:flex md:flex-wrap m-5">
<div class="bg-blue-500
p-5 md:w-1/3
md:bg-pink-600">
GeeksforGeeks
</div>
<div class="bg-teal-500 p-5 md:w-1/3">
GeeksforGeeks
</div>
<div class="bg-yellow-500 p-5 md:w-1/3">
GeeksforGeeks
</div>
</div>
</body>
</html>
Output:
Supported Browser:
Google Chrome
Microsoft Edge
Firefox
Safari
Like 21
Next
R ECO M M E N D E D A RT I C L E S Page : 1 2 3
or Bootstrap ?
28, Oct 21
06 Tailwind CSS
Article Contributed By :
Sapna2001
@Sapna2001
Improved By : ysachin2314
Courses
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie
Got It !
@geeksforgeeks , Some rights reserved Policy & Privacy Policy