Skip to main content
Becky_Birch
New Member
Nov 18, 2026 9:28 AM UTC
Question

Colour variables with opacity export as "#NaNNaNNaN" in JSON

Subject:

Colour variables set as a colour variable plus an opacity export
as "#NaNNaNNaN" when exporting variables to JSON. Plain colours
and plain aliases export correctly.

Example
Variable: button/color/primary/solid/background/disabled
Value in Figma: alias to a colour variable, opacity 40
Exported: "#NaNNaNNaN"
Expected: resolved colour with alpha, e.g. "#4268cf66"

Request: resolve the alias, apply the opacity and export a colour
with alpha. Ideally keep the base colour reference and opacity
value in the output as well.

3 replies

Jaycee Lewis
Figmate
Figmate
Nov 18, 2026 7:11 PM UTC

Hey ​@Becky_Birch 🤩 Thanks for the great post. I have a some questions to help us troubleshoot this together. 

  • How are you exporting the variables to JSON? Natively in Figma or via a plugin, for example?
  • Does the same colour export correctly with 40% opacity when you use a direct colour value instead of an alias? And does the alias export correctly at 100% opacity?
  • Can you add a screenshot or a quick GIF or screen recording?

Thank you! — Jaycee

Becky_Birch
New Member
Nov 19, 2026 9:42 AM UTC

Hey Jaycee

I have used a plugin and I have been using the MCP with claude to export JSON from Figma variables. 

If I set up an opacity set of colours as primitives its ok, but if I use the Figma feature where we can set 40% opacity on the solid colour its doesn’t export (see image below). I think theres an issue with that feature. 

 

 

Jaycee Lewis
Figmate
Figmate
Nov 19, 2026 9:46 PM UTC

Hey ​@Becky_Birch 🤩 Thank you very much. One more set of follow up questions:

Can you share which plugin and MCP setup you are using? Which one is handling the JSPN export? Thank you! — Jaycee