Тёмный

Adam Wathan - Tailwind CSS: It looks awful, and it works - Rails World 2023 

Ruby on Rails
Подписаться 8 тыс.
Просмотров 25 тыс.
50% 1

In his talk at #RailsWorld, Tailwind CSS creator @AdamWathan of @TailwindLabs will explain why “separation of concerns” isn’t the right way to think about the relationship between HTML and CSS, why presentational class names lead to code that’s so much easier to maintain, as well as loads of tips, tricks, and best practices for getting the most out of Tailwind CSS.
Links:
rubyonrails.org/
tailwindcss.com/
#RailsWorld #RubyonRails #Rails #railwindcss #tailwind #frontend
Thank you Dell APEX for sponsoring the editing and post-production of these videos. Visit them at: dell.com/APEX

Опубликовано:

 

18 окт 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 68   
@ruslansteiger
@ruslansteiger 8 месяцев назад
Data attributes, data attributes, DATA ATTRIBUTES 😂
@simonswiss
@simonswiss 8 месяцев назад
Great talk, Adam 👊 Also holy crap, you look FIT AF 🔥
@MickaelChanrion
@MickaelChanrion 8 месяцев назад
Right?! 😮
@wkjagt
@wkjagt 7 месяцев назад
It's because he's been doing a lot of the heavy lifting for us.
@bezludny
@bezludny 4 месяца назад
That's what happens when you write a lot of CSS classes.
@mirasmustimov1504
@mirasmustimov1504 8 месяцев назад
Fantastic talk! I found myself enjoying styling html after I started using tailwind. And it is so productive! Love it!
@JacquesvanWyk
@JacquesvanWyk 8 месяцев назад
Tailwind to me does not look ugly. Great job. Learn a few tricks here.
@PensarXYZ
@PensarXYZ 8 месяцев назад
wow! I will use Tailwind for my next project. Super cool demo.
@jp2886
@jp2886 8 месяцев назад
Still not convinced - CSS in HTML so why not just do CSS? And classical Wathan - use divs and ps because why not to ignore semantic tags and screen-readers.
@dream_emulator
@dream_emulator 4 месяца назад
This is another GREAT presentation from this Rails day. Next time I got to be there!
@kengreeff
@kengreeff 8 месяцев назад
So good! So many tricks in this one.
@DenisSoloshenko
@DenisSoloshenko 8 месяцев назад
Great talk!
@switzerland
@switzerland 8 месяцев назад
For the edgy ones out there. I complement bootstrap with tailwind. Tailwind get it's own scope with tw- and I love it.
@tomasvalent3876
@tomasvalent3876 6 месяцев назад
I thought I know Tailwind but every time I watch any of Adam's videos I learn something new 😮( he has a RU-vid channel, I recommend checking it out)
@nabeel-shakeel
@nabeel-shakeel 8 месяцев назад
Nice talk! Really enjoyed it
@krisvanderven2367
@krisvanderven2367 8 месяцев назад
I used it and I love and hate it. I love the utility classes, I hate the readability. I hate how you micro manage the browser, instead of let the browser do the heavy lifting. Probably works great in react where everything is a component, even your link and button. But when it's not, changing the color of a button or a link can be a little more hassle.
@SandyVanderbleek
@SandyVanderbleek 7 месяцев назад
what is he using in vscode for the browser preview? I can't find the extension
@bastost
@bastost 8 месяцев назад
Tailwind is amazing! Thanks!
@FirstWeGolf
@FirstWeGolf 8 месяцев назад
Trying to use it but buggered if I can get it working
@jeffhicks6068
@jeffhicks6068 8 месяцев назад
What VSCode extension is used for the preview?
@codedusting
@codedusting 7 месяцев назад
Search tailwind in extension and look for the official tailwind intellisense one.
@heyimamaker
@heyimamaker 8 месяцев назад
How else can you tell that Adam Wathan is Canadian? Only Canadians would get this reference "It looks awful, and it works"
@xiaohui-dev
@xiaohui-dev 8 месяцев назад
What extension makes erb to be previewable?
@MassimoDeMarchiyolo
@MassimoDeMarchiyolo 8 месяцев назад
I was wondering that too!
@DaronSpence
@DaronSpence 8 месяцев назад
It's the built in VScode preview server. You can tell it to render any arbitrary URL and reload when a file changes.
@xiaohui-dev
@xiaohui-dev 8 месяцев назад
@@DaronSpence at 13:19 I noticed the command is Responsive Preview: Open URL, seems it's not a built in VScode which name is Simple Browser(I guess you were saying this)
@klanowicz
@klanowicz 8 месяцев назад
Please ping me of anyone will find it 🙏
@mooktakim
@mooktakim 8 месяцев назад
Devs that grew up with React are fine with this. Inline all the things.
@dream_emulator
@dream_emulator 4 месяца назад
👏👏👏
@atom6_
@atom6_ 6 месяцев назад
i am using vimesh style - which is fully compatible with tailwind, except it is a javascript library, only 30KB. Together with alpinejs, extremely powerful. No more "building" stuff (which i truly hate).
@rajeshbudhathoki7888
@rajeshbudhathoki7888 8 месяцев назад
Then I got here!
@sheldon98c
@sheldon98c 6 месяцев назад
When I started using flexbox and grid I feel like superman. Than I started using them in tailwind now I feel like Voldemort with infinite powers.
@Raubritterr222
@Raubritterr222 2 месяца назад
The best part of Tailwind -- you don't need to come up with those pesky names for CSS classes!
@_mball_
@_mball_ 8 месяцев назад
I get it. It's an awesome idea, but it still feels hard to maintain consistency. Partials are a good tool, and using this with WebComponents does make sense to me. View Helpers also feel like a good too. Still, I can't help but read the code and have to spend a lot of time parsing the sum total of CSS properties... There's an entirely new syntax of kind-of-but-not-quite class definitions.
@dorstox
@dorstox 8 месяцев назад
This modern frontend styling is making my head spin. I'm a Laravel developer and tried and failed to like tailwind so many times! This video did not win me over. Until something easier comes around, I'll be using bootstrap, bulma or better yet rely on frontend colleagues. It's gotten complicated and there is a lot to memorize, even with the fancy autocompletion of the IDE.
@FranciscoQuintero
@FranciscoQuintero 8 месяцев назад
It's fine. You use what makes you most productive.
@wbjxfkwsklejfde34d
@wbjxfkwsklejfde34d 8 месяцев назад
Interesting talk. Some people find this awesome, and thats great. I've recently inherited a rails/tailwind client and its pretty bad. For example, the developer struggled to maintain consistency, because everything is inlined. Extracting page content into a cms requires deleting all the classes and applying the styles in css. Its more complicated to figure out what has broken when something goes wrong. Stylisticly I'm not a fan, because I dont want my templates extra complicated. Styling/CSS isnt the only thing that needs thinking about in a template and its much better for me to keep that away in a css file, making the erb templates more readable. Just my 2c.
@codedusting
@codedusting 7 месяцев назад
Pretty sure there is some vscode plugin or something out there that can help with this problem...
@wbjxfkwsklejfde34d
@wbjxfkwsklejfde34d 7 месяцев назад
@@codedusting not really no.
@samuelkamau1550
@samuelkamau1550 8 месяцев назад
and that's how i became third😄
@Alex-lu4po
@Alex-lu4po 8 месяцев назад
To me you are first.
@dominuskelvin
@dominuskelvin 8 месяцев назад
I got here first 😌
@cristianbilu
@cristianbilu 8 месяцев назад
Talwindcss is ugly, but readable and declarative. And for me, that’s a win
@MrGeorgeTheCat
@MrGeorgeTheCat 8 месяцев назад
Why not just use the style attribute and have some helper classes for the magic. I would like to see all examples compared to that.
@alexeybobr4537
@alexeybobr4537 8 месяцев назад
It looks like more brutal version of bootstrap for me. Not sure how to memorize all these classes.
@codedusting
@codedusting 7 месяцев назад
You don't. Vscode has a plugin so does prettier for sorting the classes for consistency and jetbrains has its own plugin.
@erictwilegar
@erictwilegar 8 месяцев назад
We have trapped ourselves in a prison made of html and css.
@ScottHillson
@ScottHillson 7 месяцев назад
A horrible solution in need of a problem.
@user-xedwsg
@user-xedwsg 4 месяца назад
correct.
@CraigMcNicholas
@CraigMcNicholas 8 месяцев назад
Thanks I hate it.
@jamescattanach1129
@jamescattanach1129 2 месяца назад
So rails goes to great lengths to provide maintainable html and you've just totally gone against the grain. Perhaps it would be better if you actually understood exactly what Rails is about before presenting this. It's definitely not for me
@railsofficial
@railsofficial 2 месяца назад
Hi James, please keep it friendly. Adam is well aware of what Rails is about. It might not be for you, but he was invited to speak at Rails World and we understood beforehand what his talk was going to be about. - Amanda, Rails Foundation
@jamescattanach1129
@jamescattanach1129 2 месяца назад
Nothing unfriendly to see here 😊
@TheCebulon
@TheCebulon 4 месяца назад
I tried it - and I really, really don’t like it!
@penn_robotics
@penn_robotics 8 месяцев назад
Ah yes, ... certainly WAAAYY more readable than 💍💍💍🎪
@aniforprez
@aniforprez 8 месяцев назад
yes actually
@MickaelChanrion
@MickaelChanrion 8 месяцев назад
6 months later, tell me what css is applied to this without opening the css file that applies its style. Heck, if not even multiple files. Just one of the many benefits from using this mean tailwind! ☺️
@jl789nz
@jl789nz 8 месяцев назад
I don't think any one said it was more readable. Declarative naming also has it's own readability issues. I'm still not fully sold on Tailwind. It does help solve some issues, but it also comes with its own issues. It's trade offs all the way down.
@MickaelChanrion
@MickaelChanrion 8 месяцев назад
I'd say it's not readable but discoverable
@manojlds
@manojlds 8 месяцев назад
​@@MickaelChanriondoesnt it make the html template itself worse. To grok it you need more cycles now.
@mauriciomdea
@mauriciomdea 6 месяцев назад
No, thanks.
Далее
I WISH I Knew These Tailwind Tips Earlier
9:15
Просмотров 173 тыс.
Самое Романтичное Видео ❤️
00:16
Беда приходит внезапно 😂
00:25
Просмотров 612 тыс.
Using CSS custom properties like this is a waste
16:12
Просмотров 161 тыс.
18: You Need Tinker Time with Adam Wathan
1:31:07
Просмотров 1,5 тыс.
How Tailwind CSS came to be feat. Adam Wathan
8:11
Просмотров 22 тыс.
10 Tailwind Classes I Wish I Knew Earlier
13:31
Просмотров 168 тыс.