Em values for font sizes and line spacing
Em values allows me to set relative values for font sizes and line spacing in a way that the line spacing is always relative and proportional to the font size. This is a great time saver.
Please take a look at Typecast, you can set it in px and/or em. Amazingly flexible.
First I would like to thank you for the great work that all of you are doing.
As designer and developer I would like when I share the design for development:
1. During the design process, if I set padding to see values of the padding in the code section.
2. For me, personally, the position of the element as top and left is no use because elements are not absolutely positioned on the page.
3. If I make a component with hover state that hover state should be shown in code section (UI Properties)
4. Can we have one more unit to work with like EM
That would all for now.
Have a great day and keep doing an amazing job
Dan Rodney commented
Using percentages (such as 150%) or unitless line heights (such as 1.5) as we do when coding line-height in CSS would be so much nicer than pixels which don't adjust when you change the font size.
In general, the closer XD can get to the way people actually code the better. Anything that can be done in CSS should be available in XD, and it should be as close to webkit as possible.
Yep, another standard feature that is not standard in an Adobe product. Please add.
Line spacing is mostly defined in percentage or em values on the web. It would be nice to have same values to define line spacing when we design.
Font size can be defined only in px, but it should be clear.
Gavin Klose commented
Yeah, I am shocked that the standard ways of specifying line-heights are not available!
Joel Meine commented
Some additional notes for the XD Dev team ---
When considering how to integrate VW, VH, % and EM values into XD, With the new Web Development CSS Snippets within the Design Specs Output, if XD allowed the designer to set the CSS Base Font Size in PX (to compute the appropriate EM conversion, - and - allow a checkbox to output thee CSS current PX value as EM or % (Possibly even by object, component or group may be more effective - as some values are set as a percent and some as an EM or PX in the same web project)
This would make the Copy and Paste snippet much more valuable for developers as there would be less need to hand-modify, once it has been copied from XD.
Tash H commented
If I could, I would upvote @Adam m Babkes' comment.
All of this. Also percentage-based line-height would be incredible to go with this.
Chris Cannon commented
Have a different sizing types rather than just pixels.
On web - VW, %, VH, EM REM, PT.
It would be also great to reflect that in design specs - this way by setting a rem base you could have all other values calculated automaically and the developers could see the exact rem value to put into CSS.
Adam M Babkes commented
It is crucial in responsive design to be able to use ems and percentage to identify size and line height. Potentially VW and VH as well. Ideally, it'd be nice to create designs with viewport change in mind so as not to leave it solely to the developer to decide how they are executed.
Using Rem and Em units.