What's new in Tailwind CSS v3.1?

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 252

  • @dawidwraga
    @dawidwraga 2 роки тому +154

    30:08 is a perfect example of why we need the ability to apply multiple classes to a single selector. If you have to copy paste that line multiple times then your html will quickly become hard to maintain.
    Current syntax: sm:p-4 sm:m-4 sm:top-5
    Suggested improvement: sm:(p-4 m-4 top-5)

    • @IsThisBenton
      @IsThisBenton 2 роки тому +4

      Came here to say this. Is there plugin for it?

    • @jjdevcode9635
      @jjdevcode9635 2 роки тому +3

      @@IsThisBenton Only Windi css

    • @PlayWithNiz
      @PlayWithNiz 2 роки тому +3

      @@IsThisBenton This isn't a perfect solution - But I like to use clsx to split out my breakpoint classes so they're easier to manage. On my phone so this won't be perfect, but something like className={clsx('sm:a sm:b', 'md:a2', 'lg:b2')} (prettier will make this look nicer) and similar when using apply directly in a stylesheet, 1 apply per breakpoint

    • @mrjohn1172
      @mrjohn1172 2 роки тому +6

      you can't put spaces in your classes so it would be like *sm:(p-4_m-4_top-5)*
      but I would prefer *sm:(p-4,m-4,top-5)* 😜

    • @jjdevcode9635
      @jjdevcode9635 2 роки тому

      @@mrjohn1172 windicss.org/features/variant-groups.html, I prefer like wind css

  • @hamzaabde1595
    @hamzaabde1595 2 роки тому +108

    Adam did a great job, but who else misses simon swiss

  • @tylerscramble
    @tylerscramble 2 роки тому +68

    I can't think of any project that explains their features and updates better than Tailwind. Arbitrary variants are crazy and the examples are immediately relevant to issues we commonly encounter. Thank you to the whole team!

    • @TailwindLabs
      @TailwindLabs  2 роки тому +8

      Thank you! 🙌

    • @minnow1337
      @minnow1337 Рік тому

      @@internet4543 Why don’t you just check github

  • @universecode1101
    @universecode1101 2 роки тому +88

    Hey Adam 😊 Thanks for your amazing job, Tailwind Css is a game changer. As a Js -React developer, it is very difficult to think of a project without Tailwind, so thanks to the whole team 😜✌🏻

    • @laodemuhammadalfatih7663
      @laodemuhammadalfatih7663 2 роки тому +1

      tailwind is the pioneer. but there's an underdog called unocss with crazy performance and amazing concept.

    • @jenstornell
      @jenstornell 2 роки тому

      @@laodemuhammadalfatih7663 As far as I know Unocss will only work with frameworks like React or Vue, not plain Html? Correct?

    • @markg5986
      @markg5986 2 роки тому

      +1

    • @yoJuicy
      @yoJuicy 2 роки тому +1

      Bro i see you everywhere in the JS/React youtube community. Always positive comments too. Keep it up!👍

    • @markg5986
      @markg5986 2 роки тому

      @@yoJuicy, YOU are making things positive too!

  • @BarisPalabiyik
    @BarisPalabiyik 2 роки тому +10

    Inline selectors is a huge feature actually. Each time you guys surprise us with things we would never think we needed. Keep up.

  • @MuriJaf
    @MuriJaf Рік тому +1

    I've been using tailwindcss since 2021, and i love it, i've built projects with it, it's amazingggg.
    Thank you

    • @lukas.webdev
      @lukas.webdev Рік тому

      I just posted a video about Tailwind CSS in 2023 - maybe this is also interesting for you. 😉

  • @kanuos
    @kanuos 2 роки тому +8

    Arbitrary variants look excellent!
    Gotta check if we can finally style ::-webkit-slider-thumb within the component using that.

  • @shadkamel362
    @shadkamel362 2 роки тому +7

    Great job, the arbitrary variant is so amazaning, it was something that i wish i could use it ❤️

  • @cr0w312
    @cr0w312 2 роки тому +1

    Thanks to you, I haven't written a single line of CSS for 3 years

  • @FullStackFool
    @FullStackFool 2 роки тому +1

    I love the quirkiness of this, Adam - great release vid. Loving these changes too!

  • @PauloMenezes28
    @PauloMenezes28 2 роки тому +24

    Nice features, a good way to easier this custom variants is creating a name in the tailwind.config.js, like "has-backdrop": "@supports(backdrop-filter:blur(0px))" and in the html we say: "hover:bg-white [has-backdrop]: bg-white/25"

    • @Pepsiaddicto
      @Pepsiaddicto 2 роки тому +3

      I believe that has already been possible using the "screen" config.

    • @synth32
      @synth32 2 роки тому

      or you could just add a custom Variant in the tailwind.config file

  • @GrizhlieCodes
    @GrizhlieCodes 2 роки тому +1

    Thanks so much Adam. Arbitrary Variants solve pretty much every and any issue I had left with Tailwind. Man o man.

  • @tamrat_assefa
    @tamrat_assefa 2 роки тому +2

    The enabled variant is gonna be so useful. All my button components have this weird conditional CSS that adds hover states only if its not disabled. I think the new approach is much cleaner. Nice video and nice update. Thanks Adam and the Tailwind Labs team.

  • @mryechkin
    @mryechkin 2 роки тому +1

    Best intro ever 😂 Great job guys! Definitely looking forward to utilizing some of these new changes, especially arbitrary variants

  • @denilsoncosta9837
    @denilsoncosta9837 2 роки тому +12

    Great job, I'm just waiting for group selectors some thing like hover:{bg-white, text-dark} and {hover, active}:bg-pink. Would be great.

    • @afifu
      @afifu 2 роки тому

      No, it will make your CSS size bigger.
      Imagine you have 4 element with this class:
      hover:bg-pink
      active:bg-pink
      {hover, active}:bg-pink
      {active, hover}:bg-pink
      👆 Will generate 4 class in your CSS.
      The current feature is just right, you should use it individually:
      hover:bg-pink
      active:bg-pink
      hover:bg-pink active:bg-pink
      👆 Only 2 class will be generated

    • @antoruby
      @antoruby 2 роки тому +3

      @@afifu that’s right, but the compiler should optimize the class generation to avoid this problem. It doesn’t have to be a burden for the developer.

  • @ardianfazricom
    @ardianfazricom 2 роки тому

    I am using tailwind from several months ago and I love it. With these features, it will help me a lot. Thank you.

  • @AllahomAnsorGaza
    @AllahomAnsorGaza 2 роки тому +1

    Great work boss
    i really love tailwind and it make my life eaiser

  • @chrismingay6005
    @chrismingay6005 2 роки тому +5

    Finally! If there's anything Tailwind has been missing it's aggressive undertones in the feature videos.

  • @clearcss3382
    @clearcss3382 2 роки тому +1

    Amazing updates. Tailwind CSS is definitely changing the game for us mere mortals.

  • @aghileslounis
    @aghileslounis 2 роки тому

    You are crazy good ! arbitrary variants are just amazing ! thank you for that

  • @kimbapslayer1995
    @kimbapslayer1995 Рік тому

    The arbitraty supports class is amazeballs

  • @zenvibes_hub
    @zenvibes_hub 2 роки тому

    Hey adam 😁😁😁 great job, the arbitrary variant is so amazaning

  • @cotneit
    @cotneit 2 роки тому

    Arbitrary variants are HUGE! I just got into Tailwind a few weeks ago and the lack of something similar really bothered me!

  • @chrisnewman6670
    @chrisnewman6670 2 роки тому

    Can’t wait to try out arbitrary variants. Might turn out to be the best way to override certain 3rd party Angular lib component styles.

  • @dancewithakshara09
    @dancewithakshara09 2 роки тому

    Great keep up the work.arbitary selectors are the biggest game changer

  • @cintron3d
    @cintron3d 2 роки тому

    Amazing improvements!

  • @gabrielegiannotti2876
    @gabrielegiannotti2876 2 роки тому

    I was looking for arbitrary variants since forever!

  • @81NARY
    @81NARY 2 роки тому

    One good use case for arbitrary variants is next/image related styles!

  • @JeremyJaydan
    @JeremyJaydan 2 роки тому

    Abritrary variants look like a great way to handle styles for custom attributes with custom elements!

  • @phaze7272
    @phaze7272 2 роки тому

    excited for arbitrary variants!

  • @ayoubMazouz
    @ayoubMazouz 2 роки тому +1

    So Excited!

  • @jackmcdade
    @jackmcdade 2 роки тому

    So much goodness! I never knew how much i wanted TypeScript Types until now.

    • @codephilip
      @codephilip 2 роки тому

      15 hours ago? You were definitely the FIRST 😄

    • @jackmcdade
      @jackmcdade 2 роки тому +1

      @@codephilip I'm an overachiever

  • @crampssss
    @crampssss 2 роки тому +8

    I miss Simon 😭

  • @visheshgupta4990
    @visheshgupta4990 Рік тому +1

    Great Video Interesting and useful and listening all this from the founder of tailwind css loved it 🔥🔥

    • @lukas.webdev
      @lukas.webdev Рік тому

      I just posted a video about Tailwind CSS in 2023 - maybe this is also interesting for you. 😉

  • @pavelino17
    @pavelino17 2 роки тому

    those videos are so great, always mindblown afterwards, keep doing those. and ofc tailwind is great as well ;)

  • @LinusForsell
    @LinusForsell 2 роки тому

    Thank you for the update! 🥳
    Arbitrary variants are definitely super useful - but things quickly become overly verbose and hard to read when you need to write complex ones over and over. How about chaining utility classes on variants?
    Something along the lines of [variant-1]:[variant-2]:m-2+p-4+bg-slate-900+text-white
    This would be useful already when, say, writing a hover variant.
    E.g. hover:bg-white/50+text-slate-900
    Not super clean, but a lot less repetition... No? 🤔

  • @juanbaro3924
    @juanbaro3924 2 роки тому

    you are amazing ! thanks for that great work

  • @MattChinander
    @MattChinander 2 роки тому

    You guys are killing it.

  • @juanmacias5922
    @juanmacias5922 2 роки тому

    Such a useful video, thanks for all your work on Tailwind 3.1!

  • @oldo-nicho
    @oldo-nicho 2 роки тому

    Great job Adam! Really enjoyed that video

  • @federicoottavio
    @federicoottavio 2 роки тому

    Ooooooh i won't struggle anymore with hover on disabled button, thanks!!!

  • @iknownotwhoiam
    @iknownotwhoiam 2 роки тому

    Arbitrary variants are gonna be so amazing with Radix UI 😻

  • @davidwebca
    @davidwebca 2 роки тому

    Arbitrary variants are so good for scoping styles! Ex.: A component needs to be styled differently when it's inside sections of the site, etc.

  • @BrettPeary
    @BrettPeary 2 роки тому

    Amazing stuff!

  • @jdlien81
    @jdlien81 2 роки тому

    Great features, well done video too. Production quality is 👌🏻

  • @zohrasabahat
    @zohrasabahat 2 роки тому

    Thank you so much your instructions were so easy to follow !! This helper a lot ❤️

  • @JimmyMoCapaldi
    @JimmyMoCapaldi 2 роки тому

    Thank you bro !!!

  • @willvincentparrone3339
    @willvincentparrone3339 2 роки тому

    I just learned tailwind last week and now there's another version. Whawt a chad

  • @Mecabricks
    @Mecabricks 2 роки тому

    Arbitrary variants is for me the best addition to this update.

  • @rudikurniawan99
    @rudikurniawan99 2 роки тому +1

    The arbitrary, so cool

  • @rajahutan12134
    @rajahutan12134 2 роки тому

    cool, i'm waiting for style the scrollbar in tailwind

  • @CodeAProgram
    @CodeAProgram 2 роки тому +2

    Every project I am using tailwind css

  • @benkrakarwalid6039
    @benkrakarwalid6039 2 роки тому

    Great job 🥰

  • @mahdirezazadeh5076
    @mahdirezazadeh5076 2 роки тому +1

    Thanks for your video. 🌷
    Just one point I should mention is
    The font size is too small

  • @imsarvesh_
    @imsarvesh_ 2 роки тому

    I just loved it.

  • @wfl-junior
    @wfl-junior 2 роки тому

    26:00 YES , Thank you. Finally!

  • @benoitleger-derville6986
    @benoitleger-derville6986 2 роки тому

    What a job once again! 🤩

  • @abdelhameedhamdy
    @abdelhameedhamdy 2 роки тому +3

    Great release Adam, where is Simon ! 🙂

  • @dian_the_second
    @dian_the_second Рік тому

    as a noob, I like the typescript types in the config.js

  • @themarksmith
    @themarksmith 2 роки тому

    Love your work!

  • @buddhavskungfu
    @buddhavskungfu 2 роки тому +1

    At this rate, TailwindCSS is going to eliminate the need for creating the Directive file(s). The only files you need to edit is the `tailwind.config.js` file and your project's component's HTML.
    Of course, you can add custom styles into the config file with the plugin, but it would be nice to add a string to add TailwindCSS classes and pseudo classes like @apply in the directive folder. I'm not sure if it's possible. Example
    addComponents({
    '.card': {
    tw--apply: " bg-red-100 hover:bg-blue-900". // 👈
    borderRadius: '.25rem',
    boxShadow: '0 2px 4px rgba(0,0,0,0.2)',
    '&:hover': {
    boxShadow: '0 10px 15px rgba(0,0,0,0.2)',
    },
    '@media (min-width: 500px)': {
    tw-apply: "bg-green-500", // 👈
    borderRadius: '.5rem',
    }
    }
    })

  • @nxshipon6470
    @nxshipon6470 2 роки тому

    Thanks you sir

  • @AviNerenberg
    @AviNerenberg 2 роки тому +1

    What IDE/editor + extension(s) combo are you using to achieve the real time in-editor JSX previews here?

  • @anassfiqhi3517
    @anassfiqhi3517 2 роки тому

    Amazing, I Luv it!

  • @soviut303
    @soviut303 2 роки тому

    I see you using Vite to run the test pages. Excellent choice!

  • @joetrubenstein
    @joetrubenstein 2 роки тому

    Big respect, Adam✊

  • @eyalgantz
    @eyalgantz 2 роки тому

    Packed with so many goodies!

  • @paulkocher2793
    @paulkocher2793 2 роки тому

    Amazing! ♥️

  • @kuldeepjaswal4655
    @kuldeepjaswal4655 2 роки тому

    awesome!

  • @michaelscofield1970
    @michaelscofield1970 2 роки тому

    Adam, you saved my life by making tailwind. Plain CSS is garbo

  • @ericchristian9026
    @ericchristian9026 2 роки тому

    Cool new feature!!

  • @eduardoserrano2015
    @eduardoserrano2015 2 роки тому +1

    Hey! What VS code theme is that? With the pink selection color? Plssss. Love Tailwindcss btw!

    • @ZAK43210
      @ZAK43210 2 роки тому

      It's called Skye

  • @sijmon20031
    @sijmon20031 2 роки тому

    Awesome !

  • @katywings
    @katywings 2 роки тому

    Giving you a big like for that anarchist spirit at the end 😂

  • @saidjonrko
    @saidjonrko 2 роки тому +1

    I am not a front-end developer , but i know css. But i don't like dealing with css files. And i Love tailwindcss Because it lets me control layout right in the html file. i don't have go to css file.

  • @nikkoabucejo3886
    @nikkoabucejo3886 2 роки тому

    Omg I've been waiting for thiiiis!!! Lols 😂 it's been a whileee

  • @PavanKumar-qq3dn
    @PavanKumar-qq3dn 2 роки тому +2

    Is it possible to create arbitrary break points somthing link this "[1800px]:text-sm" instead of creating custom break points in taliwind config?

    • @MattChinander
      @MattChinander 2 роки тому +1

      If I understand correctly, wouldn't that just be [@media(min-width:1800px)]:text-sm?

  • @jenstornell
    @jenstornell 2 роки тому +1

    A child selector! 🌟🌟🌟 A brilliant way to solve it with arbitrary variants. The rest of the features are fine I guess but not as revolutionary to my workflow as child selector.

  • @GabrielMartinez-ez9ue
    @GabrielMartinez-ez9ue 2 роки тому

    Thank you!!

  • @nikstu2792
    @nikstu2792 2 роки тому

    Arbitrary variants🤯👍

  • @oelschlegel
    @oelschlegel 2 роки тому

    What happened to Simon? JK Adam, good to hear from you. Just a quick tip on recording audio, see if you can find a de-esser plugin to help reduce sibilance ("s"-sounds) as they can get particularly harsh sounding. New update looks great! :)

  • @tomlomn5221
    @tomlomn5221 Рік тому +1

    nice.

    • @lukas.webdev
      @lukas.webdev Рік тому

      I just posted a video about Tailwind CSS in 2023 - maybe this is also interesting for you. 😉

  • @vasiovasio
    @vasiovasio 2 роки тому +1

    Everything is great, but IF Somehow ( no matter how! ) you can do it, bring Simon back to the channel!

    • @simonswiss
      @simonswiss Рік тому

      Appreciate the support 🙏

    • @vasiovasio
      @vasiovasio Рік тому +1

      @@simonswiss I'm glad that you continue to post so much useful content related to Tailwind CSS on your channel! Thank you!

    • @simonswiss
      @simonswiss Рік тому

      @@vasiovasio My pleasure!

  • @madebylewis
    @madebylewis 2 роки тому +1

    maybe some `firefox:` and `safari:` variants are needed, to overcome some niche jank you can sometimes come across (not relating to supported properties)

    • @michaelandreuzza
      @michaelandreuzza 2 роки тому

      There's one for blur. Like headless UI is using on the nav.
      Is a js snippet dropped on the config that detects Firefox and you can use firefox:opacity-100

  • @linhtutkyaw3675
    @linhtutkyaw3675 2 роки тому

    Cool 🔥🔥🔥🔥🔥

  • @carlusce
    @carlusce 2 роки тому

    merci beaucoup

  • @lucianooliveira2445
    @lucianooliveira2445 2 роки тому

    Tailwind css it's amazing! I love it ❤

  • @cowslaw
    @cowslaw 2 роки тому

    Glad to see you filled in the empty space on the left, Adam

  • @planetoftheweb
    @planetoftheweb 2 роки тому

    I saw you using the ampersand &>* selector, at 26:00 which I thought was just a Sass selector. Is that a Tailwind specific feature? Something you added in PostCSS or did I miss something?

  • @khauvannam
    @khauvannam Рік тому

    The last feature like scss and I very like it

  • @RyanMorey1
    @RyanMorey1 2 роки тому

    The intro was so chaotic lmao

  • @paulkre
    @paulkre 2 роки тому

    When does the next episode of Full Stack Radio come out??

  • @nicolaskeith8945
    @nicolaskeith8945 2 роки тому +1

    Adaaaaaaam!!

  • @Pepsiaddicto
    @Pepsiaddicto 2 роки тому

    Awesome, but I think the most obvious/common usage of arbitrary variants is when you want to add a lot of different styles to nested components by modifying a data property or class of the root element using javascript. Is it possible to use attribute selectors with these since you'd need brackets? I.E [&[data-is-active]]:bg-red-600? Also being able to apply these to the “group” property would be awesome. I.E “group[.active]:bg-red-600”

  • @QuangNguyen-vy5jr
    @QuangNguyen-vy5jr 2 роки тому

    Amazing

  • @ajpl87
    @ajpl87 2 роки тому

    30:50 "because we're psychotic" lmfao XD

  • @ZyncInteractive
    @ZyncInteractive 2 роки тому

    Nice work on 3.1. But what happened to the other guy who used to make these videos?

  • @wateenafzal2963
    @wateenafzal2963 2 роки тому

    Tailwind CSS rocks...
    what plugin in vscode do you use for the preview tab

  • @codephilip
    @codephilip 2 роки тому

    So good 🤩

  • @sunarpichin5972
    @sunarpichin5972 2 роки тому +1

    Hey Adam, do you know how to implement tailwindcss dark mode in rsuite?