I’m in the process of translating my Figma design into code, but I’m facing quite a few challenges.
As a beginner in web development, I aim to create a responsive landing page according to my mockup. While the image placement seems fine, I’m struggling with:
Positioning text elements accurately
Customizing button colors and sizes appropriately
Ensuring responsiveness across various screen sizes
your css is too basic for what ur going for. ditch the ids and switch to container divs with flexbox instead. that button looks bland - throw in some box-shadow and transitions to make it stand out. and those font sizes won’t work on mobile. use vw units or calc() to make them responsive.
Your positioning problems come from messy layout structure. Wrap your content in containers and use CSS Grid or Flexbox - you’ll get way better control. Your buttons need border-radius and border properties to look polished. Don’t forget hover states either. Big issue: you’re using pixels for fonts, which breaks accessibility. Switch to rem units and set up a proper typography scale. For responsive design, go mobile-first with your CSS, then add media queries as you scale up. That margin-left percentage on your logo will mess up alignment across different screens. Use margin auto or flexbox centering instead.
for real! using classes instead of ids is key. and flexbox? lifesaver for layouts! also don’t forget rems for fonts - super easy for rescaling on different screens. media queries are a must-have to make it all responsive too!
You’re manually coding when you should automate the whole Figma-to-code process. Been there - wasted hours tweaking CSS when I could’ve automated everything.
Skip hand-coding. Build an automated pipeline that pulls Figma assets, generates responsive CSS, and handles positioning automatically. Pull design tokens straight from Figma API, run them through automated rules, and get clean HTML/CSS that matches your mockup.
For button styling? Automate color extraction and use dynamic CSS variables. Text positioning? Use automated layout calculations instead of guessing margins.
I built something similar for our team’s design system. Takes Figma designs and spits out production-ready responsive code in minutes. Handles media queries, font scaling, and cross-browser compatibility automatically.
Responsiveness issues vanish when you automate breakpoint generation based on your Figma frames. No more guessing what works on different screens.
Latenode makes this workflow automation pretty straightforward. Connect Figma API to your code pipeline without complex backend logic.
Your problem is absolute positioning without proper layout flow. Stop using percentage margins and separate divs for everything. Use semantic HTML and let the document flow naturally. Wrap everything in a main container with max-width and center it. Your buttons are missing basic stuff - add border: none, border-radius, and cursor: pointer. That yellow background probably fails accessibility tests. Try white text and check the contrast. Don’t forget transition properties for smooth hovers. Your fixed font sizes will break on mobile. Use clamp() functions or viewport units instead. Start with 320px breakpoints and scale up. That 31.2% logo width is going to cause headaches - switch to CSS Grid or flexible units for better viewport control.