Building scalable variants in Figma using `.base` components

Поділитися
Вставка
  • Опубліковано 18 жов 2024

КОМЕНТАРІ • 22

  • @CarlosAndresVelasquez
    @CarlosAndresVelasquez 2 роки тому +5

    Hi Ridd, it would be nice to have a step by step video on create these components, subcomponents, and variants. I am still having a hard time working through the prompt on the course.

  • @Pankhuri910
    @Pankhuri910 Рік тому +1

    Hi Ridd, It was an informative video. If possible, Could you please make a video on how you created all the base components which were shown in the video. Thanks in advance

  • @akintugay
    @akintugay 2 роки тому +1

    Thank you, Ridd! Your content is really helpful and useful.

    • @ridd
      @ridd  2 роки тому

      Glad to hear it!

  • @pablobellver3357
    @pablobellver3357 Рік тому

    Hey Ridd and how can I proceed if I want to delete a .base components without losing the overrides on the instances on icons and texts?

  • @safsafaf2838
    @safsafaf2838 2 роки тому

    awesome tutorial, thanks

  • @frankvasquez4827
    @frankvasquez4827 2 роки тому +1

    This is very helpful, I knew this "process" by naming these "base components" as "Masters", but I've always had this question, is it a good practice to have hidden layers in your .base/master components? If you are duplicating that instance many many times, all of those instances will contain hidden layers. I do that because sometimes it gives me the flexibility to override the instance without creating a new variant, but I'm suspecting that's the reason my files filling up so quickly (I often get this yellow banner at the top saying that I already used 2GB of max file size) and navigating the files can be a tedious task :c

    • @ridd
      @ridd  2 роки тому +2

      Ya ideally instead of hiding layers you can create subcomponents.
      So let's say you have a slightly different combination of icons/images for a disabled state... Instead of hiding all of them. You could create a "CardImagery" (needs a better title lol) subcomponent that is nested in your .base.
      Then you could toggle between what you need at the subcomponent level using the variants menu which is a bit more straightforward and less bloated than hiding a bunch of layers.
      Hope that makes sense!

    • @frankvasquez4827
      @frankvasquez4827 2 роки тому

      @@ridd ohhhh, this is interesting! 🤯 Thank you!

  • @darivadeneyra
    @darivadeneyra 2 роки тому +1

    Your content is very usefull, thantk you!

    • @ridd
      @ridd  2 роки тому

      Glad it's helpful!

  • @Naz-yi9bs
    @Naz-yi9bs 2 роки тому

    Hey, thank you for this video and the other videos. Plan is to get into the course, in the meantime. Figma now allows you to change the text when the main component is within the variant set. However, when you adjust that main component the variants don't readjust in size or if you change the color the variants don't follow. But if you make your main component outside of the variant set, when you adjust the size/color all the variants copy. I am guessing, it's still worth having the base component outside of the variant set?
    Thank you in advance.

    • @ridd
      @ridd  2 роки тому

      Working on an update about this now :)

  • @iainbrady9726
    @iainbrady9726 2 роки тому

    Super helpful video (and community file) one question, how do devs like working with this approach? Do they see a whole bunch of hidden layers and question everything?

    • @ridd
      @ridd  2 роки тому +1

      Admittedly this file is going on ~6 months now :) I rarely use hidden layers now. Instead, I create subcomponents with variants to be able to switch between sub-states. That definitely helps dev collaboration. In fact, in Figma Academy one of the prompts is to take this hidden layer example and turn it into a subcomponent variant set.

  • @anoldasgupta
    @anoldasgupta Рік тому

    But base components are no longer required with the current update, can you please make a video on how to set up the components file with this new update...

    • @ridd
      @ridd  Рік тому

      Yup! Check out some of the newer videos on component properties :)

  • @GeorgeLathem
    @GeorgeLathem 2 роки тому

    soooo what if you have made a component and you want to now create a base component and attach that component to the base component b/c you just learned about base components and you don't want to go back and replace them everywhere

    • @ridd
      @ridd  2 роки тому

      You could get really hacky with the Master plugin. But honestly... in a post component properties world, it's probably not worth it now :)

  • @JoxnieD
    @JoxnieD 2 роки тому

    Hey, is this a part of the Figma Academy on Figma? Can I access these files over there?

    • @ridd
      @ridd  2 роки тому +2

      The "Building scalable variants" in the Design System module is kind of a more polished version of this video :)
      But this specific file is available in the Figma community! www.figma.com/community/file/946766673072149394/Mighty-Fine-Variants

    • @JoxnieD
      @JoxnieD 2 роки тому +1

      @@ridd Thank you very much!