Converting Figma designs into React Components with Styled Components and Storybook

  Рет қаралды 42,267

oscargws

oscargws

Күн бұрын

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

Пікірлер: 49
@justinr9699
@justinr9699 2 жыл бұрын
The tutorial we’ve all been waiting for. Thank you!!!!
@HappyAnimals3D
@HappyAnimals3D Жыл бұрын
Awesome. Please make more videos like this. Your way of explaining things is quite brilliant.
@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.
@desmoulins6095
@desmoulins6095 2 жыл бұрын
Great for a fullstack dev oriented backend like me who cannot center a div !
@wolfleader111
@wolfleader111 3 жыл бұрын
Stumbled upon you in my recommendations! Awesome video, i love your workflow :)
@oscargws
@oscargws 3 жыл бұрын
Thanks!
@_Yolandi
@_Yolandi 3 жыл бұрын
Nice will watch it tomorrow, thanks
@jacob.lee380
@jacob.lee380 Жыл бұрын
This is an amazing content for someone like me!! hope he comes back and makes contents again!
@danieljing9319
@danieljing9319 3 жыл бұрын
great tutorial, really helpful
@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!
@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!
@aknur1625
@aknur1625 3 жыл бұрын
thanks for the tutorial! really helpful
@ajjo5513
@ajjo5513 2 жыл бұрын
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.
@TubeCrusader
@TubeCrusader 2 жыл бұрын
Good tutorial!
@OlgardoreusDeManiana
@OlgardoreusDeManiana 2 жыл бұрын
Great for fullstack explaining, It is a pity that the ending is cut, but it can guess from the source code.
@MatthieuLepineFr
@MatthieuLepineFr Жыл бұрын
Nice tutorial! What do you think of tools that auto-generate React components from Figma designs, like Clapy?
@JohnoScott
@JohnoScott Жыл бұрын
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 ?
@alulaleak
@alulaleak 2 жыл бұрын
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!
@clutchcreator
@clutchcreator 2 жыл бұрын
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!
@occo5877
@occo5877 Жыл бұрын
Do you use vim inside vac? I liked you movement flow in the editor what do you use?
@DK-mm1yp
@DK-mm1yp Жыл бұрын
so hard Oscar, it was so hard to show storybook settings, Oscar why now i have to spend another hour looking for storybook settings.
@abhisekkhuntia6348
@abhisekkhuntia6348 3 жыл бұрын
I suck at design when using React.... If u are one then this is a must watch .
@shaikikbhalBasha
@shaikikbhalBasha 2 жыл бұрын
Thanks
@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!
@einfacherkerl3279
@einfacherkerl3279 2 жыл бұрын
what happens at 28:09 ?
@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
@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
@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!
@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
@devmanek
@devmanek 3 жыл бұрын
Which font are you using?
@oscargws
@oscargws 3 жыл бұрын
Inter!
@RussianPinay
@RussianPinay 2 жыл бұрын
What happened at the end, back out!
@seyeonkim6646
@seyeonkim6646 2 жыл бұрын
vim bindings? 👀
@oscargws
@oscargws 2 жыл бұрын
Yep!
@martinui4892
@martinui4892 2 жыл бұрын
Storybook is free ?
@oscargws
@oscargws 2 жыл бұрын
Yep
@GGGStalker
@GGGStalker Жыл бұрын
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.
Build and Document React Components With Storybook
47:11
PortEXE
Рет қаралды 89 М.
你们会选择哪一辆呢#short #angel #clown
00:20
Super Beauty team
Рет қаралды 32 МЛН
Wait for the last one! 👀
00:28
Josh Horton
Рет қаралды 154 МЛН
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 36 МЛН
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 4,8 МЛН
13 Figma To React Converters Ranked
16:02
Jack Herrington
Рет қаралды 25 М.
Escape Tutorial Hell & Utilize Them In A Better Way
12:20
Traversy Media
Рет қаралды 220 М.
Sketch vs Figma - Why I switched!
10:03
CharliMarieTV
Рет қаралды 323 М.
Unbelievable AI Tool Converts Figma to Code🔥
17:46
Tech With Tim
Рет қаралды 284 М.
Design patterns in React
14:37
Cosden Solutions
Рет қаралды 149 М.
From Design to Development Full Stack Next.js Crash Course
3:34:47
Colby Fayock
Рет қаралды 50 М.
Samsung Galaxy 🔥 #shorts  #trending #youtubeshorts  #shortvideo ujjawal4u
0:10
Ujjawal4u. 120k Views . 4 hours ago
Рет қаралды 2,7 МЛН
Tag her 🤭💞 #miniphone #smartphone #iphone #samsung #fyp
0:11
Pockify™
Рет қаралды 28 МЛН
НЕ ПОКУПАЙ СМАРТФОН, ПОКА НЕ УЗНАЕШЬ ЭТО! Не ошибись с выбором…
15:23
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 16 МЛН