Can you recommend a CSS framework that feels lean and modern like Pico CSS but isn’t only targeting small form sites?

  • FishFace@piefed.social
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    3
    ·
    8 months ago

    I understand that restaurants allow you to eat without cooking. But what does a CSS framework save you? You still have to write stuff to get the design you want, and you still have to come up with the design. Feel free to explain rather than drop another analogy…

    • con_fig@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      8 months ago

      I am primarily an embedded software engineer. However every now and again I have to write small web apps, having a CSS framework allows me to style it with pre-made classes saving me a boatload of work and learning and having the result look good.

    • refalo@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      8 months ago

      Some (many) people find it easier to learn a small number of predefined class names that accomplish what they want without having to know hundreds of different CSS incantations when they’re just trying to make a simple site.

      Sorta like how people use a command-line instead of just writing the code themselves.

    • Zos_Kia@lemmynsfw.com
      link
      fedilink
      arrow-up
      1
      ·
      8 months ago

      A CSS framework allows you to not write any CSS! You just add utility classes to your html. I personally use tailwind and I guess there’s some advanced stuff where you’d have to still write CSS yourself but for most use cases it’s a lot easier. Flex layouts, notably, are a breeze.

        • Zos_Kia@lemmynsfw.com
          link
          fedilink
          arrow-up
          1
          ·
          8 months ago

          Pretty much yeah, with shortcuts for frequent sizes, colors etc (which you can theme). I guess it’s mostly interesting if you use react, as you can have everything inside components and switch classes in your code. I wouldn’t say it makes things categorically better but it does lighten the cognitive load somewhat and the auto complete is fire.