Skip to content

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.

move legacy font sizes as well

Oleg Isonen9976367f337d
diff --git a/apps/designer/app/designer/features/style-panel/sections/spacing/spacing.tsx b/apps/designer/app/designer/features/style-panel/sections/spacing/spacing.tsx
index 07e76caa97..3ff4a0bc4f 100644
--- a/apps/designer/app/designer/features/style-panel/sections/spacing/spacing.tsx
+++ b/apps/designer/app/designer/features/style-panel/sections/spacing/spacing.tsx
@@ -58,7 +58,7 @@ const styles = {
"$spacing$11 $spacing$3 $spacing$11 1fr $spacing$11 $spacing$3 $spacing$11",
},
input: {
- fontSize: 10,
+ fontSize: "$fontSize$2",
fontWeight: 400,
fontFamily: "inherit",
display: "block",
@@ -97,7 +97,7 @@ const styles = {
text: {
fontWeight: "bold",
color: "$gray12",
- fontSize: 8,
+ fontSize: "$fontSize$1",
margin: "$spacing$3",
},
paddingGrid: {
diff --git a/packages/design-system/src/components/__DEPRECATED__/text.tsx b/packages/design-system/src/components/__DEPRECATED__/text.tsx
index c9f773a27a..6641cf1122 100644
--- a/packages/design-system/src/components/__DEPRECATED__/text.tsx
+++ b/packages/design-system/src/components/__DEPRECATED__/text.tsx
@@ -24,25 +24,25 @@ export const __DEPRECATED__Text = styled("div", {
fontSize: "$fontSize$4",
},
"5": {
- fontSize: "$5",
+ fontSize: "$fontSize$5",
letterSpacing: "-.015em",
},
"6": {
- fontSize: "$6",
+ fontSize: "$fontSize$6",
letterSpacing: "-.016em",
},
"7": {
- fontSize: "$7",
+ fontSize: "$fontSize$7",
letterSpacing: "-.031em",
textIndent: "-.005em",
},
"8": {
- fontSize: "$8",
+ fontSize: "$fontSize$8",
letterSpacing: "-.034em",
textIndent: "-.018em",
},
"9": {
- fontSize: "$9",
+ fontSize: "$fontSize$9",
letterSpacing: "-.055em",
textIndent: "-.025em",
},
diff --git a/packages/design-system/src/components/avatar.tsx b/packages/design-system/src/components/avatar.tsx
index 03947b24f0..2eb59a711f 100644
--- a/packages/design-system/src/components/avatar.tsx
+++ b/packages/design-system/src/components/avatar.tsx
@@ -201,23 +201,23 @@ const StyledAvatarFallback = styled(AvatarPrimitive.Fallback, {
variants: {
size: {
"1": {
- fontSize: "10px",
+ fontSize: "$fontSize$2",
lineHeight: "15px",
},
"2": {
fontSize: "$fontSize$4",
},
"3": {
- fontSize: "$6",
+ fontSize: "$fontSize$6",
},
"4": {
- fontSize: "$7",
+ fontSize: "$fontSize$7",
},
"5": {
- fontSize: "$8",
+ fontSize: "$fontSize$8",
},
"6": {
- fontSize: "$9",
+ fontSize: "$fontSize$9",
},
},
},
diff --git a/packages/design-system/src/components/text.tsx b/packages/design-system/src/components/text.tsx
index ee7221475d..caf5e19374 100644
--- a/packages/design-system/src/components/text.tsx
+++ b/packages/design-system/src/components/text.tsx
@@ -24,7 +24,7 @@ export const Text = styled("div", {
},
tiny: {
fontWeight: 400,
- fontSize: 8,
+ fontSize: "$fontSize$1",
letterSpacing: "0.01em",
},
title: {
@@ -40,7 +40,7 @@ export const Text = styled("div", {
},
unit: {
fontWeight: 500,
- fontSize: 10,
+ fontSize: "$fontSize$2",
textTransform: "uppercase",
},
},
diff --git a/packages/design-system/src/components/toggle-group.tsx b/packages/design-system/src/components/toggle-group.tsx
index a4ba1953a0..b8a0d7e7fe 100644
--- a/packages/design-system/src/components/toggle-group.tsx
+++ b/packages/design-system/src/components/toggle-group.tsx
@@ -14,7 +14,7 @@ export const Item = styled(ToggleGroupPrimitive.Item, {
color: "$hiContrast",
display: "flex",
whiteSpace: "nowrap",
- fontSize: 15,
+ fontSize: "$fontSize$4",
lineHeight: 1,
alignItems: "center",
justifyContent: "center",