How to Create a Card Component in Figma (Variant, Boolean, Instance Swap, and Text)

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

КОМЕНТАРІ • 89

  • @pozup1596
    @pozup1596 Рік тому +25

    You did what Figma couldn't do despite being the creators. The problem with their 'tutorials' is that in an effort to be stylish, and professional - they completely fail to show the concepts in action. Thanks for breaking down one of the more advanced, and extremely confusing parts of Figma. Wish I saw this video starting out, thanks Chris!

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

      So glad it was clear!

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

      Their videos are completely fine just like this one.

  • @xGSTQ
    @xGSTQ 2 місяці тому +1

    Thanks Chris, as a newbie to Figma, I learnt a lot from this video

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

    It's always better to start from scratch. Thanks mate for making tutorials like that, much easier to follow.

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

      Sure thing. You’re welcome! Thanks for saying something!

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

    Honestly nobody else can teach components and variants like you!

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

    This is the tutorial I have been trying to find for weeks. Thank you!

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

    In computing, the term Boolean means a result that can only have one of two possible values: true or false. Boolean logic takes two statements or expressions and applies a logical operator to generate a Boolean value that can be either true or false. Hence why Figma uses Boolean and not Visible. Enjoyed the tutorial

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

    It was the most informative video I've come across for learning about card components and variants. Truly excellent!

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

    I have subscribed and turned notifications on many YT channels but yours.... It's on another level! Coding and Design? That's awesome man, thank you. Keep it up!

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

      🙏 very kind of you :) I don’t know that I consider myself a true designer or developer, but I’m hopeful talking through what I’m learning in public can be helpful to others ☺️

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

      @@CodinginPublic yeah I feel the same even though I know a couple of things in both design and code. But definitely keep posting about design and code, I love this and have learned new things. Thank you

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

      Thanks for the encouragement!

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

      There is a new feature "expose component instances" which is great. See: ua-cam.com/video/HTJA9CrCATs/v-deo.html

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

      Wow nice!

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

    this video is a gold mine for me... thank you for your time and knowledge...

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

      So glad you enjoyed it. Thanks for taking the time to say something!

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

    Am becoming better by watching ur videos.
    Thank you for the effort you put in
    Your video are now my to go resources when am stuck 🙏

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

    Best tutorial ever.
    Could you just say to me why when I place my Indicator on the corner of card goes out of Card layer , even with absolute position, and then I cannot make layer boolean for indicator ???

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

      Glad it was a help! I don't know that I understand your question. Could you try to ask it again? Thanks!

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

    I thinkI may have figured it out. I am still learning all this.. but the boolean icon seems to only show when an element it nested in parent component.

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

    I am at the part where you are adding a layer boolean property to the badge and I don't see the boolean icon to select it order to get the property panel. Why is it not there? Ugh so frustrating

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

      Hmm. You need to make sure the item you’re trying to show/hide is part of the component. I did another video on my channel introducing these and go into a little more detail there. Might be worth checking that out?

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

    sooooooo useful, thank you for explaining so well brother

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

    Thank you so much for clarifying how coding applies to design like boolean is created in Layer when something has to do with visual on and off switch. When does designer should use Clip the Content? sometimes Figma automatically creates it when I add the frame to several components. A lot of animation prototyping tutorial use Clip the content first before any button reacting animation. Is it working like a retainer or group?

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

      My understanding is that clip content works like overflow: hidden in CSS? I think that's right?

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

    Awesome video! Your explanation is the best! Thanks a lot!

  • @andreapaolapinzonbarbosa9278

    Hi, thank you for your videos is helping me a lot, I have a question, how do you manage variants with cards?

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

      Glad you enjoyed it! I am not sure I understand your question? Do you mind explaining a bit more? Thanks!

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

    Great tutorial man! Followed it to the T. I just faced the same issue you showed at the end 21:23 where the space was remaining when hiding the image and badge. How do you fix that?
    Love the work man I learnt so much in just 20 minutes

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

      Great! I'd fix it by setting a fixed height and width on the icon that is the same as my font height. That way whether it's visible or not, the size would stay the same. Hope that helps!

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

    Ah man, such a great video!

  • @AnneSong-d8u
    @AnneSong-d8u Рік тому

    lucky to find this tutorial!~

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

    Thanks Chris! Thanks a lot!!!

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

    Wow, Lovely! thank you✨

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

      You’re very welcome! So glad you enjoyed it! ☺️

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

    thank you for this great tutorial!

  • @sae-heeshin8548
    @sae-heeshin8548 2 роки тому

    This is so useful! Thank you!

  • @Nasrin.Designer
    @Nasrin.Designer Рік тому

    Thanks its really help me a lot

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

    Damn sir you are such good teacher!

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

      That’s very kind. Glad you enjoyed the video!

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

      I've been battling the longest time with that, did a course, watched tutorials, couldn't grasp it. Finally with your tutorial I had a light bulb moment. Thank you.

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

      I’m so glad it was such a help! That’s so encouraging to hear. Thanks for sharing!

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

    Anyone else having their icon dimensions altered when you switch icons for the button? Is there a setting to keep the proportions and either resize the button or resize the icon?

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

      This comes from having your icon height taller than your font size. I can think of three solutions: 1) increase your font size to be the same as the icon height 2) shrink the icon height to the same height as your font size or 3) set a fixed height on the button component. Let me know if that doesn't make sense.

  • @h.b.1315
    @h.b.1315 Рік тому

    Quick question! I've done an auto layout for 3 cards arranged horizontally. These 3 cards have varying width sizes. In order for them to behave responsively, I set the width and height to fill (that worked perfectly for the pervious row of 4 cards the same size). But now, when I set them to fill, Figma enlarges the thin card so it's equal in width size to the other cards it's in auto layout with.I don't want that but "fixed" and "hug" keep the cards stagnant when shrinking the screen. I've been trying to problem solve this for over 20 hours and can't find a youtube video or article that addresses this. If you have any suggestions at all, I would really, really appreciate it.

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

      Sorry for my delay here, HB. Hmm…any chance you could send me a copy of the project? Hard to visualize. chris@codinginpublic.dev works or Twitter DM.

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

    Awesome tutorial, tnx

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

    thank you very very much it was really helpfull

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

    🤝 thanks! Clean, useful lesson!

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

    Great! Would be interesting to see how exact this card could be recreated in code and is responsible

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

      I'd have to choose some kind of tech stack. Right now, I'd use Astro or React. Have a preference?

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

      @@CodinginPublic I only work in pure vanilla and html/css and lately learn svelte but anything your prefer. Mostly would be exceptional helpful to see the next step to implement this card to finish code. So anything you prefer.
      P.S. I discover that when I hide both the badge and the image the card don't shrink as the image leave a kind placeholder frame. If I remove the Auto-layout off those two, everything work just fine.

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

    awesome tutorial ! thanks

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

      Glad toy enjoyed it. Thanks for saying something!

  • @AnneSong-d8u
    @AnneSong-d8u Рік тому

    Thank you~

  • @Fad-kun
    @Fad-kun 3 місяці тому

    Thank you

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

    I have NO IDEA how you created the sold pill shape???

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

      Just increase the border radius to something like 50 or 100 in the right-hand sidebar. Let me know if that doesn't make sense.

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

    7:10 Boolean

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

    How to make a card no longer a component?

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

    FIGMA IS GETTING MESSIER WHERE I GAVE UP.. BUT U EXPLAINING WELL

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

    Booleans are very confusing in Figma.

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

      I did a more in-depth video on components, including Booleans, that may be a help: ua-cam.com/video/Z3In89pq8x4/v-deo.html

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

      @@CodinginPublic Thanks. Really appreciate your high quality tutorials. 👍

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

      Thanks for the kind words!

  • @digiratimax
    @digiratimax 9 місяців тому

    Thanks!