Figma to html css

While converting from figma to html css i should use the same units for margins ,padding etc as defined in css in figma or can i used other values for css .Because while working on a project the value defined in figma for css was large for padding and margins and does not fit well on screen.
2 Replies
Jochem
Jochemā€¢13mo ago
it's not an exact process converting a design to HTML and CSS, use whatever works don't try to copy it pixel perfect either, go for what looks good and is accessible on an actual screen or mobile device afaicr figma loves px, which is generally to be avoided unless you're setting border widths or other tiny stuff like that
vince
vinceā€¢13mo ago
Yup that's correct, figma uses px for all of its margins and padding