Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
more fontSize migration tweeks
Oleg Isonend836413ef4ef
diff --git a/codemod/migrate-tokens.ts b/codemod/migrate-tokens.tsindex 4b1b76f069..f3135a2a4d 100644--- a/codemod/migrate-tokens.ts+++ b/codemod/migrate-tokens.ts@@ -182,7 +182,8 @@ const fontSizeValues = new Map([["$1", "1"],["$2", "3"],["$3", "4"],- ["$4", "1"],+ ["$4", "4"],+ ["14px", "4"],]);const updateProperty = (@@ -219,7 +220,7 @@ const update = async ({ filePath, buffer }) => {let line: string = "";for (line of lines) {line = updateProperty(line, spaceProps, spaceValues, "spacing");- line = updateProperty(line, fontSizeProps, fontSizeValues, "fontSizes");+ line = updateProperty(line, fontSizeProps, fontSizeValues, "fontSize");nextLines.push(line);}await fs.writeFile(filePath, nextLines.join("\n"));