Skip to content

Commit

Permalink
feat(exporter): don't export figma-only variables
Browse files Browse the repository at this point in the history
  • Loading branch information
srambach committed Jun 5, 2024
1 parent bb41eba commit a4c0e10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/module/plugins/export-patternfly-tokens/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ function processCollection({ name, modes, variableIds }) {
variableIds.forEach((variableId) => {
const { name, resolvedType, valuesByMode } =
figma.variables.getVariableById(variableId);

if (name.includes("figma-only")) {
return; // Skip this variable
}

const value = valuesByMode[mode.modeId];

if (value !== undefined && ["COLOR", "FLOAT", "STRING"].includes(resolvedType)) {
Expand Down

0 comments on commit a4c0e10

Please sign in to comment.