Hi all! Is there a way to get color and text styles data from the REST API? I’m using the /v1/files/:key/nodes?ids=:ids
endpoint, and the response on nodes > [node id] > styles
returns all color and text styles but only metadata, nothing related to font family, font size, color etc. Is this expected? I know that I can get those styles if I look for an specific element that is assigned to those styles, but that won’t always be the case, for example, if I have 10 text styles but only 5 are being used on a file, I’d still want info from all of them. I also tried using /v1/styles/:key
but for some reason it always returns 404, and by looking at the documentation, it also only returns metadata and not the actual styling information. On the Plugin API I can just use figma.getLocalPaintStyles()
and figma.getLocalTextStyles()
, so is there something similar to this on the REST API?
Solved
REST API - Get color and text styles?
Best answer by tank666
View originalThis topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.