No video

Utility First CSS Isn’t Inline Styles | Sarah Dayan | CSS Day 2024

  Рет қаралды 4,587

Web Conferences Amsterdam

Web Conferences Amsterdam

Ай бұрын

All sessions are available right now for our Early Adopter members, and we'll make a talk available for everyone each week: / @webconferencesamsterdam
--
Slides: noti.st/sarahdayan/clOedj
About Sarah: frontstuff.io
More about CSS Day: cssday.nl or / cssdayconf
Receive conference announcements in your inbox: cssday.nl/subscribe

Пікірлер: 23
@radadadadee
@radadadadee Ай бұрын
When people compare utility classes with inline styles, they're not referring to the limitations of inline styles. Obviously utility classes are much more powerful. The comparison is usually about overloading the html with dozens of classes for each element. One has to write so many classes that one cannot help but feeling one's writing CSS directly inside html, very much like with inline styles. Instead of constructing the way an element looks like on the css file (where it should be), one is building the appearance directly into the html. How does this element look like? Instead of checking the css file, I need to look both to tailwind docs AND the html!
@robinheyer708
@robinheyer708 Ай бұрын
15:50 It's actually the framework's breakpoints for responsiveness that is usually my biggest annoyance. You get ease of use but you also get someone else's design choices. Otherwise I'd probably have been a tailwind zealot by now.
@SarahDayanDev
@SarahDayanDev Ай бұрын
You can change them 🙂
@yatharthx
@yatharthx Ай бұрын
The reason tailwind.config.js exists. 😬
@riceputiGiandomenico
@riceputiGiandomenico Ай бұрын
My god ❤
@cguser
@cguser Ай бұрын
there's always more to CSS, many ways to write and design better software
@ft2bme
@ft2bme 25 күн бұрын
Just to get rid of the usual utility CSS straw man, I maintain a project that uses scss, and actively develop one using Tailwind CSS. This “dozens” of classes has never happened to me (I’m sure it’s happened to some). In most cases I have a couple to a handful of classes on one element. In extreme cases I might have around 10. If Tailwind CSS can’t handle some new CSS feature, it’s easy to develop your own utility classes that use the new feature. I also notice Tailwind CSS encourages people to break React components into smaller, simpler components to avoid repeating Tailwind CSS strings. I’d argue that’s usually a good thing. Unlike many commenters here, however, I will **NOT** argue that my way is the only way, and others’ ways are wrong or stupid. In fact, if I had learned an interview candidate had that attitude, I’d insist on not hiring them. I like scss, and I like Tailwind CSS more.
@MikeMai
@MikeMai 26 күн бұрын
This is a good talk, but I have one critique. Bringing in "atomic css vs semantic css" dilutes your talk. I much rather this sticks to the topic "utility first CSS vs inline styles".
@MikeMai
@MikeMai 26 күн бұрын
This is the most confusing part of the talk for me: `.clearfix` is a utility class, but it is not atomic. if you make it atomic, it would be this `.after:table.after:clear-both.after:content-['']` (i am not a tailwind expert, this is just an example to illustrate the point, not the actual classes). I think this section would lose some viewers because it is kind of off topic.
@Turabbo
@Turabbo 26 күн бұрын
I'm gonna have to respectfully disagree with this one. The issue with inline styles isn't that you can't conditionally target psudo states. It's that you've effed up your HTML
@JoepKockelkorn
@JoepKockelkorn 22 күн бұрын
How is using utility classes f’ing up html different from using ‘semantic’ classes? Or what is the better alternative?
@MutantNinjaDonut
@MutantNinjaDonut 18 күн бұрын
Watch the video rather than just reading the title before commenting in the future.
@saintpumpkin
@saintpumpkin 21 күн бұрын
I'm using utility classes so yea, they can be cool, but I will never use a bloated framework like tailwind which take the concept to the extreme.
@MutantNinjaDonut
@MutantNinjaDonut 18 күн бұрын
It’s evident you’ve not used it if you think it’s bloated. Tailwind only outputs what you use.
@mrdmajor
@mrdmajor Ай бұрын
I don't understand why all the performance-obsessed developers are OK with mucking up HTML with wild inline CSS or ridiculous "utility" class frameworks with CSS pre-processers out there. The Idiocracy movie is reality now.🤷‍♂
@SaroVerhees
@SaroVerhees Ай бұрын
Wdym? Inline styles are the fastest way for a client to load css :)
@mrdmajor
@mrdmajor Ай бұрын
@@SaroVerhees Do your own research on the HTML protocol purpose, user agents, external CSS, and caching.
@KristianTheDesigner
@KristianTheDesigner Ай бұрын
because it is not an issue anymore, its just an ”issue” now that people for some reason still love to complain about like an old girlfriend.
@mrdmajor
@mrdmajor Ай бұрын
@@KristianTheDesigner This substantiates the point. The same "developers" who are obsessed with performance, memory usage, file sizes, and optimized large applications have 0 issue with unnecessarily bloated and poorly structured HTML shipped over browsers, and call folks "boomers" and "old girlfriend" 🤔🤷‍♂.
@SaroVerhees
@SaroVerhees Ай бұрын
@@mrdmajor Also I still prefer CSS, but I don't call people who like tailwind idiots :)
Character Modeling in CSS | Julia Miocene | CSS Day 2024
48:54
Web Conferences Amsterdam
Рет қаралды 2,2 М.
Start over-engineering your CSS | Kevin Powell | CSS Day 2024
50:28
Web Conferences Amsterdam
Рет қаралды 2,7 М.
Bony Just Wants To Take A Shower #animation
00:10
GREEN MAX
Рет қаралды 4 МЛН
If Barbie came to life! 💝
00:37
Meow-some! Reacts
Рет қаралды 41 МЛН
ПОМОГЛА НАЗЫВАЕТСЯ😂
00:20
Chapitosiki
Рет қаралды 22 МЛН
Problems solved by OpenType | Roel Nieskens | CSS Day 2024
51:15
Web Conferences Amsterdam
Рет қаралды 1,3 М.
The Unbearable Weight of Massive JavaScript | Ryan Townsend | performance.now() 2023
52:48
Interview with Senior JS Developer 2024 [NEW]
6:45
Programmers are also human
Рет қаралды 519 М.
Learn CSS Flexbox in easy way
5:05
cssiseasy
Рет қаралды 25 М.
Every Framework Sucks Now
24:11
Theo - t3․gg
Рет қаралды 130 М.
Web Design Engineering With the New CSS | Matthias Ott | CSS Day 2024
51:14
Web Conferences Amsterdam
Рет қаралды 8 М.
What's Coming Next to JavaScript? by Nicolò Ribaudo
31:58
A new approach to container and wrapper classes
25:27
Kevin Powell
Рет қаралды 252 М.
Bony Just Wants To Take A Shower #animation
00:10
GREEN MAX
Рет қаралды 4 МЛН