Podcast Lookup

Master Tailwind CSS for React Developers | Essential Concepts, Tips & Best Practices

ReactJS Developers Podcast

  • December 3, 2026
  • 1 h 15 min
  • Episode 36
Episode page
About this episodeTailwind CSS has become one of the most popular styling frameworks for modern frontend development, especially among React developers. But…
Tailwind CSS has become one of the most popular styling frameworks for modern frontend development, especially among React developers. But are you using it effectively?In this episode, we explore important Tailwind CSS concepts, techniques, and best practices that can transform the way you style React applications.You'll discover how utility-first CSS works, how to build responsive layouts, customise designs, manage styling efficiently, and avoid common mistakes that make Tailwind projects difficult to maintain.Whether you're new to Tailwind CSS or already using it in production, this tutorial will help you write cleaner styling code and build attractive, responsive user interfaces with greater confidence.What You'll Learn
  • Understanding the utility-first approach of Tailwind CSS.

  • Why React developers use Tailwind CSS.

  • Applying utility classes to React components.

  • Creating responsive layouts using breakpoints.

  • Working with Flexbox and CSS Grid utilities.

  • Customising colours, spacing, typography, and themes.

  • Handling hover, focus, and other interactive states.

  • Building reusable UI components.

  • Avoiding common Tailwind CSS mistakes.

  • Improving code readability and maintainability.

  • Best practices for using Tailwind CSS in React projects.

Who Should Watch?
  • React JS developers learning modern CSS frameworks.

  • Beginners interested in Tailwind CSS.

  • Frontend developers building responsive websites.

  • JavaScript developers transitioning to modern frontend development.

  • Developers who want to improve their UI styling workflow.

Transcript

From the publisher

This transcript comes from the podcast’s own feed, shown as the publisher wrote it.

Master Tailwind CSS for React Developers | Essential Concepts, Tips & Best Practices

00:00—
  1. Speaker 1

    In this video, I am going to teach you complete tailwind CSS and a small project as well. After this lecture, I don't think you will need to learn tailwind CSS from anywhere else. You will master the whole tailwind CSS and I guarantee it. You will learn the complete tailwind CSS from here. I have divided it into four phases, but before learning tailwind CSS, let me.

  2. Speaker 2

    Tell you.

  3. Speaker 1

    Our style lecture is already available in our react playlist. If you don't know, then you must have already known. So, please follow the playlist. In our style lecture, I have told you how to style, what is the production approach, what are the problems in normal CSS, and what we can use to solve them. If you have seen all that, then the first point is Y-tailwind.

  4. Speaker 2

    This is clear now.

  5. Speaker 1

    If you have not seen that lecture, then this is clear as it is. Although I will also explain. But again, that lecture is in continuation. See the third lecture. Not only that, I told you about normal CSS.

  6. Speaker 2

    I told you about normal CSS.

  7. Speaker 1

    After that, I told you how you can write module CSS. And nice CSS will definitely come.

  8. Speaker 2

    But again, I repeated it. So see that.

  9. Speaker 1

    After that, you will know that Y-tailwind. And then in the second phase, I have talked about four phases. In the second phase, we will talk about installation of Tailwind. How to install Tailwind? Many people get stuck here. So proper method, how to read documentation, how to install, and how to make documentation by reading.

  10. Speaker 2

    All of that.

  11. Speaker 1

    Then basic usage, same thing, how to use basic usage by reading documentation. And there is a prerequisite, obviously, you should have CSS. Normal CSS, I am not saying this, you should have very advanced CSS. normal css like.

  12. Speaker 2

    Flexbox, grid, font, color etc you should know basic things in.

  13. Speaker 1

    Css if you know medium then it is very good because I will also teach you how to write in medium alright so you should know basic css how to write by reading basic usage documentation I will teach you all this is a small project but but you don't have to understand that in this small project I have told and finished We don't have to understand this because this is a small project to understand tailwind. After this, we will use tailwind in all the lectures that will come. If you want to make any small project, if you want to understand any concept, if you want to do style, then we will use tailwind. If you want to do anything, then we will use tailwind. After this, I will use tailwind in all the lectures.

  14. Speaker 2

    In the rest of the lectures, I will say that if you have not learned tailwind, then learn it. This video is for you. Okay?

  15. Speaker 1

    So this is a small project, first of all I will tell you why, then I will give you a lecture. Although if you don't see it, you will understand it, but again you will get a lot of crystal clear understanding.

  16. Speaker 2

    If you see it, then let's start. So I will leave it here, there is nothing to be said. This is our VEET application, you are understanding, you are following.

  17. Speaker 1

    So what will people do in our application of beat? I have cleaned everything in app.css for a long time. I will make it a little smaller. Everything is neat and clean. So that your time is not wasted. Then we have app.css completely clean. We have index.css completely clean. If you don't have it, then do it.

  18. Speaker 2

    There is no problem. Install it. I will tell you how to install it. Go to beat website. You will get the command. You have to install it by pressing.

  19. Speaker 1

    I have cleaned the garbage code like after and now why tailwind ok so now it is running but nothing is written here so to show I will write here how to do bylaw how to do bylaw see this can you see I will zoom a little how to do bylaw you must have.

  20. Speaker 2

    Seen alright so tailwind Why tailwind?

  21. Speaker 1

    I have told you that if you make a class in app.css.

  22. Speaker 2

    For example, if you want to style it in app.css.

  23. Speaker 1

    So what I will do here is I will write h1 and here I will write the message in bc color.

  24. Speaker 3

    Red.

  25. Speaker 2

    So will this apply? You know reactive fundamentals. It will apply.

  26. Speaker 1

    Why? Because we have imported app.css here. So definitely it will work in this file. we have imported app.jsx so whatever work we will do in app.jsx will be applied to it so we select natural and here we have given background color red these are basic things so here it has become red very good so we will come back here so in app.jsx I had imported app.jsx so it has been applied here so it is understandable but but if I make any other component like card.jsx.

  27. Speaker 2

    Clearcard.jsx is our card and we can use.

  28. Speaker 1

    This card in app.jsx how to use this card and it will be imported automatically very good we are using the card here the card has come so how to import it automatically how to do this you should be clear about this if you are not getting the fundamentals then why do you jump directly see it is running in the sequence I have given it in the proper roadmap in the sequence so here is our card now see carefully I have imported here app.css I have imported here but if I use h1 tag in card so I have selected h1 tag in app.css see here I have selected h1 tag but you must be thinking that I have imported app.css in this file so it should work in this file but it is not like that it will work in card also see here I have written h1 here So this will also be styled. So it works globally.

  29. Speaker 4

    Now make a.

  30. Speaker 2

    Css file. Or make a card.css file. For example, I will make a card.css here. For understanding. card.css And here I will make some. enfa.

  31. Speaker 1

    And I will style it with the color blue.

  32. Speaker 2

    Now this, our card.css. Pay attention. You can see this card.css. I will put this in card.jsx.

  33. Speaker 1

    So I close it and import it in card.jsx. Now this card.css is not being used. So if I give a class name here, class name alpha.

  34. Speaker 2

    So by default the background color of alpha should have been blue. But here it is not blue.

  35. Speaker 1

    Why? Because we have not imported css. So if we have to import in card.jsx, import dots less, card spanning fixed limit and path etc. card.css.

  36. Speaker 2

    So this is blue.

  37. Speaker 3

    Wow! Wow!

  38. Speaker 1

    That means card.css is being applied in card.jss because we have imported card.css here. But, again the same thing, we have not imported card.css in app.jss.

  39. Speaker 2

    But, if I make this paragraph here, and here also if I give the class name.

  40. Speaker 1

    Alpha, see I have used alpha in card.css, I have made alpha in card.css. I have imported it in the card.

  41. Speaker 2

    I have not imported it in app.jsx. But it will work in app.jsx as well. See, its color is blue. Do you understand the meaning?

  42. Speaker 1

    It means that no matter which file you write in CSS, it will work everywhere.

  43. Speaker 2

    Everywhere, totally, completely, everywhere. It works globally.

  44. Speaker 1

    CSS is getting leaked here. You can say that. In the documentation, it is mentioned that CSS is a leak problem. CSS is leaking here. If you make a file, it leaks everywhere. You can use it anywhere. So this is the problem.

  45. Speaker 2

    So I have also told you the solution of that.

  46. Speaker 1

    You can use the module CSS, you can use the line CSS. But the best is taking CSS. It will be fun. Watch carefully.

  47. Speaker 4

    Okay.

  48. Speaker 1

    So you understood this. You must have understood this problem in an ideal way. Now you will think.

  49. Speaker 2

    That this is being applied because you are.

  50. Speaker 1

    Using a card. Suppose I have removed the card. Now there is no connection with the card. The card is different here. I have imported the card css in the card.gss. There is no connection with the card in the app.gss. There is no connection with the card. Still, something is being tied here.

  51. Speaker 2

    Do you see? Do you see the problem? To solve this problem, I have told you more methods in my previous lecture but in this lecture we.

  52. Speaker 1

    Are going to see tailwind CSS. The problem of CSS is over, tailwind CSS. And we have made many libraries where we have made many components. We have seen many things but it is good to see step by step. So what should I remove now? I will not give you a video on card component for now. Let us understand tailwind CSS for now. Now we will see how to use tailwind css for installation but first understand how tailwind css works Listen carefully I have styled app.css as h1 Alright I have shown h1 as hello how are you I have styled h1 as tag.

  53. Speaker 2

    But can we do it as tag or as class I will give class name as daily and here I have given class and here I have given sessurizer. No problem at all. Now what I am saying is very good.

  54. Speaker 1

    So here I have given class and here I have styled it. Is there any problem? There is no problem. Now what I am saying, listen very well. I am saying that first I have given class, then I have come here.

  55. Speaker 4

    And styled it.

  56. Speaker 2

    So it is working.

  57. Speaker 1

    Now if I write class first, like dot paltoon, I will give class, color, bini, color, This background.

  58. Speaker 2

    Color is blue. First, I made a class. Now, I will give a class to an element. I will give it a class.

  59. Speaker 1

    If I give it a class, then will it be blue? You will say, what is this kid doing? Obviously, if we have made a class here before. And if we are giving a class here, then it will be blue. What is the problem in this?

  60. Speaker 2

    It has become blue.

  61. Speaker 4

    Very blue.

  62. Speaker 2

    Now I am.

  63. Speaker 1

    Telling you that if this class is not made, you do not have to make it.

  64. Speaker 4

    What did I say?

  65. Speaker 1

    I said that you made the class and then you came here and used it. And the problem is that CSS is leaking everywhere. CSS is leaking everywhere. Then I said that Tailwind CSS is used to solve this problem. How does Tailwind CSS work? They were making the class here and then they were using the class here. I said that if it is not already made, So this is even better, we will not get the already made one, we just have to use it and it will work.

  66. Speaker 2

    Wow! Wow!

  67. Speaker 1

    So this is the Tailwind CSS of the app. Now what we are going to do in Tailwind, we are going to do this only. You don't have to give any link to this CSS, remove the CSS file, I have removed the app.css, let index.css remain because here the tailwind configuration is done.

  68. Speaker 2

    So you don't have to give any link to the CSS file, you have got the CSS file, it is hidden.

  69. Speaker 1

    Now what you have to do here, you will get the class made, you have to keep writing the class, How to write the class, what will be the name of the class, how will you know all that I will tell you now. All things just keep a little patience. Now our first one is completed, white. The problem was that CSS was not working and we were making it in a different file and then we were using it. And because git works for our component, react works for our component. So why not make a component with classes and make a style of it.

  70. Speaker 2

    It is better.

  71. Speaker 1

    We will make a component and work on it. So you understood why Tailwind. Now let's see installation of Tailwind. Installation of Tailwind. This is very easy installation of Tailwind. You have to come here quickly.

  72. Speaker 2

    This is a wheat site. I have installed wheat here.

  73. Speaker 1

    Now let's come to the Tailwind site. You have to search Tailwind CSS. You have to come to the first site.

  74. Speaker 2

    You will get something like this with the starting counter. So there are a lot.

  75. Speaker 5

    Of things to read here. Like you can give utility first, CSS framework, this is a framework of CSS.

  76. Speaker 2

    You should know CSS. Tailwind CSS is coming to you. CSS has come and Tailwind CSS has also come. There is not much. People are afraid that what is Tailwind CSS? There is nothing. Make a project for two to three days. Practice. After three days, your hands will move like this on their own.

  77. Speaker 4

    Okay.

  78. Speaker 1

    After that, supported by the best, you can write a responsive design with tailwind. The most important thing is that you can write a responsive design and you can also write your own ESM. If you don't have a bootstrap, you can use the glasses that are not made in bootstrap. Here you can also write your own ESM through tailwind. After that, there are a lot of things, a lot of things, you can see here, read it.

  79. Speaker 2

    Carefully, how you can make a cat. Anyway, we don't go here, there is a lot to read. For now, we will come to the documentation. I will tell you everything slowly. Now what we are using is VEED.

  80. Speaker 1

    If you are using any other framework, then come here in the framework guide. Like if you are using Next.js or if you are using anything, Solid.js, Angular, anything. So here you will click on it and you will get the documentation.

  81. Speaker 2

    On how to set up the tailwind. We are simply using VEED. So VEED is not available in the starting.

  82. Speaker 4

    See this.

  83. Speaker 2

    Click on using VEED.

  84. Speaker 1

    When you come in the starting, This is the starting page, come to docs, you will find that you have to install the beat project first. So we have done this, brother, there is no need to do this. We have installed the beat project and in the beat folder also, this CD my project, we have given the name of our project, here also we have given my project, we have given the name of the project as beat. And we are in the beat folder, so this is not the beat to run completely. You understand, you just have to copy and paste. We have already done this, beat is our second. To tailwind, we will use this command. Here we will install tailwind css. We are doing everything here, tailwind.

  85. Speaker 4

    Css, let's view.

  86. Speaker 1

    Whatever is given here, you will get the whole thing here.

  87. Speaker 2

    In it, everything will be done with this. So let's come here. First of all, open the terminal and split it.

  88. Speaker 1

    And look carefully whether you are in the read folder or not.

  89. Speaker 2

    That is, whether you are working on the project or not.

  90. Speaker 1

    Otherwise it will be uninstalled somewhere so here ntmi install tailwind css add direct tailwind css slash b so you have to enter here installation will be done till then ok so see this is installed alright now after this what you have to do first i have to clear something.

  91. Speaker 6

    Like this like this now understand it well After that, it is said here that readcontact.js We are fusing javascript, so we will not.

  92. Speaker 1

    Get ps5, but js If you are fusing javascript, then js If you are fusing types, then ts will be there So here is our js So what we have already done, we don't have to delete it Alright What you have to do here, these two lines are highlighted here These two lines, only this much is missing, so you don't have to delete this much means we have to.

  93. Speaker 5

    Import it from here basically copy it and import it, nothing else is needed import it and then look at this and try to understand what is this?

  94. Speaker 1

    It is an array we have to put one element inside the array and if we look carefully inside the array, one element is already present so we will give a comma here and put another element like this is.

  95. Speaker 2

    There any problem?

  96. Speaker 1

    Obviously there shouldn't be some error is there? I don't know what is coming let's see fail to resolve import. slash app.css src app.css ok app.css is not able to.

  97. Speaker 5

    Import because we have deleted app.css file so let's remove it.

  98. Speaker 2

    And is it running now?

  99. Speaker 1

    Yes it is running fine so let's see the next process we have done it in the middle So this portion is complete. We have done nothing much. The bit project was already installed. We said that this command is running.

  100. Speaker 2

    So all the configuration files of our tailwind came. Which file came?

  101. Speaker 5

    Bit.config.ts.

  102. Speaker 2

    This is js. This came.

  103. Speaker 1

    Now we saw that there are two line changes in it. So we encoded this. And then we put it here.

  104. Speaker 3

    Where?

  105. Speaker 6

    Here.

  106. Speaker 5

    Where?

  107. Speaker 3

    Here.

  108. Speaker 2

    This was already there. We put it here. All right.

  109. Speaker 1

    Then import tailwind css import tailwind css to your css file import tailwind css to your main css file which is the main css file? definitely main css file is index.css that's why i didn't delete it index.css is your global css file so import tailwind css to your css file no problem? no here you have to come.

  110. Speaker 2

    To indexbox.js and import it. In the starting you will feel that there are a lot of steps, but there is nothing like that, it is very simple. After this, you will run npm run and your work is done. Really what? Let's check it. So how will we check?

  111. Speaker 1

    For now, you can see that everything is simple. Now here we will see some styles and see what is working for us. For now, from here, in the last name, I will also give.

  112. Speaker 2

    The class name that I don't remember. You will never remember. So, let's see the BG red file. What is being applied here?

  113. Speaker 1

    Wow! BG means background, red means red palette. So, our background red is applied here. As I said, you have made all the classes.

  114. Speaker 2

    You just have to use them. You have made all the classes.

  115. Speaker 1

    Style is already done. You just have to use them. If I want to do BG red, I will do red. If I want to do BG blue, I will do BG blue. And I am getting suggestions because I have installed extension. You are not getting any suggestions. So, BG blue and I will give you the background once again. This is normal CSS rule.

  116. Speaker 2

    So, look at this. BG blue, 200 is also here.

  117. Speaker 5

    So, the suggestion I am getting is very important.

  118. Speaker 2

    If you want to be a beginner in starting, you need suggestions. Suggestions or.

  119. Speaker 1

    I will tell you how to create documentation, but it is better to install the extension here.

  120. Speaker 2

    Here you search for Tailwind CSS IntelliSense.

  121. Speaker 3

    You install this and it will give you a suggestion.

  122. Speaker 2

    Whatever you write in.

  123. Speaker 1

    The class name, it will suggest that this is the class name.

  124. Speaker 2

    In Tailwind, I will suggest that this is the class name you have. You can use it already.

  125. Speaker 1

    So, the work becomes easier. Tailwind CSS is making your work easy. Tailwind CSS will make this extension more easy. By telling which classes are already made. Okay. So, this extension will be installed. I already have it installed.

  126. Speaker 2

    I got the suggestion. Now, How to do this work? This is your white element. Installation of element. Let's quickly tick. So this is tick. After that, this is also tick. After that, basic usage.

  127. Speaker 1

    Alright. So in basic usage, I will tell you how to use it. Like, suppose I have to make a button here.

  128. Speaker 2

    I have to make a button. Click me.

  129. Speaker 1

    You will get to know how to use basic in one button making so here I have made a button click me now here I have to style it see how it is looking now it is looking bad so what I have to do to make a button first of all I have to give some background color so how to give background color you don't know I have just told you but you don't know assume you don't know so what you have to do is come to the tailwind site and here you have a search option.

  130. Speaker 2

    Here you have to.

  131. Speaker 1

    Enter background-color enter the background color and it will tell you how to add background you have to give these classes and this style you will get this style if you use this class you will get this style if you use this class if you want to give white background color then write bg white here then your color will be white if you want to give black then write bg.

  132. Speaker 2

    Black So here I will not get the last name.

  133. Speaker 1

    And this much you got to know that the documentation is read that BG something has to be given.

  134. Speaker 2

    Now because you have installed extensions here, then you will get the suggestion here. So I write BG here. And if you are not getting the suggestion, then you have to enter control space. What did I say? I wrote BG here. Control space.

  135. Speaker 1

    Control space. If you are not getting the suggestion. So see all the suggestions are coming.

  136. Speaker 2

    This, this, this, this. You have colors. You can use it here too. So here it is dashed.

  137. Speaker 1

    If you write more colors, you will get more suggestions. If I want light green, then I will.

  138. Speaker 2

    Write BG light green. Is there light green here? No, there is no light green. So here blue.

  139. Speaker 1

    Color comes in green color.

  140. Speaker 2

    So give me a color like this. So BG green 300. BG green 300 is such a color. If you want to give your own color that you used to give in CSS, then you can also do that here.

  141. Speaker 3

    How?

  142. Speaker 5

    For example, you have to give light sea green, which is not available here in the class.

  143. Speaker 2

    So how will you do it?

  144. Speaker 1

    So here you have to put square brackets like this, close.

  145. Speaker 2

    The square bracket, close the square bracket, and in between you can write anything you want. Like I want light sea, it should be defined in CSS.

  146. Speaker 1

    Light sea green, so here you can see light sea green color. It was not defined in the element, it was not defined in the element. But since it was in CSS, background-color-light-green is in CSS, so I can see it here.

  147. Speaker 3

    Did you understand this?

  148. Speaker 2

    Very well.

  149. Speaker 1

    Okay, so I gave this background. Now I want to give a little border-radius. Now you don't know how to give border-radius. You search here. What should I search? Border-radius search. The same as you write in CSS. How to write in CSS?

  150. Speaker 2

    Border-radius. So just search as it is. Interpret. If you want a small border radius, then you have to write rounded. If you want a small border radius, then you have to write rounded. If you want a small border radius, then you have to write rounded. If you want a small border radius, then you have to write rounded.

  151. Speaker 1

    If you want a small border radius, then you have to write rounded. If you want a small border radius, then you have to write rounded. If you want a small border radius, then you have to write rounded. If you want a small border radius, then you have to write rounded. If you want a small border radius, then you have to write rounded. If you want a small border radius, then you have to write rounded. If you want a small border radius, then you have to write rounded. If you want a small border radius, then you have to write rounded. If you want a small border radius, then you have to write rounded. If you want a small border radius, then you have to write rounded. If you want a small border radius, then you have to write rounded small means 4px 0.25 medium means 6px 0.375 if you want you can read it but in styling we don't read it we use heat and trial method if it is big then we use small if it is big then we use extra small if it is small then we use large if it is bigger then we use xl if it is bigger then we use 2xl it is very simple If you want to read properly how many pixels or how many REMs are there, you can read it here. The proper way to create documentation.

  152. Speaker 2

    I want it in medium size. I want a border radius.

  153. Speaker 4

    Of 6 pixels.

  154. Speaker 2

    I will give rounded MD. Give a lot of space here. I close it here.

  155. Speaker 1

    It is very required to give space. If you don't give space, If you make it rounder like this, the first CSS will also be removed and the second one will also be removed.

  156. Speaker 2

    Nothing will come here.

  157. Speaker 1

    So this is very important, pay attention to this page here.

  158. Speaker 2

    You have to give one space to each class. Normal CSS is done like this. So see this border radius has come here. I think I need a little bigger, I will give large. I think I need more large, I will give it here.

  159. Speaker 1

    I think I have to give some custom. Like I don't want 7 pixels, I want 7 pixels. So how will I give 7 pixels? The same way, square bracket open close and 7 pixels in between. Will it be 7 pixels?

  160. Speaker 2

    Definitely. This is the special thing about tailwind.

  161. Speaker 1

    There are many special things about tailwind that you will get to know gradually. As you project further, you will get to know everything.

  162. Speaker 2

    So see, I have given 7 pixels.

  163. Speaker 1

    So if you want to write something yourself, then you can write it in an inline way.

  164. Speaker 2

    So it is very interesting. Then I need padding. How to give padding? Let's search here. Here I have to search padding. So here is the padding.

  165. Speaker 1

    Now you have to give the number of p. So you get padding on all sides. Padding and here in pixel in pixels, what is this? ppx means padding 1px if you give ppx means padding 1px ok and you can give some number if you give any number here then it is equal to 4px somewhere it is written here I have read like padding top is 6 padding.

  166. Speaker 5

    Right is 4 padding bottom is 1 it is very simple you can see easily how much is in 1 you can also search here.

  167. Speaker 2

    I think padding should be there like if I want padding then first of all let's write.

  168. Speaker 1

    Padding padding padding padding dash and write some number so here I suggest padding dash like here it is 1 1.52 like if I take padding 2.

  169. Speaker 2

    Then let's see how much padding is.

  170. Speaker 1

    There see padding is there padding is coming from all sides normally in CSS also it happens that if you give padding just one number then padding comes from all sides If you want to give padding-top, you can search here padding-top.

  171. Speaker 2

    What is padding-top for?

  172. Speaker 3

    Padding-top For padding-top, you can use p.

  173. Speaker 2

    For padding-right Now you can see that p is for.

  174. Speaker 1

    Padding-bottom and p is for padding-left So I want to give padding-top, a little more.

  175. Speaker 2

    I want to give padding of 10 from top I.

  176. Speaker 1

    Want to give padding of 3 from bottom I want to give padding of 8 from left And I want to give padding of 16 from right This is how it is done Top is of 10, bottom is of 2, left is of something, right is of 16 This is how your padding is done So if you want padding of x to be equal and y to be different If you want to do this, how will you do it?

  177. Speaker 2

    So here you can also see how to do padding.

  178. Speaker 1

    Of x and y Padding in x to enter padding in x search padding then it will give straight while searching it will not give enter so i am not entering padding here so it will enter here only so i am not entering padding now it is padding now i will enter padding if i will enter px then padding will.

  179. Speaker 2

    Be 1px i mean it will be something like this.

  180. Speaker 1

    Padding in line padding x to px padding y to py you can see this and understand it by doing a little bit of written trial padding x to px like padding right to pr padding x to px it will give padding from left to right from left to right so let's say 10 here so it will give only x nothing in y I have to give something from the top, like padding from the top I will give padding 3 from the top, sorry not from the top, from the padding y I gave padding 3 from the top and from the bottom and one number is equal to 4 pixels.

  181. Speaker 2

    Twelve something like this will come.

  182. Speaker 3

    You will not get to know something like this you can read the documentation and you will get.

  183. Speaker 1

    To know what is going on here read the documentation 1.

  184. Speaker 2

    Is equal to 4. If you look at the border, 1 means 1 pixel. 2 means 2 pixel. But sometimes 2 means 1 pixel. You will get to know by looking at it. What happens when you look at it.

  185. Speaker 4

    Okay.

  186. Speaker 2

    You will get to.

  187. Speaker 1

    Know if you read the rest of the documentation.

  188. Speaker 3

    Okay.

  189. Speaker 2

    I don't know yet. I will tell you when I look at.

  190. Speaker 3

    It.

  191. Speaker 2

    So for now, here padding. Keep in mind that 1 means 1 means here. 4px. Similarly, if you see 2 here, then 1 is 4px. You can count it like this. 2 means 2 x 4 is 8px. This is how you can do it. So, padding is here. If you want to give border.

  192. Speaker 1

    In the same way, then you can also give border. And this is how we can style. Then you have to use the same strategy for flex. You have to use the same strategy for grading. You have to see the documentation. You have to follow it.

  193. Speaker 2

    So, work like this.

  194. Speaker 1

    Now I have told you how to read the documentation. Now I will not make the project by reading the documentation. Because I have memorized maximum things here. You will also be able to do it while practicing.

  195. Speaker 2

    You don't have to struggle. All the things have sat in my mind while practicing. Now I don't have to see it again and again.

  196. Speaker 1

    What you have to do is, as I will tell you, you have to see side by side whether it is right or not.

  197. Speaker 2

    I will do it directly and tell you that this is what.

  198. Speaker 1

    Happens in CSS, this is what happens in Tailment, this is what happens in CSS, this is what happens in Tailment, and will create a small project, you will get the idea of the whole Tailment. And if you want to know a little about the unit, what happens in it, then you.

  199. Speaker 2

    Can read the documentation properly. You can search for it on Google, there is no problem. Okay, that's it.

  200. Speaker 1

    So far, we have done the installation of Tailment and the basic usage. We have learned by making a button. Basic usage. Now we will make a small project where we will get some idea of flex, some idea of grid and normal font sizing, background color etc. Overall you can say that you will understand tailwind and you will also understand media.

  201. Speaker 2

    Overall you will.

  202. Speaker 1

    Understand tailwind and after that all the lectures will come. Everyone will be doing tailwind. you will be master of project, you will be making project, you will be.

  203. Speaker 2

    Making documentation, it will be fun.

  204. Speaker 1

    So for now, let's think a little bit and meet in the project. For me also, it will be good for you. Ok, now let's make a small project. I have selected a simple UI.

  205. Speaker 4

    Design for you.

  206. Speaker 5

    We will make a header with this. I will make a small hero section and a footer. I have selected a little different and good one. So that you can get Tailwind CSS better. You are able to make good designs. So I believe you can make this footer from Tailwind CSS. So your grid layout will be practiced. And if you make this header and this section, then flex will be practiced. Rest color etc. and padding will be covered in this. Rest if you make it a little responsive, then media query will also be practiced. So let's start making it quickly. Here comes our application is running here. And first of all, we will not break our components, we will break the components and see, but for now let's start making it. So first of all, we will make a new bar. Okay, not like this, new or you can use the header like this and what we have to do here, first of all, Let's see how one of our brand logo will come here. We are not putting an icon here. One logo will come here. Four menus will come here and a button on the side. So let's quickly style this. So it will be fun. First of all, here is one H1. This is our logo. Let's write brand here. And in brand, let's style B a little bit. Let's style B a little bit. Let's put it in this pen tag. so that we can style B separately. I am not adding an icon, so I am keeping it simple. We will style B separately here and our brand will be here. And then after that we need some menus. Alright, let's make a div here in the anchor tag. First of all, what is ours here?

  207. Speaker 4

    Let's see.

  208. Speaker 5

    Futures, use cases. Although if you are making UI, you can write anything for now. But let's write this only.

  209. Speaker 4

    Futures, use cases, integrations. features use cases and then.

  210. Speaker 5

    Integrations and you can see html etc integrations and in the end you can write any portfolio I have copied and pasted everything here. Although here it was about us. I wrote the portfolio. You have to make an exact, make an exact. We have nothing to do with that now. Now our purpose is to learn Tailwind CSS. Then there is a button of join us or you can say sign in. So here we will quickly make a button. And let's write join us here.

  211. Speaker 4

    Join us.

  212. Speaker 5

    This will also look good. So this is our button and now let's see how it looks here. It looks like this. We need everything in one line. So what will we do? Obviously we will use the flex box. So we will use the flex box. So definitely we wrap it inside a div here.

  213. Speaker 4

    Why did I do that?

  214. Speaker 5

    I will tell you now. I wrapped it inside div because I will give this style to the header. First of all, I will give flex. It will come in one line. Now you must be thinking that everything is stuck. As soon as I justify, you have read the normal flex box. Let's do display flex and then justify content center, justify content space between. I am doing justify space between here. Not space between, but between. If you are getting suggestions, then I am taking it. If you are not getting it, then do documentation. So, I have given display flags. And I have given justify content space between. So that all of them take equal space in between. Now see, you must be seeing something like this. All of them took equal space in between. Here it was one element. Look carefully. See, this H1 is one element of ours. There are three child in this header. One is h1, one is div and one is button. So, we have used space between these three. So, evenly spaces have come in between. Now, what we have to do? Now, we have to do that in between this, this is our menu, features, use cases, integrations, portfolio. I need equal spaces between them. So what I will do is flex the display of this lib. I will give it a flex class and it will be flexed. And then I will give a gap of 7 here. So there is a gap in between. Now see it is looking pretty. And let's do it like this. And let's increase its size a little. So to increase the size, our font size used to be in CSS.

  215. Speaker 4

    Here we have text. .

  216. Speaker 5

    Give some color to the class name. First of all, let's increase its font weight a little. To increase the font weight, we use the font bold, extra bold, extra light, light.

  217. Speaker 4

    I need extra bold, so I will take extra bold here. So our brand B is bold.

  218. Speaker 5

    First of all, everyone's color is black here, so black is not looking much better here. I will give BG black here. I gave BG black, not BG, text black. I want the color of the text, so I will give text black here. In normal CSS, background color and normal color used to be the same. Normal color used to change the color of the text and background color used to change the color of the background. For background color, we use BG and for normal color, we use text and dash.

  219. Speaker 4

    So it is very simple, nothing special.

  220. Speaker 5

    I have given the text black, so now black is coming here, it was already black, we have done it separately. So we want to make it a little transparent so that the opacity of black is a little less and it is a little visible in silver color. So black here we use the divide symbol and from here we can give opacity. Like I will give it a little 30 so it will be very transparent. If I give 100, then it is fully black in this way. And if I want to reduce it a little, then I give 80.

  221. Speaker 2

    Okay.

  222. Speaker 5

    It will be a little transparent. So you can understand how it is happening. 100 means 100% is its opacity. Opacity 1 is in normal CSS. Opacity 1 means it will be seen completely. So here 100 means it is seen completely. If we keep reducing, then it will be reduced. Like 0.1, 0.2, 0.3 used to happen there. Here you can write 10, 20, 30, 40 in this way.

  223. Speaker 3

    Okay.

  224. Speaker 5

    So here I have given 80, that means you can consider it around 0.8. If you look at the calculation, you can understand from the hit and trial method whether it is getting transparent or not. So it is looking so good. And here I will give the color of B a little differently.

  225. Speaker 4

    What will I give?

  226. Speaker 5

    I will give the color of B as BG. I will give tomato. So not BG, text tomato. So it has.

  227. Speaker 4

    Become something like this.

  228. Speaker 5

    And I want to fix the width of the header. This is our header, I will fix its width here. I want the maximum width not to be more than 60 rem. Now how will I give 60 rem? If I have to give 60 rem, then I can't give it. I can give it. This is tailwind. Here open and close the square bracket in this way. And here 60 rem. The normal CSS had maximum width. That is 60rem. So maximum width 60rem means it will go till 60rem. It will not go more than that. It can be less than that. It can't be more than that. Normal CSS is coming. Maximum width 60rem means it will be max to max 60rem. It can be less than that. It will never go more than that. Max to max 60. Not more than that.

  229. Speaker 6

    Alright.

  230. Speaker 5

    So if I show you by giving you the background color, then you will know better. Let's see BG red 300. So this is something like this. Now I have to do it in the middle. So, I will give auto from margin x, then it will come in the middle. Give auto from margin x or give full margin auto.

  231. Speaker 4

    Then also it will come in the middle. I give margin auto. See, it has come in the middle.

  232. Speaker 5

    Now, if I want to give this color bg red, then don't give it here because it will come only in this much from here to here. I want it in full, so you give it in this div. Last name bg red 300 something like this. So, see it came in this.

  233. Speaker 4

    So it's looking good. Let's give a little padding. Let's give the.

  234. Speaker 5

    Padding from Y to 5. So it's looking like this. It's looking beautiful. And it's looking good.

  235. Speaker 1

    Okay.

  236. Speaker 4

    This join is our button.

  237. Speaker 5

    So let's treat it like a button. Let's style it like a button. So in this class name. For the button, first of all, we will give BG. Let's give tomato. We have selected the tomato theme. So let's give tomato. And for border radius, tell me quickly what we use for border radius. Tell me quickly. For border radius, we use rounded, large, xl, double xl. Okay, you can see that. This is done. Then I need a little padding from x. So I give padding x as 3. 3 means 3 4 is 12, 12 pixels. 1 has 4 pixels, so 3 has 12 pixels. So this is our 12 pixels. Alright, and we give padding y. Padding from Y to 2. So this is looking good. The join button is looking good. We can increase the padding a little more. We can give 4. Wait a minute. Padding X to 4. So this I believe is looking good. And this is looking a little crispy. This is looking up, not in the middle. So now this is our one. What can we call it?

  238. Speaker 4

    Space.

  239. Speaker 5

    Vertical space. We need this whole space in the middle. This vertical space, we need it in the middle. So what we can do is, the flex that we made here, this header is our flex. If we give its justify between, then it moves horizontally from justify.

  240. Speaker 4

    And if we want to.

  241. Speaker 5

    Move vertically, then we do align items. So for align items, we write in tailwind only items. Items center. This is in the center. If you don't like it in the center, you can add a flex here. This is in the center. If you don't like it, you can add item center. It is looking good.

  242. Speaker 4

    The brand should be bigger. Let's make it bigger. Let's add text to excel. How does it look? So this is a little bigger. Let's make it 3XL. This is a little bigger.

  243. Speaker 5

    Okay. Whom am I increasing? Okay, I increased the span. Not the span. I had to increase the whole H1.

  244. Speaker 4

    Class name.

  245. Speaker 5

    Text 3XL. So this looks like this. And it looks like a good thaksa. It looks like a good thaksa.

  246. Speaker 3

    Right?

  247. Speaker 5

    We are not focusing too much on styling. Tailwind CSS is to be learned. So I told you that. Now what color combination you have to choose.

  248. Speaker 4

    How to take it.

  249. Speaker 5

    You can see that according to you. So here we make this portion the best way to review creative assets. And here are some paragraphs and again there is a button. So let's make it quickly, we will break it in the component later. Or if you want, let's break it in the component. Let's make a component folder here. I have told you all this, so practice will also be done. I made a folder called components. I will make a header component in this. Give the name in capital. header.jsx rafce and this whole header. I will cut this whole header from here. And I will paste it here. This whole header is ready. And we will import this header here.

  250. Speaker 2

    Header.

  251. Speaker 4

    Very good.

  252. Speaker 5

    This is also imported. Look carefully, it is being imported from.

  253. Speaker 4

    The right place.

  254. Speaker 5

    Component slash header. Just keep this in mind. So this is our header. And now it is showing here. Very good.

  255. Speaker 4

    Now what to do? Now this one is to make a hero section.

  256. Speaker 5

    So let's make this too. Let's make it here first. Then we will break in the component.

  257. Speaker 2

    Alright.

  258. Speaker 4

    So div.

  259. Speaker 5

    This is our hero section. And what will we do here? Here first of all there will be an h1. In h1 the best.

  260. Speaker 4

    Way to review creative assets. Let's write this.

  261. Speaker 5

    The best way to To review creative assets.

  262. Speaker 1

    Alright.

  263. Speaker 2

    Alright.

  264. Speaker 5

    There is no full stop here. We will not give. And here class name, text. What can be the biggest? 8xl.

  265. Speaker 4

    So let's see how 8xl looks like. It looks like this.

  266. Speaker 5

    And in this font let's make it a little smaller.

  267. Speaker 2

    7xl.

  268. Speaker 4

    It looks good. And this is in the middle. It is in the middle. And from here, I believe there is a little line break. After 2.

  269. Speaker 5

    We don't give line break. We style it normally. What will we do in div? We give class name in div.

  270. Speaker 4

    Maximum width again. 60rem.

  271. Speaker 2

    60rem.

  272. Speaker 5

    And if we do margin auto, it will come in the middle.

  273. Speaker 4

    It has come in the middle.

  274. Speaker 5

    And text alignment, if we have to center it, text alignment center. So here normally we write text center and it becomes text alignment center. So the work related to font you can do by writing text. Like if we have to align related to text then we used to write text align in CSS. Here we just have to write text center. It will make text align center. And you are understanding this margin like we used to do in padding. Let's take a little padding. Let's take padding y of 10. So, it's looking a little less. So, let's take it straight in REM. How much REM should I take?

  275. Speaker 4

    8 REM.

  276. Speaker 5

    It will be better. 8 REM is looking good. And, it's looking good. It's looking good. It's looking a little good. And, let's see how this heading font looks after bold. Bold is looking like this. Anything else other than bold? Bold, extra bold, extra light, light, medium, mono, normal, sense, You can also use font-family. How will it look like? It looks like this. Is font-verdana or font-verdana?

  277. Speaker 1

    No, it is.

  278. Speaker 4

    So what can we do? Let's take font-serif and see how it looks.

  279. Speaker 5

    This one looks a little better. If you want to take font-bold in this, then yes, this looks.

  280. Speaker 1

    Fine.

  281. Speaker 4

    I will remove font-bold from here.

  282. Speaker 5

    You will also get to know about the font weight, what are the changes, etc. The color of the review is a little different. In the review, we will use the span tag. We will put the review in the span tag and give the class name here. use span tag in the review. here put the review in the span tag and here again give the class name. bg give the color of the header, it will look good. bg red 300 was in the header. so it is looking good. and we will do one thing, we will give its maximum width 55rem. so it will look something like this, it is looking perfect now. And we have to make it a little bit rounded. So to make it rounded, here border radius basically. Let's give it large, it will be enough. Large is looking good. There is a little more rotation here. So let's do the excel here. Now it is looking good and we will give a little bit of padding x of 3. So it will look a little better. Yes, it is looking good. Actually, if you give 2x instead of x, it will look good. Now you can make it bigger according to you. Now it is looking more perfect. There is a paragraph below it. Just below it. This is our paragraph. Let's give it loram 20. So this is our paragraph. It is small and cute. And we will increase its size a little bit. Let's make the text medium. The text should not be sad. Wait a minute. Text 2xl, 3xl, medium, text large. Text large. So large is looking good. And there is a little space below it actually. There is space above and below it. Let's take a button too. Here we have a button.

  283. Speaker 4

    Oh man! What is happening?

  284. Speaker 5

    Ok, so here we have a button and if you look carefully, then we can use this button again here. Ok, we can use this button again. So let's make the button a separate component.

  285. Speaker 2

    What?

  286. Speaker 5

    It will be better. Let's make a separate component of the button. button.jsx rafc and here in the header, let's make a separate component of this button. And here we will receive children, all this is coming to you, if this is not coming, then leave it, you know how to receive props. Props props dot title will come here, I will tell you how our button came here and if we write only button inside the button, then this join us button will come, here we have written the button in the app dot JSX, we import the button in this way, button all right. So here in both the places the same button is coming, join us, join us. If I want to change the title inside it, then how will I do it?

  287. Speaker 4

    Through props.

  288. Speaker 5

    I can send props here. I have sent the title here. You have to send in the key value pair. So I sent the title, hello. And here I can receive in the button. See, I am receiving props. So props will come in the format of an object. In the key value pair, title hello. So I can do that here. And I have told you many times. So all this you for this it is very easy props.title so here props.title is coming now it is coming in this but not in this why? because here in header we have not sent props alright so if props are not sent then we can do conditional rendering here but we will send it now we have not read conditional rendering here so title is equal to.

  289. Speaker 4

    Here join us so here join us came and here this came Very good. And if we want.

  290. Speaker 5

    We can also pass a little style here. We can pass props dot class name etc. But it's fine. It will work like this too. There is no problem like this.

  291. Speaker 4

    If we are here. I hope you are not confused.

  292. Speaker 5

    If you have not read the react, then you must be confused. Otherwise, it is very simple.

  293. Speaker 4

    This is our header.

  294. Speaker 5

    We have made the button separately and we have made the button and used it here as well. In the header component and in the app component, we have used the button. We have not done anything separately. This is our heading. From here to here. This is our paragraph. This is our button. So now it looks like this. And this in the middle, we will give space above and below it. Basically padding or give margin. From margin Y, we give 4 from left. So a little space will come from above and below. If you want a little more space, then give 7. A little more space will come. This looks beautiful. I want to increase the size of the button font a little. So from here I can pass the class name as a props. As a props, I can pass it. But if someone doesn't understand, then I can make a parent container here and increase the size here. Class name, I give the size of the.

  295. Speaker 3

    Text.

  296. Speaker 4

    Some 3xl, so will the size change here? See, it happened. How did it happen?

  297. Speaker 5

    So here I have given 3xl and I have not given any text size inside the button.

  298. Speaker 4

    This also happens in normal CSS.

  299. Speaker 5

    If we had given the size of the parent, then the same would have been applied in the child. And if we change it to child, then the child one will be applied. This is normal, you have read it in CSS. Ok, so we gave it to the parent, then it will be applied to the child too. And the second way was that here we could pass the style as a props. So something like this is coming. So see which button was here. Here the button was our join watchlist. Ok, the title was the same in both, but again we change it. I told you to change it.

  300. Speaker 4

    So here join.

  301. Speaker 5

    Let's take subscription, join subscription. OK, so this is something like this. It looks beautiful. We have actually made a very beautiful design. The best way to review creative assets. And here we have this brand etc. Great, great, great. OK, now let's make a footer and see. So should we put it in a separate component? Come, let's put it in a separate component. So here we give it a name.

  302. Speaker 2

    Hero.

  303. Speaker 4

    What name will you give?

  304. Speaker 5

    Hero.jsx r-a-f-c and here we have our hero.

  305. Speaker 4

    Hero. Okay. We have made this hero component. Look carefully. In hero, this is full. And here we will import hero.

  306. Speaker 5

    So our header has become our hero. What is the problem?

  307. Speaker 4

    Component slash hero.

  308. Speaker 2

    Okay.

  309. Speaker 4

    What is the problem?

  310. Speaker 5

    Button is not defined at hero button is not defined So we have to import it here. And see the path. Here dot slash component slash button will not be there. Because where the hero is, the button is also there. So directly dot slash button will be there.

  311. Speaker 1

    Ok.

  312. Speaker 2

    Button. Alright.

  313. Speaker 5

    So now it is fine. It is looking beautiful. It is looking good.

  314. Speaker 2

    Now we make footer.

  315. Speaker 4

    Now what to make?

  316. Speaker 2

    Footer.

  317. Speaker 5

    So footer is something something header like ours. So let's copy the header from here.

  318. Speaker 4

    Copy.

  319. Speaker 5

    We have copied the header and here we have made the footer component footer.jsx. Components are coming. If the components are not coming, then there will be a problem. I have told this in many lectures. So this is our footer and here we import the footer quickly and use the footer too. So this is our footer. Where is the footer from? Component slash footer.

  320. Speaker 4

    It is fine. We are using button in footer also.

  321. Speaker 3

    Ok.

  322. Speaker 4

    So, do we have to use button in footer or not? We don't have to use button in footer. So, fine.

  323. Speaker 5

    This is our footer. But we don't need such footer. We need such footer. In which there are 5 layers. For this we can definitely make a grid. We were using flags here, now we will use grid. We need 5 grids here. This is the second grid. We need flex-direction-column. We were taking it in row first. Now we need it vertically. We will do flex-column. Flex-column means flex-direction-column. It was flex-direction-row-column. I am doing flex-direction-column. It will look like this. I need 4 of them. I am going to change the name of the company.

  324. Speaker 4

    It one.

  325. Speaker 5

    The rest will be done. So here is the company. We will give a little font bold to the company. Class name font bold.

  326. Speaker 2

    Isn't it?

  327. Speaker 5

    Something like this happened. And remove the gap.

  328. Speaker 4

    Gap is not needed in this.

  329. Speaker 1

    Okay.

  330. Speaker 5

    It is too much stuck. So in H1, we will close it a little bit. In H1, we will give a little margin bottom of 3. So it will come down a little bit. It is in the same way here. There is a little space in the middle.

  331. Speaker 4

    In this way.

  332. Speaker 5

    And if you give a little space in all of these, it will be better. If you give a little gap of 1. So it looks good now.

  333. Speaker 4

    There is a.

  334. Speaker 5

    Little space here and there is a lot of space in the middle of it.

  335. Speaker 2

    So good.

  336. Speaker 4

    Should I give a little more space? No, it looks so good. It looks so much.

  337. Speaker 5

    So, we will replicate this. We will replicate this. We will replicate this.

  338. Speaker 4

    Okay.

  339. Speaker 5

    This is one. In the same way, here. Although, you can also make a component of this. And here, by passing JSON, then you can map it.

  340. Speaker 3

    Okay.

  341. Speaker 5

    It was cut in the middle because of the phone. I use external software in the phone. I forgot to turn on the aeroplane mode when the call comes. For now, I don't know, it was cut from here, it was just a call. So I have done so much here, see this, I will remove it now. So I have given a heading here. I made the footer as the header was. I gave a heading in the middle here, I gave it a little flex and a gap one, so now it looks like this. This is something like this. And this is coming here. And this brand one is here. Where did it go? Brand one. Brand one is here. And then here is one. And we have made five grid. Grid columns five. So one element is done. One element is done.

  342. Speaker 4

    In the same way. Let's take one, two, three more.

  343. Speaker 2

    So five is done.

  344. Speaker 4

    One is done. This is done. Second one. This is the third one, this is the fourth one, and I believe there.

  345. Speaker 5

    Will be one more. So this is our fifth one. No, five had already been done, one extra came. So this is one, two, three, four, yes, five, five, okay, it's done. So this is our made some header in this way. And there is a line below, so you can take a line and put all these things here. Should I put it and show it? Now I put it quickly, see this. So this is our grid, this is the header. I will close this. This is our grid. We need a line below this. So I will make a div and you must be knowing how to make a line in CSS.

  346. Speaker 4

    Don't do much.

  347. Speaker 5

    Here take the class name width full and height 1 pixel.

  348. Speaker 3

    Ok.

  349. Speaker 5

    So there must be a line here, I believe. Let's take the height of 10 pixels. And we have to give bg color too. bg color. Not bg color.

  350. Speaker 4

    Black, black, white.

  351. Speaker 5

    What should I give? Here it has given this color. We can give tomato here. BG tomato.

  352. Speaker 3

    Alright.

  353. Speaker 4

    Something like this is coming. Very good. And let's reduce its height a little. One pixel.

  354. Speaker 5

    So this is looking something like this. It is looking very beautiful. And here we will give a little padding bottom of five. So this will also come a little padding from here. And not even five. Let's give eight. So this is a little bit of padding. Now what we have to do below this, we will make another div below it. Where a paragraph will come. And some people will come here. Okay, some people will come here. Now for the time being, instead of people, I write some letters. T and X. So this will come in our way. And the same here, this two thousand twenty five, this, this, that, that. What I do here simply, I write lorem. You can write whatever you want to write. Let's see something like this is coming here. And actually, we have to give the maximum weight of 60rem in this too. Class name, maximum weight 60rem.

  355. Speaker 4

    Do you remember?

  356. Speaker 5

    We gave it in the header. So we gave it here too. So it will be a little consistent. And if we give margin auto, it will come in the middle. It has come in the middle. And we will give flags in it. So it will come in this way. And we will give justify between. So space will come in the middle. See this icon came here. And if you want to give space in the middle in the icon. So class name flags. And give gap here also of five. Here space came in the middle. And if you want to give class name in it. Like font bold. If you want to make it like icon then you can make it. Font bold and here also font bold.

  357. Speaker 6

    Alright.

  358. Speaker 4

    Something like this has come. And here it is.

  359. Speaker 5

    And if you want, you can give padding from the top of 3. So, this padding will come from a little above. So, something like that. It is looking good. It was like this here.

  360. Speaker 4

    Okay.

  361. Speaker 5

    Which we have made. We have to do a little more style. We have to reduce font size. We have to increase. It completely depends on you.

  362. Speaker 4

    Like, if I am here in someone. This is our header.

  363. Speaker 5

    In this, I want to do a little more, in some I want to keep less, then in some I want to do a lot. So you can do all this according to yourself.

  364. Speaker 4

    Okay.

  365. Speaker 5

    And this is our simple UI. And it looks very nice. So see, we had to make this, we made this.

  366. Speaker 6

    Exactly.

  367. Speaker 5

    Then what else did we have to make? We had to make a hero section, so we have made that too, obviously. So it looks something like this. I believe your tailwind css must have been practiced a little. If you are getting css, then tailwind css is nothing for you. But if you are not getting css, then you.

  368. Speaker 4

    Will have a headache in tailwind css. This is my guarantee.

  369. Speaker 5

    If you are getting css, then tailwind css must be looking very easy.

  370. Speaker 4

    Not much.

  371. Speaker 5

    To do font size, font bold, etc. of text, there is only one property here, text. We will write color by giving a dash in it, the background color will change. We will write width by giving a dash, the font size will change. I will write center and left right by giving dash and alignment will change. If you want to give color in BG, then you will write color by giving BG dash and color will change. Then I have not told media query yet, let's see media query a little bit.

  372. Speaker 4

    So for now, is anything going wrong here? Let's see this.

  373. Speaker 5

    So first of all, I believe the footer will be spoiled. So let's fix the footer a little bit. Here we give the part of grid 3, right? Where did it go?

  374. Speaker 4

    This is of grid 5 here, so I will say.

  375. Speaker 5

    Look at the syntax of 770px, I am writing it this way. In the media query, we used to write the maximum width before this and after this.

  376. Speaker 4

    It is very simple here.

  377. Speaker 5

    I will put a square bracket here because I have to define my own. I keep 770px as a critical point. And what does max mean? I will tell you now. You have to put a colon here. And then you can write the property you want to write by giving a colon.

  378. Speaker 2

    Like I want columns.

  379. Speaker 5

    I want to divide it into three columns. So what did I say? I said max to max 770px. Means from 0 to 770px, your column should be 3. Column has ended here.

  380. Speaker 6

    One minute.

  381. Speaker 5

    One minute. Grid column is there. Grid column 3. So I said from 0 to 770px, your column should be 3. And after that, your automatic 5 will be there. But I have defined here that max to max 770px atleast 3 columns.

  382. Speaker 4

    So see here.

  383. Speaker 5

    From 0 to 770px it will be 3 columns and after that it will be 5. Similarly if I want to make it smaller then I can give 2.

  384. Speaker 4

    Or directly I can give 2. See I gave 2.

  385. Speaker 5

    So it is looking like this. And if it had a little padding it would have looked good. In header we will give a little padding with x. It will look better I believe. I will give the space here in this way, then these two are also looking.

  386. Speaker 1

    Fine, right?

  387. Speaker 5

    If you want to make it smaller and more responsive, then you can make it more responsive here. And this is also getting a little damaged, so you will have to see this too, maybe this is getting damaged above the header. So let's see the header first. So this will be the hide in the header. After a few pixels, this will be the hide and a button should come here. So, bring that button from logic. Rest, we will learn that logic further. How to do conditional rendering. So, leave it for now. For now, we just hide it. You must have seen it in the application when it was small. This menu is hidden. And here comes a menu icon. It comes from the side when you click the icon. So, for now, let's hide it. We will perform that logic when we read conditional rendering. So, let's hide it after 770 pixels. So, let's come to the header. Where is our header? This is our header. This is our menu. keep it hidden up to 770 pixels. Display hidden.

  388. Speaker 4

    So to keep the display hidden, we just use hidden here.

  389. Speaker 1

    Okay.

  390. Speaker 5

    Hidden means I believe display none. Display none means hidden. If you don't understand, you can search here. If you want to do display none, then your hidden is here. If you want to do something else in the same way, then you can see here.

  391. Speaker 4

    So I hide it here.

  392. Speaker 5

    Basically, I did display none. So this is something like this. And this is coming in a sticky way. So I will also give padding x1rem in the header. So now it will come a little like this. See how easy it is to be responsive with tailwind. If you want to keep it small, then after 340 or 3400 pixels, make it grid column 1. Where did our footer go? So here we will put one more media query. After a maximum of 400 pixels, we will make the grid column 1 here.

  393. Speaker 4

    So see, if I make it smaller, then it will be 1. It came in the same line. And if you want you.

  394. Speaker 5

    Can increase the gap here. We should have given a gap. We did not give a gap, we should have given a gap. So, we also give a gap when it is responsive. Like here the maximum is being responsive after 770 pixels. So here we also give a gap of 2rem and see how it is looking. So there is no gap in the middle, we do not need a gap here. When it is small, we need a gap before 770 pixels. See the gap in the middle, there was no gap before. If you look carefully, then I will remove this. Now see there was no gap here. After the portfolio, it was coming immediately. There was no gap. And now if we give this here, if we give a gap up to 770 pixels, then it will be small and the gap will be maintained here.

  395. Speaker 4

    See there is a gap properly.

  396. Speaker 5

    And if you want this too, then you can do its flex direction column.

  397. Speaker 4

    Flex direction column.

  398. Speaker 5

    After max of 770px do flex column so it will come in column see this did not come in column flex column ok it is in column ok what am I doing in column actually one minute one minute wait this is in column only this was not done in the last this one was done here maximum of seven seventy pixel. We will do the column. So now see it just came down. If you want to give a gap, then you can also give a gap. So now it is coming perfect. Okay and here also we will give padding one rem. Padding one rem. So this is a little space. So now see it is looking perfect. Uh okay where is this from again? To make it small, this is a little So that's why it's happening. You can make its size a little smaller. How to make it smaller? So come to the hero section and write here maximum of five hundred pixels. I want to keep its size a little smaller. Let's make the text three pixels. So look at this, the text has become three pixels. So as soon as it is less than five hundred pixels, its text gets smaller.

  399. Speaker 4

    It looks better.

  400. Speaker 5

    And there is no padding in this either. Let's give padding in this as well. This is the whole hero section. So we will give padding to it. So a little padding will come in this too. It will look good. This is the padding that has come. And we will also make the size of this button a little smaller. After a maximum of 500 pixels. I mean to say that we are making it smaller. So according to making it smaller, I am saying later. If you look at the rest in actual, then your text from 0 to 500 pixels.

  401. Speaker 4

    Your text will.

  402. Speaker 5

    Be small from 0 to 500px means text will be small from max to max 500px after that your default will be done ok so your something like this so see even if it is small it becomes small till then it is responsive ok so whose phone will be smaller than this?

  403. Speaker 4

    240px right? whose phone will be smaller than this?

  404. Speaker 5

    This will be bigger than this so this is also very responsive see this is completely responsive and we can do big and small easily.

  405. Speaker 4

    Okay. So, I believe you have to be responsive.

  406. Speaker 5

    And, in Tailwind CSS, all the other properties have been written. If you know CSS, then it will be very easy for you. But, if you don't know CSS, then it will be very difficult for you. Because, I have done the same thing in CSS. In media query, what I had explained, that maximum width is this much, so, we apply media query in this way. Here, we do this, we do that. So, those who have done CSS, Tailwind CSS is nothing. It is CSS only. Okay, so I hope you understood Tailwind CSS. Rest, all the lectures that are going to come, in all.

  407. Speaker 4

    In all, we are going to use Tailwind CSS.

  408. Speaker 5

    Whatever small work we will do, we will not go to write CSS directly, we will start our work by writing Tailwind CSS.

  409. Speaker 4

    Okay, so that's it for now. See you in the next lecture. Till then, bye-bye.