Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
codeinabox ( codeinabox@programming.dev )  to CSS@programming.devEnglish · 5 months ago

Moving away from Tailwind, and learning to structure my CSS

jvns.ca

external-link
message-square
4
link
fedilink
12
external-link

Moving away from Tailwind, and learning to structure my CSS

jvns.ca

codeinabox ( codeinabox@programming.dev )  to CSS@programming.devEnglish · 5 months ago
message-square
4
link
fedilink
Moving away from Tailwind, and learning to structure my CSS
  • 𝘋𝘪𝘳𝘬 ( Dirk@lemmy.ml ) 
    link
    fedilink
    arrow-up
    5
    ·
    5 months ago

    Good to see this kind of articles. Nowadays there are no real reasons anymore for CSS preprocessors.

    • meowmeow ( meowmeow@quokk.au ) 
      link
      fedilink
      English
      arrow-up
      2
      ·
      5 months ago
      $colors: (
        primary: blue,
        danger: red
      );
      
      @each $name, $color in $colors {
        .text-#{$name} {
          color: $color;
        }
      }
      

      Although, rarely used in such a simple example.

      • 𝘋𝘪𝘳𝘬 ( Dirk@lemmy.ml ) 
        link
        fedilink
        arrow-up
        1
        ·
        5 months ago

        Yeah, it’s sad. People forgot how to use CSS properly.

        • meowmeow ( meowmeow@quokk.au ) 
          link
          fedilink
          English
          arrow-up
          1
          ·
          5 months ago

          There was (and still is) definitely a push when sass came out to make everything “easier” by making it more complex.

CSS@programming.dev

css@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !css@programming.dev
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 5 users / week
  • 53 users / month
  • 178 users / 6 months
  • 9 local subscribers
  • 831 subscribers
  • 333 Posts
  • 120 Comments
  • Modlog
  • mods:
  • Ategon ( Ategon@programming.dev ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code