BEM Class Naming Convention in Webflow

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2020
  • Join my Webflow Wizards Community
    / timothyricks
    In this video, we'll cover how to best name our classes and stay organized in Webflow. Checkout the Webflow blog post on BEM at webflow.com/blog/class-naming.... Checkout the BEM website at getbem.com/naming/
    Try Webflow using my affiliate link below.
    webflow.grsm.io/4840096
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 53

  • @manuelbussmann239
    @manuelbussmann239 3 ปีที่แล้ว +20

    Really good content. I like it when people work clean and systematic.

  • @ctrlaltchris
    @ctrlaltchris 2 ปีที่แล้ว +4

    Good lord man, you're the saviour of Webflowers everywhere. I'm going to be organised as heck after this.

  • @bailey6759
    @bailey6759 3 ปีที่แล้ว +2

    Thanks Tim! As usual, so helpful! Keep em coming 😊

  • @patshepherd618
    @patshepherd618 2 ปีที่แล้ว +2

    So handy, this is exactly what I was needing to learn. Legend!

  • @lalucacreative
    @lalucacreative 3 ปีที่แล้ว +2

    V clearly explained and super helpful. I'm so grateful to have come across your videos - thanks!!

  • @karsongrady
    @karsongrady 3 ปีที่แล้ว +2

    Just amazing content. I have been binging it...please keep it up if it continues to be what you love to do!

  • @thewebart
    @thewebart 3 ปีที่แล้ว +3

    Great tutorial. Thank you very much!

  • @Stuartsmith04
    @Stuartsmith04 3 ปีที่แล้ว +26

    This is honestly the most helpful video mate thank you. Naming is what’s made finishing my sites so drawn out and painful!

  • @Enzocol89
    @Enzocol89 3 ปีที่แล้ว +5

    Wow 🤩 this was super helpful, I’ve been wondering how to structure the class naming for a while. Thank you 🙏 for your great contribution 👍🏻

  • @simongustafsson348
    @simongustafsson348 3 ปีที่แล้ว +4

    You truly make me a better webflow designer :)

  • @dumuniz
    @dumuniz 2 ปีที่แล้ว +1

    Suuuuper helpful! Thanks Timothy

  • @allenkuntelebi
    @allenkuntelebi 3 ปีที่แล้ว +1

    Thanks Tim! awesome video 🙏🏽🙏🏽🙏🏽

  • @gabriella2186
    @gabriella2186 2 ปีที่แล้ว

    The quality of your videos 👌🏼👌🏼

  • @king_m
    @king_m 3 ปีที่แล้ว +1

    Very helpful Timothy.

  • @bryanmanio_
    @bryanmanio_ 3 ปีที่แล้ว +4

    Oh nice! Thanks for taking my suggestion!

    • @timothyricks
      @timothyricks  3 ปีที่แล้ว +1

      Thank you for the great idea!

  • @andr3asunshine
    @andr3asunshine 3 ปีที่แล้ว

    I needed this. Thank you!

  • @RichardReynolds
    @RichardReynolds 3 ปีที่แล้ว

    Really helpful! Thanks Mrs.

  • @volodymyrsymchuk6762
    @volodymyrsymchuk6762 ปีที่แล้ว +1

    This is super helpful! Thank you

  • @adarshgoldar
    @adarshgoldar 3 ปีที่แล้ว +1

    Nice tutorial 😊
    Keep uploading more videos.

  • @mindfulmagician7550
    @mindfulmagician7550 3 ปีที่แล้ว +3

    Thanks so much for creating this video! I wish I had watched it before this major project that I'm doing. But better late than never!

    • @timothyricks
      @timothyricks  3 ปีที่แล้ว +2

      Glad this is helpful! Hope it can help on your next project!

  • @bazildesiles
    @bazildesiles 3 ปีที่แล้ว +2

    That is so helpful, thanks a lot ! 🙏

  • @michaelmirchandani9805
    @michaelmirchandani9805 2 ปีที่แล้ว

    yea thanks for this vid T.Ricks! the biggest problem I have with webflow tutorials is class naming is not often structured or explained, by the end of the lesson its a mess of classes u will nevr remember, this is exactly what I was looking for to help make classes make sense, thanks!! :D

  • @Sofia-lace
    @Sofia-lace 3 ปีที่แล้ว +1

    very helpful, thank you!

  • @gibsgibus
    @gibsgibus 2 ปีที่แล้ว +1

    really helpful, thank you !!

  • @yash7630
    @yash7630 3 ปีที่แล้ว +4

    Really greattttttt Video... Super helpful....Specially the caps part I didn't know that.
    can you breakdown this project in-depth if possible I saw this on webflow showcase it was super cool
    love your work

  • @Salmansalah90
    @Salmansalah90 6 หลายเดือนก่อน +1

    So soo good. Thank you!

    • @timothyricks
      @timothyricks  6 หลายเดือนก่อน

      So glad this helps!

  • @tidragos
    @tidragos 3 ปีที่แล้ว +2

    great content, thank you!! subscribed!

    • @timothyricks
      @timothyricks  3 ปีที่แล้ว

      That’s great to hear! Thank you

  • @walisonmartinsw
    @walisonmartinsw 3 ปีที่แล้ว +1

    Thank you!

  • @merittthomas
    @merittthomas 2 ปีที่แล้ว +4

    Super helpful-thank you! Why two underscores instead of one?

    • @user-yi6hf6hf4r
      @user-yi6hf6hf4r 6 หลายเดือนก่อน

      I have the same question: Why 2 underscores?

  • @alvarobeleza
    @alvarobeleza 3 ปีที่แล้ว +1

    Thanks!

  • @hal-zeitlin
    @hal-zeitlin 3 ปีที่แล้ว +1

    DUDE YES

  • @clickryanG
    @clickryanG 3 ปีที่แล้ว +3

    Thanks, quick question.... why double underline in some places and a single underline elsewhere...Same with dash - being used twice? Isn’t this just more work, keystrokes that can go wrong?

    • @timothyricks
      @timothyricks  3 ปีที่แล้ว +4

      Great question! That’s the standard with BEM to create visual difference. If you had a class called main-nav__logo-img, it’s easier to see which part is the block and which part is the element if there is more separation. But I definitely recommend using whatever makes most sense to you.

  • @normthomas5028
    @normthomas5028 3 ปีที่แล้ว +1

    Is "C" meaning component? ex. c-hero, c-nav. Thanks always!

    • @timothyricks
      @timothyricks  3 ปีที่แล้ว

      Yes, the c stands for component.

  • @rimoros.1020
    @rimoros.1020 3 ปีที่แล้ว +1

    BEM is really good in my opinion, but I do have one question though, what about things that are only used in one page?

    • @timothyricks
      @timothyricks  3 ปีที่แล้ว

      Good question! Each component gets a unique name so it's okay if it's only used on one page. We name elements based on the group or section that they're inside of so that the section can be reused easily on other pages or just left on one page.

  • @baron5978
    @baron5978 ปีที่แล้ว

    I do this but without the underscores. Why should I use the underscores?

  • @Enzocol89
    @Enzocol89 3 ปีที่แล้ว

    Does the renaming unlinks or effect the animations already made?

    • @timothyricks
      @timothyricks  3 ปีที่แล้ว +2

      It’s not suppose to! Could back it up before just in case

  • @lewistony
    @lewistony ปีที่แล้ว

    What mic is he using?👀

  • @cweb1988
    @cweb1988 ปีที่แล้ว

    why two underscores?

  • @kevynlevine
    @kevynlevine 3 ปีที่แล้ว +3

    Why two underscores?

    • @timothyricks
      @timothyricks  3 ปีที่แล้ว +3

      That’s the way it’s written on the BEM website. I think it just creates extra separation visually between the block and element. It definitely feels like an extra step though. Wouldn’t mind just using one personally

    • @MrFrothunda
      @MrFrothunda 3 ปีที่แล้ว +2

      @@timothyricks just read in stackoverflow and this is the reason why "This is done because some people might name their block like this main_nav which will create confusion with single underscore" so if you're naming your block mainnav (together) than using just one underscore is fine.

    • @timothyricks
      @timothyricks  3 ปีที่แล้ว

      @@MrFrothunda Ah, that makes so much sense! Great to know!

  • @user-xl8nx4hm8i
    @user-xl8nx4hm8i 2 ปีที่แล้ว

    using global class for modifier is a mistaken interpretation of original methodology, also it will create more problems. If you're not careful enough and doing some things in global class - that will affect every instance with that modifier and you can notice it too late. I would stick to local combo class for modifiers since they should not contain ambiguous properties.

  • @yash7630
    @yash7630 3 ปีที่แล้ว +2

    I know webflow is a no code tool but people use custom code integrate webgl/Gsap and make awesome webfite through webflow..I found no major video on youtube regarding this cause people mainly focus on no-code. It would be a great video to make if you can