Skip to main content

[Feature Request] Arbitrary CodeSyntaxPlatform values


davestewart

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.

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings