3 ms·
Super cool and simple test! One nitpick is the author says the following: > "Black is the default shape colour for SVGs, so the fill attribute can be omitted e
by jjcm 5y ago
Super cool and simple test! One nitpick is the author says the following:
> "Black is the default shape colour for SVGs, so the fill attribute can be omitted entirely, as per the source SVG."
This isn't entirely true, as there's a specificity difference between having the attribute and not having it. I'm not sure which is the "right" approach though for a design tool. If this were purely a svg command line tool, I'd expect there to be no additional metadata, but considering this is the export from a design tool, I'm not sure what the right approach is. When you export something you often want it to look exactly as it is on the canvas, not to dynamically change color if there's a `fill` css declaration somewhere up the chain. Both Sketch and Figma* look like they've made the decision to go with consistency of visuals rather than consistency of meaning.
Very impressed with Sketch here in how accurately it preserves the precision, but disappointed it's exporting with non-unique IDs. Illustrator feels like it's doing a very Adobe thing - two different ways of doing something in the app results in either the best output or the worst output. Figma I'm disappointed transforms the rects into paths. This feels like it's optimizing for the general case rather than what the best output might be. I'll lump XD into the same category here with their transform hack for positioning. Not a fan of either.
* Disclaimer: I work for Figma.
- danielvaughn 5y agoJust wanted to say that I love Figma. Not sure what part of the system you work on, but every time I open the canvas, it blows my mind that I’m on a website. It’s so smooth it feels like native most days.
- jjcm 5y agoThanks! That's awesome to hear - it's been super fun working for them. I've only been here about a year, so that near native experience is likely the result of https://twitter.com/evanwallace https://twitter.com/evanwallace 's early webasm work on it. I work on the design system features (components / variants / libraries / etc). Hit me up if you have any feedback! Happy to route it to the right people.