Comment on What are your thoughts on Skeleton(Svelte)?

<- View Parent
Hexarei@programming.dev ⁨1⁩ ⁨year⁩ ago

Tailwind is an unrelated project, that’s just used by this one.

Basically, TailwindCSS is a combination of two things:

  1. A huge set of “utility” CSS classes that apply consistent, basic styles, with tons of handy conventions for stuff like colors, shadows, border-radii, spacing - and it even lets you target them to hover state, active state, disabled state, users with prefers-color-scheme set to dark, etc.
  2. A JIT-compiled system of creating one-off CSS by just writing the name of a not-yet-existent utility class.

The main benefits, I find, are mostly:

Tailwind focuses on coupling your styling to your HTML by using tiny, focused, glanceable utility classes (<div></div>) rather than by needing to create a ton of potentially-confusing “semantic” classes^[1]^ (<div></div>).

There are tons of classes in it, and I’ve found it to be super useful. Want to center something, horizontally and vertically? Here’s how in Tailwind:

<div>
    <div>I'm centered!</div>
</div>

And if you need a one-off specific setup - something like display: grid; grid-template-columns: 30px 1fr 1fr 20px, you can do it with the JIT as such: `

source
Sort:hotnewtop