104
submitted 9 months ago* (last edited 9 months ago) by rimu@piefed.social to c/webdev@programming.dev

This study compares two websites with similar design: the commercial Spotlight template from developers of Tailwind vs the same site with semantic CSS.

you are viewing a single comment's thread
view the rest of the comments
[-] spartanatreyu@programming.dev 1 points 9 months ago

Tailwind is only feels like a successor to CSS to developers writing css like it was 10 years ago (or using frameworks that write it like that, e.g. bootstrap), or projects not using visual regression testing.

Modern css is so much better.

  • Want to position, overlap, or align things? Use CSS Grid.
  • Are you using a CMS or component system and want to change the order that CSS is applied? Use Cascade Layers.
  • Want to have resizeable components? Use component queries.
  • Want to make a change all through your site? Use custom properties.
  • Want to style things differently based on how many other elements are inside or around it? Use :has(), +, ~, nth-..., ... selectors.

If you're using something like BEM, or bootstrap to make columns, your knowledge is way out of date and you're doing it wrong.

this post was submitted on 13 Mar 2024
104 points (92.6% liked)

Web Development

3453 readers
1 users here now

Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development

What is web development?

Web development is the process of creating websites or web applications

Rules/Guidelines

Related Communities

Wormhole

Some webdev blogsNot sure what to post in here? Want some web development related things to read?

Heres a couple blogs that have web development related content

CreditsIcon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 2 years ago
MODERATORS