From Community: Request for Enhanced API Response with Preview Images and Colors
A
Amit Velingkar
Hey All, currently encountering a limitation with <https://public-api.gamma.app/v1.0/themes> API. This API does not return a preview image in it's response nor does it return the actual HEX colors, Fonts etc (that would allow someone to create such a preview). Can this please be added in the response?
Without this it is hard to use this in our application? Here is the current response
cc: <@U08FR0P1R7B>
> {
> "data": [
> {
> "id": "theme_abc123",
> "name": "Corporate Blue",
> "colorKeywords": [
> "blue",
> "professional",
> "modern"
> ],
> "toneKeywords": [
> "formal",
> "business"
> ],
> "type": "standard"
> }
> ],
> "hasMore": true,
> "nextCursor": "eyJpZCI6IjQ1NiJ9"
> }
A
Amit Velingkar
Nik Payne (Gamma design) - any updates on this?
Nik Payne (Gamma design)
Hey Amit Velingkar, thanks for the super clear writeup and the sample response. Totally get why themes are hard to use in an app if you can’t render a real preview.
I’ll pass this along to the team. Quick couple questions so we can scope it right:
1) Would a previewImageUrl per theme be enough, or do you also need the raw tokens (HEX colors, fonts, etc) to generate previews client-side?
2) For the colors/fonts, what’s the minimum set you’d need (primary/secondary/background/text, font family + weights, etc), and do you need light/dark variants too?
A
Amit Velingkar
Hey Nik Payne (Gamma design), thank you so much.
1) previewImageUrl per theme would be ideal & enough.
2) If that is not possible, I would need the following to recreate a preview. I think these are
P1
a) Primary accent color
b) Card background color
c) Heading Text color
d) Body Text Color
e) Link Color
P2
f) Card Roundness
e) Card Shadow
g) Card Border
h) Card Border Color
i) Heading-Font
j) Body-Font
Probably much easier to just share the preview image URL. :)