All projects
Figma plugin

Syntaxer

Code Syntax for web, iOS, and Android—directly from Figma.

Open on Figma Community
Syntaxer: project interface, view 1
Syntaxer: project interface, view 2
For whom

Teams managing design variables in Figma

Scope

Plugin · Code Syntax · Platform conventions

Tools

Figma Variables / Code Syntax / Web · iOS · Android

The idea

Naming in Figma and naming in code aren't always the same.

The paths I use to organize variables in Figma don't always match each platform's naming conventions. I built Syntaxer to configure and preview those conversions, then save them to Code Syntax. This preserves the structure of the Figma file while preparing names for web, iOS, and Android.

Platforms

Prepare names for each platform.

I used variable paths as the starting point for writing platform-specific names into the Code Syntax fields shown in Dev Mode.

Rules

Refine and test naming rules.

I let users select and reorder path levels, replace words, and preview the result before applying changes. Variable names in Figma stay untouched.

Syntaxer: Refine and test naming rules., view 1
Syntaxer: Refine and test naming rules., view 2

Presets

Start from a ready-made convention.

I added six presets that populate casing, prefix, separator, and suffix. Every value can still be adjusted.

Replacements

Adapt words and casing.

I added substitutions such as bg for background and camelCase segment handling to match code conventions.

One path, three platforms

A transformation of color/background/primary that leaves the original Figma name unchanged.

Web · CSS
var(--color-background-primary)
Android
colorBackgroundPrimary
iOS
ColorBackgroundPrimary

Implementation

How I built it.

Work directly with Code Syntax

I used setVariableCodeSyntax to save platform-specific syntax. The plugin works with local variables, loads no external resources, and supports keyboard navigation.

Syntaxer

Code Syntax for web, iOS, and Android—directly from Figma.

Figma Variables
Local variables in the file.
Code Syntax
Writes via setVariableCodeSyntax.
Presets
CSS, SCSS, Less, Tailwind, Android, and iOS.
Replacements
Words and casing, without renaming.
Figma UI3
Light and dark, keyboard accessible.

Never renames your variables · No network access

Syntaxer configures Code Syntax metadata. It does not export components or rename variables.

Next projectTokens to Code