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.

small cleanup

Sara Vieira3928cfad8ef4
diff --git a/apps/designer/app/designer/features/sidebar-left/lib/header.tsx b/apps/designer/app/designer/features/sidebar-left/lib/header.tsx
index 93ec87fb47..353f2eba36 100644
--- a/apps/designer/app/designer/features/sidebar-left/lib/header.tsx
+++ b/apps/designer/app/designer/features/sidebar-left/lib/header.tsx
@@ -16,7 +16,7 @@ export const Header = ({ title, isClosable = true, onClose }: HeaderProps) => {
align="center"
justify="between"
>
- <Text size="1" css={{ fontWeight: "bold" }}>
+ <Text size="1" weight="700">
{title}
</Text>
{isClosable && (
diff --git a/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-info.tsx b/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-info.tsx
index 513b038a07..3b8449c8e4 100644
--- a/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-info.tsx
+++ b/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-info.tsx
@@ -53,7 +53,7 @@ export const AssetInfo = ({
align="center"
justify="between"
>
- <Text size="1" weight="bold">
+ <Text size="1" weight="700">
Asset Details
</Text>
diff --git a/apps/designer/app/designer/shared/inspector/collapsible-section.tsx b/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
index 1af6fb4f73..00eaad7229 100644
--- a/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
+++ b/apps/designer/app/designer/shared/inspector/collapsible-section.tsx
@@ -54,7 +54,7 @@ export const CollapsibleSection = ({
}}
>
{isOpenFinal ? <ChevronDownIcon /> : <ChevronRightIcon />}
- <Text size="1" css={{ fontWeight: "500", flexGrow: 1 }}>
+ <Text size="1" weight="500" css={{ flexGrow: 1 }}>
{label}
</Text>
{rightSlot}
diff --git a/packages/design-system/src/components/text.tsx b/packages/design-system/src/components/text.tsx
index b6f21768ec..5f23dc3f48 100644
--- a/packages/design-system/src/components/text.tsx
+++ b/packages/design-system/src/components/text.tsx
@@ -48,14 +48,17 @@ export const Text = styled("div", {
},
},
weight: {
- bold: {
- fontWeight: "700",
+ "500": {
+ fontWeight: 500,
},
- semibold: {
- fontWeight: "600",
+ "700": {
+ fontWeight: 700,
},
- light: {
- fontWeight: "300",
+ "600": {
+ fontWeight: 600,
+ },
+ "300": {
+ fontWeight: 300,
},
},
variant: {