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.

use design system tokens

Oleg Isonen1745ed55d0a3
diff --git a/packages/design-system/src/components/text.tsx b/packages/design-system/src/components/text.tsx
index 065fdb33d3..5079353222 100644
--- a/packages/design-system/src/components/text.tsx
+++ b/packages/design-system/src/components/text.tsx
@@ -14,12 +14,12 @@ export const Text = styled("div", {
variant: {
regular: {
fontWeight: 400,
- fontSize: 12,
+ fontSize: "$1",
letterSpacing: "0.005em",
},
label: {
fontWeight: 500,
- fontSize: 12,
+ fontSize: "$1",
letterSpacing: "0.005em",
},
tiny: {
@@ -29,19 +29,18 @@ export const Text = styled("div", {
},
title: {
fontWeight: 700,
- fontSize: 12,
+ fontSize: "$1",
letterSpacing: "0.01em",
},
mono: {
fontFamily: "$mono",
fontWeight: 400,
- fontSize: 12,
+ fontSize: "$1",
textTransform: "uppercase",
},
unit: {
fontWeight: 500,
fontSize: 10,
- lineHeight: 12,
textTransform: "uppercase",
},
},