From Figma Units to CSS for Pixel Perfect Layouts - 2 Methods

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

КОМЕНТАРІ • 45

  • @DesignCourse
    @DesignCourse  2 роки тому +4

    Hey all. Check out designcourse.com/css and enter your email to be notified when my new CSS course releases in less than 2 months!

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

      Sir kindly make a video on Enterprise Web Application Design...how and where to learn and from where to start from scratch. thank you

  • @CodeNascher_
    @CodeNascher_ 2 роки тому +33

    i use a simple sass function:
    @function rem($px) {
    @return #{$px / 16}rem;
    }
    then I can say
    width: rem(160); // width: 10rem;

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

    Just found a $20 in an old backpack. Now I have enough for the course. Got the course! Love what you do brother. Thanks!

  • @isnintendo8656
    @isnintendo8656 2 місяці тому

    This explanation is awesome!! simple and briefly

  • @RodrigoRodriguez-gg5ur
    @RodrigoRodriguez-gg5ur 2 роки тому +11

    Nice video! Just a small advice, it isn't always better to use rem in margins and paddings for accessibility purposes because it reduces the available space for text or other elements to be displayed. I found out by experience that is usually better to only use rems for font-sizes in heavy text websites like blogs.

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

    this is what we've waiting for , more content like this 💯

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

    Very simple to understand and useful topic.

  • @kyler.6645
    @kyler.6645 2 роки тому +8

    "so you don't have to deal with math.." I love your content man and I know you're skilled but you say some of the most wild stuff off the top sometimes.

  • @noahdiez9400
    @noahdiez9400 Рік тому +2

    Amazing content. I would love to see how front devs convert and work with the grid layout from Figma, and apply it in their web design work.

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

      Yes!!! I’ve been searching for those type of videos!!

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

    This trick is awesome! Thanks for sharing it with us.

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

    great stuff. the way you teach about design makes things a lot easier to understand.

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

    I still don't get this stuff sometimes. I see and have worked with many designs for example where a font-size might go up 20% but the padding or margin will increase by 50% on a larger device. So then all these units relative to font-size get broken.. it almost never works out as conveniently as planned. anyone have a good video that walks through the entire figma handoff -> dev process?

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

    Your content is absolutely amazing btw

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

    Love when you do frontend stuff

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

    What about using 6.25%

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

    Nice and straight fwd

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

    Great content... I expect more from you... Keep Going

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

    Nice one Gaz.

  • @Gubuyguy
    @Gubuyguy 5 місяців тому

    Couldn't you just set the root font size to 10px, nstead of 62.5%?

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

    Also make a video on the UI for displaying information in tables not horibbly

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

    we can use mixin to convert to rem/em

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

    I saved up $50 for course but missed the sale. I hope there’s a sale close or same to that soon

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

    wont this have responsiveness issues?

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

    Hello, I have learned a lot from your videos, thank you very much! I would like to ask you if you know of any way to download an html file of your prototype like the one you download from Invision, but from figma? Tnks!!

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

    At 6:15 they are called chevrons.

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

    nice technique, this also applies for mobile first doesn't it

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

    hey nice vid! By the way whats your vscode theme? Its so pretty!!

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

    That is a pro tip

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

    How're you moving the camera
    Such a nice touch

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

    Hello, Gary! Can you tell me what is the best place to find free and quality figma templates for layout practice and adding it to portfolio? Thanks in advance

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

      Did I misunderstand or do you want to use a free resource as your portfolio? And aren't willing to look for it yourself..?

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

      @@eliastouil7686 I've searched a lot by myself, just looking for quality and interesting templates, which I can use for practice in coding and show of my skills:)

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

    Why 62.5% and not just 10px?

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

      10px will override the user's chosen browser default font size. It's an accessibility issue. 62.5% * 1.6em will always give the user's chosen size, even if it isn't 16px.

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

      @@MrSchizothemia when we should write em and rem, I didnt get it?

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

    Wtf is this “wanna be a better designer” “how much you really wanted?” BS? Feels like a 90s infomercial. You don’t need to push brother, we already here, we are already listening, we already trust you. Tell me about the course you have build for me, all in one place, all with a logic order.. all with no ads.. all to help me reach the sky.. that’s all we need

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

    I like you marry me.. so smart

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

    Good video but you could have done this in 5 minutes, I feel like you are stalling and deliberately making video longer and it feels boring for me, sorry.

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

    Just use teleporthq .so much easier and free too.