https://skl.sh/designcourse21 – First 500 people to sign up will get their first 2 months free!
— What? NO CSS?! Well, sort of. TailwindCSS is a “utility-first” CSS framework that allows you to build UI’s without writing actual CSS. And today, we’re going to build a UI using this approach. We’re going to dive right in using a CDN, then, I will show you how to integrate PurgeCSS and CSSNano within PostCSS to drastically shrink the size of the final CSS.

Instead of writing CSS rulesets in a CSS file, you define certain classes in the HTML class attribute to build your layout, with properties like margin, padding, font properties, layout properties, and much more..

https://tailwindcss.com/

Let’s get started!

– – – – – – – – – – – – – – – – – – – – – –

Subscribe for NEW VIDEOS!

My site: https://designcourse.com
My personal FB account: http://fb.com/logodesigner
Coursetro FB: http://fb.com/coursetro
Coursetro’s Twitter: http://twitter.com/designcoursecom

Join my Discord! https://discord.gg/a27CKAF
^-Chat with me and others

– – – – – – – – – – – – – – – – – – – – – –

Who is Gary Simon? Well, I’m a full stack developer with 2+ decades experience and I teach people how to design and code. I’ve created around 100+ courses for big brands like LinkedIn, Lynda.com, Pluralsight and Envato Network.

Now, I focus all of my time and energy on this channel and my website Coursetro.com.

Come to my discord server or add me on social media and say Hi!

source

42 Comments

  1. Also pay $270 to see how to create a basic toggle element to the Tailwind developer's standard at tailwindui/components… Is this having a laugh? I can see why it's called Tailwind because it's a load of horse fart.

  2. That was awesome! Especially the part where you explain how to use PurgeCSS. I spent way too many hours on Google searching for this, and you explained it in like 2 minutes. You are the real MVP!

  3. Super fan of you Gary, NOT a fan of these frameworks which don't seem to solve real developer problems or advance the industry. The HTML code is now so busy with styling rules you might as well have written inline css with all the utility classes required to style it in tailwind. Personally, I'm sticking with raw css, html, javascript – and hey web components while we're at it 😉

  4. Hello Sir,

    I tried executing the below code, however, could not see any output. Please help with the solution to resolve the same: –

    <!DOCTYPE html>

    <html>

    <head>

    <meta charset="UTF-8">

    <meta name="viewport" content='width=device-width, initial-scale=1.0">

    <meta http-equiv="X-UA-Compatible" content="ie-edge">

    <title>Tailwind css</title>

    <link rel="stylesheet" href="css/style.css">

    <link href="https://cdn.jsdelivr.net/npm/tailwindcss/dist/tailwind.min.css" rel="stylesheet">

    </head>

    <body class="bg-red-lighter">

    </body>

    </html>

    When I do f12 in Chrome, no class in body is shown.

    Thanking you in anticipation.
    Taruchit

Leave A Reply

Please enter your comment!
Please enter your name here