Tailwind CSS V4 is SO Good!

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.พ. 2025

ความคิดเห็น • 84

  • @xfuttex
    @xfuttex 11 หลายเดือนก่อน +28

    So amazing with getting rid of that Tailwind configuration file! Amazing job Tailwind theme!

  • @bren.r
    @bren.r 8 หลายเดือนก่อน +9

    Tailwind at this point isn't "just a library". It's become the gold standard in virtually every project or production site nowadays.

    • @frontendfyi
      @frontendfyi  8 หลายเดือนก่อน

      It sure is!! I'm enjoying it a LOT

    • @amelianceskymusic
      @amelianceskymusic 5 หลายเดือนก่อน

      Thanking good people, not yet

  • @real-oppenheimer
    @real-oppenheimer 11 หลายเดือนก่อน +4

    Why were there so many classes/utilities in the tag you've shown (e.g. at 7:37)? Before, we only included the styles that were used (via content in the Tailwind config), but now it seems that everything was included instead?

    • @BobRossRightHand
      @BobRossRightHand 11 หลายเดือนก่อน

      I'm also curious why, maybe a alpha bug or he have other files not show that uses those classes?

    • @TailwindLabs
      @TailwindLabs 11 หลายเดือนก่อน +9

      There are no classes or utilities in that style tag, those are just the CSS variables for your theme 👍🏻 We make those all available by default so you can reference them anywhere else you may need them, but it's possible to suppress them if that's not what you want.

    • @real-oppenheimer
      @real-oppenheimer 11 หลายเดือนก่อน +3

      @@TailwindLabsNaturally I thought that only the CSS variables are included that are actually used - exactly how classes/utilities worked via the "content" field before.

  • @mariolim96
    @mariolim96 11 หลายเดือนก่อน +1

    This new features are massive!

  • @maxwebstudio
    @maxwebstudio 11 หลายเดือนก่อน +1

    Excited by ths new features and configuration.
    Though this one is a breaking update. I wonder how things like DaisyUI will handle the update.

  • @hipdev_
    @hipdev_ 11 หลายเดือนก่อน

    Thanks Jeroen!, on point as always.

    • @frontendfyi
      @frontendfyi  11 หลายเดือนก่อน

      Thanks Julian! Hope you’re doing good, miss you in discord man!

  • @littleoddboy
    @littleoddboy 11 หลายเดือนก่อน

    first of all, thank you a lot due to this amazing video.
    I think tailwindcss is going to be more css-style. you know, in the past and v3 and others, we've to configure everything with JavsScript, it's good right? but as a front-end developer and in that time - the time that you want to code the design, not the functionality - I just want to be in the html/css world! and tailwindcss v4 is going to be crazy with this idea.
    again, thank you for this video!

  • @OleksandrPanteli
    @OleksandrPanteli 11 หลายเดือนก่อน

    content as great as always

    • @frontendfyi
      @frontendfyi  11 หลายเดือนก่อน +1

      Thank you!

  • @damar1967
    @damar1967 10 หลายเดือนก่อน

    Though I'm not using Tailwind CSS anymore because I now use UnoCSS, I always try to follow any Tailwind news in case they have a groundbreaking update. I'm not missing anything out so far

    • @frontendfyi
      @frontendfyi  10 หลายเดือนก่อน

      I think you're right! It's quite comparable right? Any specific things you like more about UnoCSS vs Tailwind? I haven't played around with UnoCSS myself yet because it indeed looked so similar.

  • @mariomario4676
    @mariomario4676 2 หลายเดือนก่อน

    Last Tailwind developments are so interesting

  • @kolyan4d
    @kolyan4d 11 หลายเดือนก่อน

    Very cool review 👍

  • @oddcelot
    @oddcelot 11 หลายเดือนก่อน

    i was wondering about tailwind + open props for a while now…
    open props v2 is in the works already and has some good stuff lined up

    • @frontendfyi
      @frontendfyi  11 หลายเดือนก่อน

      Open props is a very cool project indeed! All credits to Simon for thinking of combining the two in an example ❤️

  • @ssshenkie
    @ssshenkie 11 หลายเดือนก่อน +2

    I'm curious how they've updated the language server to detect that Tailwind is installed 🤔 before it was as easy as just checking if tailwind config existed

  • @thephilosopher699
    @thephilosopher699 11 หลายเดือนก่อน +3

    Which fonts you are using in vsCode?

    • @frontendfyi
      @frontendfyi  10 หลายเดือนก่อน

      The font is called Recursive Mono Casual Static

  • @louisstephens6714
    @louisstephens6714 4 หลายเดือนก่อน

    Just curious, what plugin are you using to highlight the colors in your css file? I normally rely on the built in vscode one, but it fails to pick up the properties under the @theme.

  • @DuongNguyen-ok1qt
    @DuongNguyen-ok1qt 10 หลายเดือนก่อน

    Thank Jeroenl, which plugin support autocomplete? I tried the same but lost suggestion.

    • @frontendfyi
      @frontendfyi  10 หลายเดือนก่อน

      It's Tailwind's own plugin, but you have to make sure that you upgrade to their prerelease version, it should be a button if you navigate to the extension install page. Let me know if you found it!

  • @Htbaa
    @Htbaa 10 หลายเดือนก่อน

    Hmm, am I right that by default Tailwindcss will include all color variables even if you use them or not? It doesn't do that in v3 (as they're not variables), but if so why would it include all that extra bulk? Wasn't Tailwind supposed to only include what's being used?

    • @frontendfyi
      @frontendfyi  10 หลายเดือนก่อน +1

      I believe this is true for now yeah! I see many people asking the same questions, so this might still change towards the final version. I kinda get why they do this, but I also understand that most people don't want to have these variables in there if they don't use it - just like with the utility classes.
      Those utility classes are all still removed on build time by the way. That hasn't changed.

  • @proteus1
    @proteus1 10 หลายเดือนก่อน

    I tried using tailwind and it's good. I have an question as when I upload a single page to the server that the page required is index or tailwind?

  • @murtza.rehman
    @murtza.rehman 10 หลายเดือนก่อน

    I guess I should wait until v4 to migrate my less css variables to tailwind css variables since then I could simply copy them over to .css file and not need to know about tailwind config file which would be obsolete by then, right ?

    • @frontendfyi
      @frontendfyi  10 หลายเดือนก่อน +1

      That kinda makes sense yeah. Although there's not too much extra to learn when using the theme vs variables, you still need to know their naming convention. So on the other hand.. Why wait any longer to try it right? I at least really enjoy working with it!

    • @murtza.rehman
      @murtza.rehman 10 หลายเดือนก่อน

      Yes good idea to try it now to transition into v4@@frontendfyi

  • @ikhsan_345
    @ikhsan_345 9 หลายเดือนก่อน

    Hello, friend. Mind if review tenoxui css too? It's worth it

  • @MudassirKhan-sx9jy
    @MudassirKhan-sx9jy 11 หลายเดือนก่อน +1

    what font are you using for you editor. nice video btw.

    • @geeksy2278
      @geeksy2278 11 หลายเดือนก่อน

      Wanna know too! Looks smooth!

    • @frontendfyi
      @frontendfyi  11 หลายเดือนก่อน

      The font is called Recursive Mono Casual Static

  • @chankailoon
    @chankailoon 11 หลายเดือนก่อน

    What if I want all the existing colors and font size available in development but not in production? Isn't tailwind going to tree shake any unused classes in build?

    • @frontendfyi
      @frontendfyi  11 หลายเดือนก่อน +1

      Absolutely, tailwind will still remove anything you don’t use!
      It’s more of a consistency in your design - if you work in a team with a designer as well, you want to create a subset of colors that you use, and keep on using. You then don’t want your team members to suddenly start using 9 grey colors if you only use 2 in your site. So having a theme that only has the colors for your project, helps in that consistency.

  • @deadlylive_gaming7154
    @deadlylive_gaming7154 11 หลายเดือนก่อน +1

    nice updates man

  • @wlockuz4467
    @wlockuz4467 11 หลายเดือนก่อน

    How do the plugins work now? I have a project with Tailwind config that has Javascript in it to support dynamic updates, something Tailwind doesn't support out of the box. I hope the config is opt-in because its really convenient.

    • @frontendfyi
      @frontendfyi  11 หลายเดือนก่อน

      I believe they are still working on the plugin support - but the goal is that you can configure everything in the CSS file. Check Adam's twitter account, I even think he shared a tweet about what that looks like.

  • @vlad_pantyukhin
    @vlad_pantyukhin 11 หลายเดือนก่อน

    Great video! 👏What font are you using for VS Code? 😅

    • @frontendfyi
      @frontendfyi  11 หลายเดือนก่อน

      It's called Arc, from the Bearded Theme collection: github.com/BeardedBear/bearded-theme
      The font is called Recursive Mono Casual Static

    • @vlad_pantyukhin
      @vlad_pantyukhin 11 หลายเดือนก่อน

      @@frontendfyi Thanks Jeroen! 😌

  • @naranyala_dev
    @naranyala_dev 11 หลายเดือนก่อน

    embrace modern css, awesome

  • @djmtype
    @djmtype 10 หลายเดือนก่อน

    How do you remove the @base? Added an empty object `@layer base {}` in the css file doesn't do it.

    • @frontendfyi
      @frontendfyi  10 หลายเดือนก่อน

      You import each “tailwindcss/[layer]” you want individually instead of the all in one “tailwindcss”. I believe Adam tweeted about it somewhere, but can’t find it right now.

  • @rencesalaveria2301
    @rencesalaveria2301 11 หลายเดือนก่อน +1

    what is your font?

    • @frontendfyi
      @frontendfyi  11 หลายเดือนก่อน +1

      The font is called Recursive Mono Casual Static

    • @rencesalaveria2301
      @rencesalaveria2301 11 หลายเดือนก่อน

      thanks!

  • @manikantaprasadlopinti8375
    @manikantaprasadlopinti8375 11 หลายเดือนก่อน

    Please create a vedio how to load configuration on a http request..so i can get theme from backend

  • @imnash_on_E
    @imnash_on_E 11 หลายเดือนก่อน

    Your theme name?

    • @frontendfyi
      @frontendfyi  11 หลายเดือนก่อน +1

      It's called Arc, from the Bearded Theme collection: github.com/BeardedBear/bearded-theme
      The font is called Recursive Mono Casual Static

    • @imnash_on_E
      @imnash_on_E 11 หลายเดือนก่อน

      @@frontendfyi Thank you!

  • @backupmemories897
    @backupmemories897 10 หลายเดือนก่อน

    this makes daisyui obsolete the theming part..

  • @Lemmy4555
    @Lemmy4555 11 หลายเดือนก่อน +1

    I'm waiting for tailwind to support custom class names so that you can do:
    .my-comp { background-color: red }
    hello!

    • @Voidstroyer
      @Voidstroyer 11 หลายเดือนก่อน +5

      I don't really understand what you are asking for. What you seem to be describing is just vanilla css which you can already use alongside tailwind. Nothing is stopping you from literally writing .my-comp { background-color: red } inside your css file and using the class in your html.

    • @NewTypeStarling
      @NewTypeStarling 11 หลายเดือนก่อน +1

      Fr​@@Voidstroyer

  • @Daktyl198
    @Daktyl198 11 หลายเดือนก่อน

    I’ve tried tailwind several times, and I just can’t seem to understand why people like it so much. It seems like an interesting project, but for me it just felt like I was making my code uglier and being less productive at the same time (though I imagine that second part work go away if I used it more). Is tailwind anything other than inline css with a predefined “theme”?

    • @frontendfyi
      @frontendfyi  11 หลายเดือนก่อน +1

      I’ve also tried it maybe 10 times, decided it sucked and went back to all other tools I loved. Until one day it sticked and I really like it.
      Yes it’s ugly, but it also brings me so much joy in being able to quickly create components because of colocation, not writing the same utility classes / styles over and over, and so much more.
      In some ways it is exactly like inline styles, but without many of the downsides inline styles of course being.
      I fully get your point though! I guess you just have to keep trying it every now and then? Haha. Hope it was a little bit helpful to you.

    • @frontendfyi
      @frontendfyi  11 หลายเดือนก่อน +1

      Alright, I decided this explanation still wasn't complet, so I dug up a message I wrote in Dutch with the benefits I see in Tailwind, and Translated it to English for you. It's just a list of the first things that came to mind when a friend asked a similar question a while back. Hope it's helpful!
      - Utility first CSS makes your CSS more consistent in general, so I was already using a similar approach in my own CSS before
      - Co-location of styles and HTML (jsx) is super nice and productive. (Of course you can also have this by for example using Astro, or other ways)
      - The Tailwind Autocomplete and linting makes you SUPER fast. It immediately shows you which classes are available, and which things are in your theme. If you'd make your own utility first CSS you can't create such thing easily, and thus making it harder to onboard new devs - they have to learn your "css language" first. Closest you might be able to get to this is a well typed Styled Components setup?
      - I'm not afraid anymore to delete code. I know what is in use and what isn't. Where as in any other CSS approach you're always afraid to delete stuff (especially if you're not the only one on a project, or if I built some styles while I was drunk a few months ago). Too often people abuse a CSS class meant for one thing in a whole other place. And of course you shouldn't do that, but over a decade of experience shows me it happens too often..
      - I literally don't need to move my cursor if I need to write CSS or HTML. I can just type in one go, and that saves me a lot of time.
      - ml-3 is super ugly, but it's also so much quicker to write than something like margin-left: var(--space-3);. And because of tailwinds autocomplete again, the language is quite easy to learn, and once you grasp it you gain all these speed benefits. And suddenly making frontend becomes so much quicker. (biggest downside might be that people want to go too quick, and don't think about optimizing code anymore and make it a mess..)

    • @Daktyl198
      @Daktyl198 11 หลายเดือนก่อน

      @@frontendfyi thank you for the detailed write up. It made me sort of come to a realization of why I think it doesn’t mesh well with me, and that’s because I use Svelte as a framework. Because of that, other than my global “theme” css, every custom bit of css I need to write is small, and paired directly inside of a style tag in the component’s own file. Therefore, most of tailwind’s benefits are lost on my small to medium sized projects because Svelte already solves them.

    • @frontendfyi
      @frontendfyi  11 หลายเดือนก่อน

      That indeed makes a lot of sense! One of the biggest things you might then be missing out on is a nice autocomplete of your theme's variables, which hopefully are share across you components?
      Besides that, if you make very small components inside a svelte file, there is indeed a lot less reason to use tailwind in my opinion!

  • @planesrift
    @planesrift 10 หลายเดือนก่อน

    Thank you. Configuration file hell is the cancer of frontend development.

  • @AtomicPixels
    @AtomicPixels 10 หลายเดือนก่อน +1

    I despise the man who thought ir was okay to contradict the definition of CSS by coming up with some brand name that has no relevance to its purpose and there to confuse everyone. It’s like saying you prefer a frying pan food over just food food, now I gotta refer to the tool I use each time I reference what I ate

    • @frontendfyi
      @frontendfyi  10 หลายเดือนก่อน +3

      I’m really trying to get your point, but somehow I don’t. Really curious what you mean!

    • @wishmeheaven
      @wishmeheaven 9 หลายเดือนก่อน

      ​@@frontendfyi a wild guess here:
      He meant that in order to use a few style variables, theTailwind structure/configuration requires you to import a ton of others...
      Sounds reasonable?
      (...Either the argument or the structure)

  • @beomc4539
    @beomc4539 10 หลายเดือนก่อน

    So, if Tailwind is becoming more and more like CSS with every version, why not just use modern CSS?

    • @frontendfyi
      @frontendfyi  10 หลายเดือนก่อน

      Nothing wrong with modern CSS indeed! There's just a few things I like about Tailwind that CSS don't (fully) bring yet. But again, nothing wrong with modern CSS. On the contrary even, modern CSS gained many great new features lately.

  • @alii4334
    @alii4334 11 หลายเดือนก่อน

    how are we going to add plugings?

  • @davejones4740
    @davejones4740 6 หลายเดือนก่อน

    impossibly imposiblr to install this. There isn't one yt video that actually works for mac

  • @avwie132
    @avwie132 11 หลายเดือนก่อน +2

    Soooo…. Just css

    • @statuschannel8572
      @statuschannel8572 11 หลายเดือนก่อน +1

      yeah yeah!
      without specifiCity iSSue, Class naming iSSue, performanCe iSSue and more

  • @stephenkamenar
    @stephenkamenar 11 หลายเดือนก่อน

    "simply add the tailwind css plugin, that is all you need to do now!"
    bro, what. that is not the only thing you need to do. it is not "just css" you need build tools, vite, node, npm. will probably throw errors when you try to use this project in the future. so dumb.
    would be nice if it was just a css file ...... imagine that. then mabye i'd use it

    • @frontendfyi
      @frontendfyi  11 หลายเดือนก่อน

      Fair point, there's indeed more involved. Not sure if I think that is bad though. We've already left the days where we didn't need any other tools almost a decade ago, when things like Grunt came around. I mean.. I'm glad I don't need to minify my CSS files manually anymore.

    • @stephenkamenar
      @stephenkamenar 10 หลายเดือนก่อน

      @@frontendfyi i still haven't used a single build tool. one of the best decisions i've made. all of my projects are simple to understand and maintain, even the very very old ones

  • @prashlovessamosa
    @prashlovessamosa 11 หลายเดือนก่อน +1

    Please make some content for TH-cam.

    • @frontendfyi
      @frontendfyi  11 หลายเดือนก่อน +3

      Recorded a new rebuild again. 4,5 hours source material 🙏 On YT soon.

  • @ralpha112
    @ralpha112 11 หลายเดือนก่อน +6

    Tailwind is overrated.

    • @CURIOSITYcapital
      @CURIOSITYcapital 9 หลายเดือนก่อน +1

      No it is not...i have never used vanilla css after learning tailwindcss

  • @syed.simanta820
    @syed.simanta820 11 หลายเดือนก่อน

    Improve your premium course

    • @frontendfyi
      @frontendfyi  11 หลายเดือนก่อน

      Working on it ❤️ Updates soon!

  • @Pareshbpatel
    @Pareshbpatel 8 หลายเดือนก่อน

    Nice overview of Tailwing V4. Thanks.
    {2024-06-04}