Skip to content

Commit

Permalink
remove updateSkins magicStrings
Browse files Browse the repository at this point in the history
  • Loading branch information
aweell committed Sep 13, 2024
1 parent f4d67fa commit 000073f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tokens/figma/update-skins.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import fetch from "node-fetch";
import { updateCollections } from "./utils.mjs";
import {
updateCollections,
COLLECTION_NAMES,
VARIABLE_TYPES,
} from "./utils.mjs";

const collectionNames = ["Palette"];
const collectionNames = [
COLLECTION_NAMES.PALETTE,
];

async function updatePalette(
jsonData,
Expand Down Expand Up @@ -160,8 +166,8 @@ async function updatePalette(
const variableGroups = [
{
variables: jsonData[brand].palette,
collectionName: "Palette",
resolvedType: "COLOR",
collectionName: COLLECTION_NAMES.PALETTE,
resolvedType: VARIABLE_TYPES.COLOR,
variableScopes: ["ALL_SCOPES"],
},
];
Expand Down

0 comments on commit 000073f

Please sign in to comment.