Skip to main content
davestewart
July 24, 2024

[Feature Request] Arbitrary CodeSyntaxPlatform values

  • July 24, 2024
  • 1 reply
  • 54 views

It would be really useful to have custom CodeSyntaxPlatform values.

We’ve just created 100s of variables in code and used Tailwind tokens for the WEB platform, but it obviously it makes no sense when CodeGen is showing CSS (i.e. Web):

CleanShot 2024-07-24 at 09.59.46

It’s fine to have some core platforms, but being able to assign syntax for arbitrary platforms make a lot more sense:

variable.setVariableCodeSyntax('WEB', `#${hex}`)
variable.setVariableCodeSyntax('TAILWIND', `${prop}-${key}`)

Ideally, there would be a UI for this, too:

CleanShot 2024-07-24 at 10.07.36

Thanks.

1 reply

Kolodziej_Ashley
Active Member
April 23, 2026

I need this as well, as my team supports CSS, Sass, Material UI, and Angular. All of these are best categorized as “web”, but are clearly very different code syntaxes.