Tailwind CSS V4 is SO Good!

  Рет қаралды 32,371

Frontend FYI

Frontend FYI

Күн бұрын

✨ Become a Frontend FYI PRO today via www.frontend.fyi/pro - PRO is a single time purchase lifetime plan, giving you access to all courses and other paid content I will create! Right now the first parts of my Framer Motion course have already released!
I just really love Tailwind, I know.. But did you know that with this alpha release Tailwind just became even more "Just CSS™"? Let me take you through what's new, and what got me so excited about this new version! It's all about CSS variables and other modern CSS techniques, and I'm here for it!
🔗 Links
- Tailwind CSS V4 Release post: tailwindcss.com/blog/tailwind...
- Tailwind CSS V4 Default Theme: github.com/tailwindlabs/tailw...
- Simon Swiss' first experiments with V4: / 1765461831643234752
- Adam Argyle's Open Props: open-props.style/
Timestamps:
00:00 - Intro
00:22 - First look at blog post
03:58 - Experiment with v4 ourselves
08:34 - Outro
#tailwindcss #frontend #webdevelopment #css

Пікірлер: 83
@bren.r
@bren.r 25 күн бұрын
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 24 күн бұрын
It sure is!! I'm enjoying it a LOT
@xfuttex
@xfuttex 3 ай бұрын
So amazing with getting rid of that Tailwind configuration file! Amazing job Tailwind theme!
@mariolim96
@mariolim96 3 ай бұрын
This new features are massive!
@hipdev_
@hipdev_ 3 ай бұрын
Thanks Jeroen!, on point as always.
@frontendfyi
@frontendfyi 3 ай бұрын
Thanks Julian! Hope you’re doing good, miss you in discord man!
@kolyan4d
@kolyan4d 3 ай бұрын
Very cool review 👍
@farhan-app
@farhan-app 3 ай бұрын
This is awesome!!!
@OleksandrPanteli
@OleksandrPanteli 3 ай бұрын
content as great as always
@frontendfyi
@frontendfyi 3 ай бұрын
Thank you!
@maxwebstudio
@maxwebstudio 3 ай бұрын
Excited by ths new features and configuration. Though this one is a breaking update. I wonder how things like DaisyUI will handle the update.
@ssshenkie
@ssshenkie 3 ай бұрын
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
@real-oppenheimer
@real-oppenheimer 3 ай бұрын
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 3 ай бұрын
I'm also curious why, maybe a alpha bug or he have other files not show that uses those classes?
@TailwindLabs
@TailwindLabs 3 ай бұрын
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 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.
@proteus1
@proteus1 2 ай бұрын
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?
@oddcelot
@oddcelot 3 ай бұрын
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 3 ай бұрын
Open props is a very cool project indeed! All credits to Simon for thinking of combining the two in an example ❤️
@littleoddboy
@littleoddboy 3 ай бұрын
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!
@ikhsan_345
@ikhsan_345 Ай бұрын
Hello, friend. Mind if review tenoxui css too? It's worth it
@manikantaprasadlopinti8375
@manikantaprasadlopinti8375 3 ай бұрын
Please create a vedio how to load configuration on a http request..so i can get theme from backend
@thephilosopher699
@thephilosopher699 3 ай бұрын
Which fonts you are using in vsCode?
@frontendfyi
@frontendfyi 3 ай бұрын
The font is called Recursive Mono Casual Static
@deadlylive_gaming7154
@deadlylive_gaming7154 3 ай бұрын
nice updates man
@vlad_pantyukhin
@vlad_pantyukhin 3 ай бұрын
Great video! 👏What font are you using for VS Code? 😅
@frontendfyi
@frontendfyi 3 ай бұрын
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 3 ай бұрын
@@frontendfyi Thanks Jeroen! 😌
@naranyala_dev
@naranyala_dev 3 ай бұрын
embrace modern css, awesome
@wlockuz4467
@wlockuz4467 3 ай бұрын
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 3 ай бұрын
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.
@DuongNguyen-ok1qt
@DuongNguyen-ok1qt 3 ай бұрын
Thank Jeroenl, which plugin support autocomplete? I tried the same but lost suggestion.
@frontendfyi
@frontendfyi 3 ай бұрын
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!
@MudassirKhan-sx9jy
@MudassirKhan-sx9jy 3 ай бұрын
what font are you using for you editor. nice video btw.
@geeksy2278
@geeksy2278 3 ай бұрын
Wanna know too! Looks smooth!
@frontendfyi
@frontendfyi 3 ай бұрын
The font is called Recursive Mono Casual Static
@damar1967
@damar1967 3 ай бұрын
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 3 ай бұрын
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.
@chankailoon
@chankailoon 3 ай бұрын
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 3 ай бұрын
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.
@djmtype
@djmtype 3 ай бұрын
How do you remove the @base? Added an empty object `@layer base {}` in the css file doesn't do it.
@frontendfyi
@frontendfyi 3 ай бұрын
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.
@Pareshbpatel
@Pareshbpatel 11 күн бұрын
Nice overview of Tailwing V4. Thanks. {2024-06-04}
@Htbaa
@Htbaa 3 ай бұрын
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 3 ай бұрын
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.
@murtza.rehman
@murtza.rehman 3 ай бұрын
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 3 ай бұрын
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 3 ай бұрын
Yes good idea to try it now to transition into v4@@frontendfyi
@planesrift
@planesrift 2 ай бұрын
Thank you. Configuration file hell is the cancer of frontend development.
@user-nw5xq8dq7r
@user-nw5xq8dq7r 3 ай бұрын
which font are u using ?
@frontendfyi
@frontendfyi 3 ай бұрын
The font is called Recursive Mono Casual Static
@rencesalaveria2301
@rencesalaveria2301 3 ай бұрын
what is your font?
@frontendfyi
@frontendfyi 3 ай бұрын
The font is called Recursive Mono Casual Static
@rencesalaveria2301
@rencesalaveria2301 3 ай бұрын
thanks!
@backupmemories897
@backupmemories897 2 ай бұрын
this makes daisyui obsolete the theming part..
@alii4334
@alii4334 3 ай бұрын
how are we going to add plugings?
@imnash21
@imnash21 3 ай бұрын
Your theme name?
@frontendfyi
@frontendfyi 3 ай бұрын
It's called Arc, from the Bearded Theme collection: github.com/BeardedBear/bearded-theme The font is called Recursive Mono Casual Static
@imnash21
@imnash21 3 ай бұрын
@@frontendfyi Thank you!
@Lemmy4555
@Lemmy4555 3 ай бұрын
I'm waiting for tailwind to support custom class names so that you can do: .my-comp { background-color: red } hello!
@Voidstroyer
@Voidstroyer 3 ай бұрын
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 3 ай бұрын
Fr​@@Voidstroyer
@beomc4539
@beomc4539 3 ай бұрын
So, if Tailwind is becoming more and more like CSS with every version, why not just use modern CSS?
@frontendfyi
@frontendfyi 2 ай бұрын
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.
@maskedvillainai
@maskedvillainai 3 ай бұрын
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 3 ай бұрын
I’m really trying to get your point, but somehow I don’t. Really curious what you mean!
@wishmeheaven
@wishmeheaven Ай бұрын
​@@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)
@Daktyl198
@Daktyl198 3 ай бұрын
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 3 ай бұрын
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 3 ай бұрын
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 3 ай бұрын
@@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 3 ай бұрын
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!
@avwie132
@avwie132 3 ай бұрын
Soooo…. Just css
@statuschannel8572
@statuschannel8572 3 ай бұрын
yeah yeah! without specifiCity iSSue, Class naming iSSue, performanCe iSSue and more
@prashlovessamosa
@prashlovessamosa 3 ай бұрын
Please make some content for KZbin.
@frontendfyi
@frontendfyi 3 ай бұрын
Recorded a new rebuild again. 4,5 hours source material 🙏 On YT soon.
@stephenkamenar
@stephenkamenar 3 ай бұрын
"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 3 ай бұрын
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 3 ай бұрын
@@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
@syed.simanta820
@syed.simanta820 3 ай бұрын
Improve your premium course
@frontendfyi
@frontendfyi 3 ай бұрын
Working on it ❤️ Updates soon!
@ralpha112
@ralpha112 3 ай бұрын
Tailwind is overrated.
@CURIOSITYcapital
@CURIOSITYcapital Ай бұрын
No it is not...i have never used vanilla css after learning tailwindcss
Rebuilding the Apple TV+ Page With Framer Motion And TailwindCSS
2:05:03
Should You Use Tailwind CSS?
7:47
Web Dev Simplified
Рет қаралды 350 М.
ГДЕ ЖЕ ЭЛИ???🐾🐾🐾
00:35
Chapitosiki
Рет қаралды 6 МЛН
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 60 МЛН
100😭🎉 #thankyou
00:28
はじめしゃちょー(hajime)
Рет қаралды 58 МЛН
A pack of chips with a surprise 🤣😍❤️ #demariki
00:14
Demariki
Рет қаралды 33 МЛН
Tailwind V4 Is Bigger Than Expected 👀
20:07
Theo - t3․gg
Рет қаралды 117 М.
How the PROS Use Tailwind
9:55
Frontend FYI
Рет қаралды 42 М.
Use these instead of vh
6:06
Kevin Powell
Рет қаралды 468 М.
This UI component library is mind-blowing
8:23
Beyond Fireship
Рет қаралды 587 М.
Using CSS custom properties like this is a waste
16:12
Kevin Powell
Рет қаралды 158 М.
Tailwind CSS V4 For NextJS, Astro and Vite TODAY
10:43
Jack Herrington
Рет қаралды 14 М.
The Advanced TailwindCSS Crash Course
37:39
Tom Is Loading
Рет қаралды 10 М.
10 Tailwind Classes I Wish I Knew Earlier
13:31
Web Dev Simplified
Рет қаралды 162 М.
Updates Like These Make Tailwind So Fun
8:00
Josh tried coding
Рет қаралды 71 М.
Adam Wathan - Tailwind CSS v4, The Evolution and Technical Journey
1:15:18
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30
📦Он вам не медведь! Обзор FlyingBear S1
18:26
Iphone or nokia
0:15
rishton vines😇
Рет қаралды 1,7 МЛН
Mi primera placa con dios
0:12
Eyal mewing
Рет қаралды 719 М.