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

Поділитися
Вставка
  • Опубліковано 9 лип 2024
  • Figma components received some huge updates in the last several months. In a recent video, I walked through the new updates. Here, I'll put it in practice by building out a card component.
    Try Figma: bit.ly/figma-cip
    📹 Related Videos 📹
    - Component Video: • New Figma Components 1...
    - Figma for Developers: • Figma for Web Developers
    ---------------------------------------
    ⏲️ Timestamps ⏲️
    0:00 Introduction
    1:11 Creating the Button Component
    8:49 Creating the Badge Component
    11:03 Creating the Card Component
    20:56 Using the Card Component
    ---------------------------------------
    🌐 Connect With Me 🌐
    - Website: codinginpublic.dev
    - Blog: chrispennington.blog
    - Twitter: / cpenned
    - Patreon: / coding_in_public
    - Buy Me a Coffee: www.buymeacoffee.com/chrispen...
  • Навчання та стиль

КОМЕНТАРІ • 93

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

    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.

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

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

  • @MilanB
    @MilanB Рік тому +4

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

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

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

  • @leilaazmand4946
    @leilaazmand4946 7 місяців тому

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

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

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

  • @cryptoengineerq831
    @cryptoengineerq831 8 місяців тому

    sooooooo useful, thank you for explaining so well brother

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

    Ah man, such a great video!

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

    🤝 thanks! Clean, useful lesson!

  • @sae-heeshin8548
    @sae-heeshin8548 Рік тому

    This is so useful! Thank you!

  • @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!

  • @fatemefadaei7729
    @fatemefadaei7729 7 місяців тому

    Wow, Lovely! thank you✨

    • @CodinginPublic
      @CodinginPublic  7 місяців тому

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

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

    thank you for this great tutorial!

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

    awesome tutorial ! thanks

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

      Glad toy enjoyed it. Thanks for saying something!

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

    Honestly nobody else can teach components and variants like you!

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

    Awesome tutorial, tnx

  • @user-tp2nc9so4u
    @user-tp2nc9so4u Рік тому

    lucky to find this tutorial!~

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

    Thanks Chris! Thanks a lot!!!

  • @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

  • @animehubking1537
    @animehubking1537 11 місяців тому

    thank you very very much it was really helpfull

    • @CodinginPublic
      @CodinginPublic  11 місяців тому

      You're welcome! Thanks for saying something!

  • @Nasrin.Designer
    @Nasrin.Designer 9 місяців тому

    Thanks its really help me a lot

  • @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 🙏

  • @user-tp2nc9so4u
    @user-tp2nc9so4u Рік тому

    Thank you~

  • @digiratimax
    @digiratimax 3 місяці тому

    Thanks!

  • @_the_one_1
    @_the_one_1 Рік тому +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  Рік тому +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 Рік тому

      @@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  Рік тому +1

      Thanks for the encouragement!

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

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

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

      Wow nice!

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

    Damn sir you are such good teacher!

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

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

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

      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  Рік тому

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

  • @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!

  • @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!

  • @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?

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

    This is amazing! please more of the design things... "prototype apps websites" Thank You.

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

      More work in Figma in particular? I haven't done that much on my channel because I definitely don’t have any design training and just “do whatever feels right”? haha. I'm pretty sure I shouldn't be teaching HOW to design, but I'm happy to just show what I do?

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

      @Coding in Public hi, yes on Figma, I'm a designer myself. It would be cool if you can share from you're prospective as a developer, Thanks.

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

      Sure thing :) Just no judging my designs 🤣

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

      @Coding in Public can't guarantee that.... 😁🤓

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

      🫣

  • @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!

  • @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.

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

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

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

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

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

      @@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.

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

    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  Рік тому

      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.

  • @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?

  • @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.

  • @nguyenhiep9868
    @nguyenhiep9868 7 місяців тому

    7:10 Boolean

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

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

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

    How to make a card no longer a component?

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

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

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

      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.

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

    Booleans are very confusing in Figma.

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

      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 Рік тому

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

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

      Thanks for the kind words!