oscargws
oscargws
  • 1
  • 42 443
Converting Figma designs into React Components with Styled Components and Storybook
In this video I outline the basic process behind converting Figma designs into React components. This was my first tutorial / livestream, so apologies for any issues (like the overexposed webcam for the second half!).
Here's the related code:
github.com/oscargws/tutorial-figma-designs
0:00 Intro
0:20 What we're building
1:00 What's set up
2:00 Getting started
2:45 Storybook
3:20 Figma
4:00 Building the component
27:45 Extra improvements
Переглядів: 42 443

Відео

КОМЕНТАРІ

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

    Do you use vim inside vac? I liked you movement flow in the editor what do you use?

  • @jacob.lee380
    @jacob.lee380 Рік тому

    This is an amazing content for someone like me!! hope he comes back and makes contents again!

  • @DK-mm1yp
    @DK-mm1yp 2 роки тому

    so hard Oscar, it was so hard to show storybook settings, Oscar why now i have to spend another hour looking for storybook settings.

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

    Would you still export manually now that tools like FireJet exist that will faithfully generate React components with names and hierarchies used in Figma components ?

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

    That's a bad example. Wouldn't use it in production, too verbose. To style explicit dependency, shouldn't use explicit sizes and paddings aren't suppose to be applied on elements out of the element it self.

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

    Nice tutorial! What do you think of tools that auto-generate React components from Figma designs, like Clapy?

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

    Awesome. Please make more videos like this. Your way of explaining things is quite brilliant.

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

    Great for fullstack explaining, It is a pity that the ending is cut, but it can guess from the source code.

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

    man just too good at frontend + he just showed us what kinda thoughts we'll go through when we code 😂 I'm digging you in socials!

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

    Good tutorial!

  • @yaboi.hitmaizer
    @yaboi.hitmaizer 2 роки тому

    great vid! helped a bunch! thanks! ps. anyone knows this theme for vscode? looks awesome!

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

      Hey mate, the theme is Monokai Pro, you can find it here! monokai.pro/

    • @yaboi.hitmaizer
      @yaboi.hitmaizer 2 роки тому

      @@oscargws Thanks a bunch 🙌 Hopefully there's more videos down the pipe soon, this one was great man

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

    I don't understand the 'import styled from styled-components'... it isn't in your git files. I am assuming it imports your 'styled.d.ts' file ???? I have an error in storybook that says 'styled' is not defined or Module not found: Can't resolve 'styled-copmponents'

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

      So you have to run `yarn` in the repo to install all the packages first, then you can use the repo!

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

      @@oscargws ty!

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

    what happens at 28:09 ?

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

    Storybook is free ?

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

    Do you still make great videos or do you do live streams? I really like the demonstration of the workflow and would look forward to those future videos you mentioned making!

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

      I actually haven't made any since this, but I'm going to restart this year with some similar content, thanks for watching.

    • @jacob.lee380
      @jacob.lee380 Рік тому

      @@oscargws man... it's 2023 come back!

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

      @@oscargws Echoing the comment, would love to see more videos!

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

    would you mind sharing some of the code for this walkthrough? really enjoyed it, thanks!

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

      Just added the code to the description then

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

    What happened at the end, back out!

  • @alulaleak
    @alulaleak 3 роки тому

    Thanks for the video. Definitely going to try storybook out.. I noticed you’re typing all of your css into your jsx file… is that a typical thing you do or for the sake of the video? Is this the only efficient way to streamline the figma to react process or would it be just as convenient putting all the styling into its own css folder?

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

      If I'm styling say, a Button, I'll usually have a 'Button.tsx' file, and then next to it, inside the same folder a `Button.styles.ts` folder, with my styled components for that Button!

  • @shaikikbhalBasha
    @shaikikbhalBasha 3 роки тому

    Thanks

  • @manjotkaur4796
    @manjotkaur4796 3 роки тому

    Screen turned into black for last 1 min. ua-cam.com/video/Bwq6RHcGn8M/v-deo.html

  • @clutchcreator
    @clutchcreator 3 роки тому

    Amazing video Oscar. ❤️ We would love for you to build with Clutch. Not bragging, but we make the process of designing styled ReactJS components super simple and easy. 🎉 We give you the options to: - Visually compose styled ReactJS components (and switch to code editing mode whenever you want) - Connect any backend to build LIVE data-driven prototypes - Export the code outside of the platform for independent hosting (Vercel/Netlify) We also have a Figma importer coming soon that will make the process of going from Figma > ReactJS as seamless as possible. Would love your feedback!

  • @desmoulins6095
    @desmoulins6095 3 роки тому

    Great for a fullstack dev oriented backend like me who cannot center a div !

  • @seyeonkim6646
    @seyeonkim6646 3 роки тому

    vim bindings? 👀

  • @justinr9699
    @justinr9699 3 роки тому

    The tutorial we’ve all been waiting for. Thank you!!!!

  • @ajjo5513
    @ajjo5513 3 роки тому

    Seeing this video has made me realise how convenient figma is. For practice I try and replicate some designs (from images rather than an actual design file) and I am just now realising how difficult I’ve been making my life 😅 Quite like your workflow. The whole process is very streamlined.

  • @devmanek
    @devmanek 3 роки тому

    Which font are you using?

  • @aknur1625
    @aknur1625 3 роки тому

    thanks for the tutorial! really helpful

  • @abhisekkhuntia6348
    @abhisekkhuntia6348 3 роки тому

    I suck at design when using React.... If u are one then this is a must watch .

  • @JarrodKane
    @JarrodKane 3 роки тому

    Hey mate, really appreciate the video. Currently working on my first web dev job and having to convert a heap of figma designs into components, I figured to use storybook since it's basically just creating the components right now. Found your video and will throw you a follow here and on twitch

    • @oscargws
      @oscargws 3 роки тому

      Glad I could help!

  • @wolfleader111
    @wolfleader111 3 роки тому

    Stumbled upon you in my recommendations! Awesome video, i love your workflow :)

  • @AnthonyCandaele
    @AnthonyCandaele 3 роки тому

    nice to see your workflow from figma design to implementing in React. I think I'll have a look a Storyboard. I'm looking forward to that tutorial on implementing a theme with Styled Components.

  • @danieljing9319
    @danieljing9319 3 роки тому

    great tutorial, really helpful

  • @_Yolandi
    @_Yolandi 3 роки тому

    Nice will watch it tomorrow, thanks

  • @RaZziaN1
    @RaZziaN1 3 роки тому

    Why adding padding 16px and not margin 16px? I am only beginning css and wondering if it wont fuck up flex.

    • @oscargws
      @oscargws 3 роки тому

      There's a bit to this, but a good rule of thumb for deciding between padding and margin is to use margin when you're trying to separate the block from things outside it and to use padding to move the contents away from the edges of the block