Why To Choose Tailwind CSS?
Why To Choose Tailwind CSS?
Utility-First Paradigm: Instead of writing custom CSS you can use pre-
defined classes to decorate your HTML elements.
Responsive Design: Tailwind CSS utility classes can be used based on
screen size and breakpoints, so your website can be responsive.
Consistency and Maintainability: Its unified design ensures that all of
your pages can follow a consistent frontend design with easy maintainability.
Fast Pace Development: Using pre-defined classes will always boost your
development pace compared to using custom CSS.
Design Flexibility: It has the largest pre-defined classes with the
opportunity to create your design to make your design skills more flexible.
Advertisement
-
PauseSkip backward 5 secondsSkip forward 5 seconds
Mute
Fullscreen
You can check the Tailwind CSS Installation guide in this article - Tailwind
CSS Installation
<script src="https://cdn.tailwindcss.com"></script>
Using link Tag
Just include a <link> tag in the <head> section of your HTML. This gives
access to Tailwind's utility classes without extra files on your server.
Open Compiler
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<!-- Tailwind CSS CDN Link -->
<script src="https://cdn.tailwindcss.com"></script>
<title>Tailwind CSS - Tutorial</title>
</head>
<body class="bg-gray-100">
<div class="container mx-auto p-4">
<h3 class="text-3xl font-bold">
<span class="text-cyan-400">
Tailwind CSS
</span>
Tutorial by
<span class="text-green-600">Tutorials</span>point
</h3>
<p class="mt-4 text-gray-700">
This is a simple example of Tailwind CSS
on HTML elements, that is how we can use
Tailwind CSS classes.
</p>
<button class="mt-4 px-4 py-2 bg-green-600
text-white rounded
hover:bg-green-900">
Click Me
</button>
</div>
</body>
</html>
Aspect Ratio
Container
Columns
Box Sizing
Display
Floats
Clear
Object Fit
Object Position
Overflow
Visibility
Z-Index
Flex Basis
Flex Direction
Flex Wrap
Flex
Flex Grow
Flex Shrink
Order
Grid Template Columns
Grid Column Start / End
Grid Template Rows
Grid Row Start / End
Grid Auto Flow
Grid Auto Columns
Grid Auto Rows
Gap
Justify Content
Justify Items
Justify Self
Align Content
Align Items
Align Self
Place Content
Place Items
Place Self
Width
Min-Width
Max-Width
Height
Min-Height
Max-Height
Size
Font Family
Font Size
Font Style
Font Weight
Text Align
Text Color
Text Decoration
Text Transform
Text Overflow
Text Wrap
Text Indent
Word Break
Background Attachment
Background Clip
Background Color
Background Origin
Background Position
Background Repeat
Background Size
Background Image
Gradient Color Stops
Border Radius
Border Width
Border Color
Border Style
Outline Color
Outline Style
Ring Width
Ring Color
Box Shadow
Box Shadow Color
Opacity
Mix Blend Mode
Background Blend Mode
Blur
Brightness
Contrast
Drop Shadow
Grayscale
Hue Rotate
Invert
Saturate
Sepia
Border Collapse
Border Spacing
Table Layout
Caption Side
Transition Property
Transition Duration
Transition Timing Function
Transition Delay
Animation
Scale
Rotate
Translate
Skew
Transform Origin
Accent Color
Appearance
Cursor
Caret Color
Pointer Events
Resize
Scroll Behavior
Scroll Margin