Skip to main content

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.

Be the first to reply!

Reply