I was wonder is there possible to get generic font families from the API?
The case is that I have export font-styles in JSON and only get the text font name. Liked to have the fallback as-well.
Not sure I'm understanding the question. What do you mean by "fallback"? Can you provide an example?
ale Hi, I mean font-family: 'Roboto', helvetica, arial, sans-serif; the fallbacks are helvetica, arial or some sans-serif.
font-family: 'Roboto', helvetica, arial, sans-serif;
Sketch can only provide data that is known to it, which is just the exact font used for a given layer. Fallbacks would be outside its domain.
You could however use the fallbacks already curated by a CSS framework (eg: https://tailwindcss.com/docs/font-family/#app)