Tailwindcss+Rawcss+Media Query
Tailwindcss+Rawcss+Media Query
where the class names look like ancient incantations, but they work like magic. Here's your holy scroll — the
most used Tailwind CSS classes (battle-tested in real projects ):
Purpose Class
Width/Height
w-full, h-screen, w-1/2, max-w-md
Padding/Margin
p-4, px-6, py-2, m-2, mt-4, mb-6, space-y-4
Typography
Purpose Class
Font weight
font-light, font-normal, font-semibold, font-bold
Text alignment
text-left, text-center, text-right
Purpose Class
Background color
bg-white, bg-gray-100, bg-blue-500, bg-gradient-to-r
Purpose
Class
Activeactive:scale-95, active:bg-blue-700
Transitions
transition, duration-300, ease-in-out, transform
Cursorcursor-pointer
Purpose Class
Hidden/Visible
hidden, block, inline, flex
Click me
</button>
Alright Suhel, back to the raw CSS battlefield — where there’s no utility-first armor, and you’ve gotta fight
with your bare hands (and some curly braces).
Here’s a hit list of the most used raw CSS properties, sorted by category like a seasoned dev’s toolkit. These
are the bread, butter, and caffeine of any UI project:
Typography
Positioning
Miscellaneous Utilities
Example in Action
.button {
background-color: #1d4ed8;
color: white;
border-radius: 8px;
border: none;
cursor: pointer;
.button:hover {
background-color: #2563eb;
• Use CSS Variables for themes and media queries for responsiveness.
Let’s gooo, Suhel! You’re leveling up to the responsive CSS dojo, where your layout bends and stretches like a
ninja — across screens, devices, and beyond .
Here's your media query cheat sheet — the most used breakpoints with examples. Clean, simple, and ready
to slap into your stylesheet.
body {
background-color: lightblue;
}
3. Mobile-First Example
.container {
padding: 1rem;
font-size: 14px;
/* Tablet and up */
.container {
padding: 2rem;
font-size: 16px;
}
/* Desktop and up */
.container {
padding: 3rem;
font-size: 18px;
.flex-wrapper {
display: flex;
flex-direction: column;
.flex-wrapper {
flex-direction: row;
.hide-on-mobile {
display: none;
.hide-on-mobile {
display: block;
:root {
--main-padding: 1rem;
.container {
padding: var(--main-padding);
:root {
--main-padding: 2rem;
.grid {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
.grid {