Skip to content

Commit

Permalink
group iconSet and brandName variables under utils
Browse files Browse the repository at this point in the history
  • Loading branch information
aweell committed Sep 17, 2024
1 parent 50dab99 commit 77caba9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tokens/figma/variables.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import {
VARIABLE_SCOPES,
} from "./utils/constants.mjs";

import formatBrandName from "./utils/format-brand-name.mjs";

export const FONT_FAMILIES = {
[BRANDS.MOVISTAR]: "On Air",
[BRANDS.VIVO_NEW]: "Vivo Type",
Expand All @@ -23,6 +25,8 @@ export const ICON_SETS = {
[BRANDS.TU]: "Default",
};

export const BRAND_NAMES = Object.values(BRANDS);

export const getPaletteVariables = (
jsonData,
brand
Expand All @@ -36,7 +40,6 @@ export const getPaletteVariables = (
},
];


export const getConstantVariables = (
jsonData,
brand
Expand Down Expand Up @@ -114,9 +117,13 @@ export const getNonColorVariables = (
{
variables: [
{
name: "icons/iconSet",
name: "utils/iconSet",
value: ICON_SETS[brand],
},
{
name: "utils/brandName",
value: formatBrandName(brand),
},
],
collectionName: COLLECTION_NAMES.SKIN,
resolvedType: VARIABLE_TYPES.STRING,
Expand Down

0 comments on commit 77caba9

Please sign in to comment.