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.

migrate border-radius

Oleg Isonenaf527e90f2c5
diff --git a/apps/designer/app/designer/features/style-panel/sections/layout/shared/flex-grid.tsx b/apps/designer/app/designer/features/style-panel/sections/layout/shared/flex-grid.tsx
index 2372ca75fc..e1e417d771 100644
--- a/apps/designer/app/designer/features/style-panel/sections/layout/shared/flex-grid.tsx
+++ b/apps/designer/app/designer/features/style-panel/sections/layout/shared/flex-grid.tsx
@@ -145,7 +145,7 @@ export const FlexGrid = ({
blockSize: "calc(100% / 3)",
maxBlockSize: "$spacing$4",
background: "currentColor",
- borderRadius: "calc($radii$1 / 2)",
+ borderRadius: "calc($borderRadius$4 / 2)",
}}
></Flex>
))}
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 3ff4a0bc4f..cb0328b750 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
@@ -82,7 +82,7 @@ const styles = {
width: "$spacing$13",
margin: "auto",
height: "100%",
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
},
marginGrid: {
gridArea: "1 / 1 / -1 / -1",
@@ -91,7 +91,7 @@ const styles = {
gridTemplateRows: "$spacing$11 minmax($spacing$9, 1fr) $spacing$11",
height: 130,
backgroundColor: "$gray6",
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
px: 2,
},
text: {
@@ -107,7 +107,7 @@ const styles = {
gridTemplateRows: "$spacing$11 minmax($spacing$9, 1fr) $spacing$11",
border: "2px solid",
borderColor: "$loContrast",
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
},
};
diff --git a/apps/designer/app/designer/features/style-panel/shared/property-name.tsx b/apps/designer/app/designer/features/style-panel/shared/property-name.tsx
index 65e91276e4..d667541bad 100644
--- a/apps/designer/app/designer/features/style-panel/shared/property-name.tsx
+++ b/apps/designer/app/designer/features/style-panel/shared/property-name.tsx
@@ -21,8 +21,8 @@ export const PropertyName = ({ property, label, css }: PropertyProps) => {
? {
color: propertyNameColorForSelectedBreakpoint,
backgroundColor: "$colors$blue4",
- padding: "calc($radii$spacing$3 / 2) $radii$spacing$3",
- borderRadius: "$radii$1",
+ padding: "calc($spacing$3 / 2) $spacing$3",
+ borderRadius: "$borderRadius$4",
}
: {
color: "$hiContrast",
diff --git a/apps/designer/app/designer/features/topbar/sync-status.tsx b/apps/designer/app/designer/features/topbar/sync-status.tsx
index 19bedba285..25b7ccde0f 100644
--- a/apps/designer/app/designer/features/topbar/sync-status.tsx
+++ b/apps/designer/app/designer/features/topbar/sync-status.tsx
@@ -14,7 +14,7 @@ const StyledCheckIcon = styled(CheckIcon, {
width: iconSize,
height: iconSize,
background: "$green9",
- borderRadius: "$radii$round",
+ borderRadius: "$borderRadius$round",
});
const ellipsisKeyframes = keyframes({
diff --git a/apps/designer/app/designer/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx b/apps/designer/app/designer/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx
index 18690c7406..e18848f437 100644
--- a/apps/designer/app/designer/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx
+++ b/apps/designer/app/designer/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx
@@ -100,7 +100,7 @@ const Toolbar = ({ css, rootRef, state, onToggle }: ToolbarProps) => {
onClick={onClickPreventDefault}
css={{
position: "absolute",
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
padding: "$spacing$3 $spacing$5",
pointerEvents: "auto",
...css,
diff --git a/apps/designer/app/designer/shared/image-manager/image-thumbnail.tsx b/apps/designer/app/designer/shared/image-manager/image-thumbnail.tsx
index 8c46ab8958..8c07bc27db 100644
--- a/apps/designer/app/designer/shared/image-manager/image-thumbnail.tsx
+++ b/apps/designer/app/designer/shared/image-manager/image-thumbnail.tsx
@@ -37,7 +37,7 @@ const ThumbnailContainer = styled(Box, {
alignItems: "center",
flexDirection: "column",
border: "2px solid transparent",
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
outline: 0,
gap: "$spacing$3",
overflow: "hidden",
diff --git a/packages/design-system/src/components/alert.tsx b/packages/design-system/src/components/alert.tsx
index 65ab3dbc04..50bf4c0471 100644
--- a/packages/design-system/src/components/alert.tsx
+++ b/packages/design-system/src/components/alert.tsx
@@ -11,7 +11,7 @@ export const Alert = styled("div", {
},
border: "1px solid",
- borderRadius: "$2",
+ borderRadius: "$borderRadius$6",
variants: {
size: {
diff --git a/packages/design-system/src/components/avatar.tsx b/packages/design-system/src/components/avatar.tsx
index a9e12d6f6d..3c069be182 100644
--- a/packages/design-system/src/components/avatar.tsx
+++ b/packages/design-system/src/components/avatar.tsx
@@ -138,7 +138,7 @@ const StyledAvatar = styled(AvatarPrimitive.Root, {
},
shape: {
square: {
- borderRadius: "$2",
+ borderRadius: "$borderRadius$6",
},
circle: {
borderRadius: "50%",
@@ -287,7 +287,7 @@ export const Avatar = React.forwardRef<
bottom: "0",
right: "0",
boxShadow: "0 0 0 3px $colors$loContrast",
- borderRadius: "$round",
+ borderRadius: "$borderRadius$round",
mr: "-$spacing$2",
mb: "-$spacing$2",
}}
diff --git a/packages/design-system/src/components/badge.tsx b/packages/design-system/src/components/badge.tsx
index c72cde3f84..f9d5bb0136 100644
--- a/packages/design-system/src/components/badge.tsx
+++ b/packages/design-system/src/components/badge.tsx
@@ -33,7 +33,7 @@ export const Badge = styled("span", {
// Custom
backgroundColor: "$slate3",
- borderRadius: "$pill",
+ borderRadius: "$borderRadius$pill",
color: "$slate11",
whiteSpace: "nowrap",
fontVariantNumeric: "tabular-nums",
diff --git a/packages/design-system/src/components/banner.tsx b/packages/design-system/src/components/banner.tsx
index 24f55a2611..e80f4e41d2 100644
--- a/packages/design-system/src/components/banner.tsx
+++ b/packages/design-system/src/components/banner.tsx
@@ -41,12 +41,12 @@ export const Banner = styled("div", {
},
rounded: {
true: {
- borderRadius: "$pill",
+ borderRadius: "$borderRadius$pill",
},
},
border: {
true: {
- borderRadius: "$pill",
+ borderRadius: "$borderRadius$pill",
},
},
},
diff --git a/packages/design-system/src/components/button.tsx b/packages/design-system/src/components/button.tsx
index ed69951acb..32171f8d8c 100644
--- a/packages/design-system/src/components/button.tsx
+++ b/packages/design-system/src/components/button.tsx
@@ -40,19 +40,19 @@ export const Button = styled("button", {
variants: {
size: {
"1": {
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
height: "$spacing$11",
px: "$spacing$9",
fontSize: "$fontSize$3",
},
"2": {
- borderRadius: "$2",
+ borderRadius: "$borderRadius$6",
height: 28, // @todo waiting for the sizing scale
px: "$spacing$9",
fontSize: "$fontSize$4",
},
"3": {
- borderRadius: "$2",
+ borderRadius: "$borderRadius$6",
height: "$spacing$17",
px: "$spacing$10",
fontSize: "$fontSize$4",
diff --git a/packages/design-system/src/components/card.tsx b/packages/design-system/src/components/card.tsx
index 33c969abac..5dec4e8410 100644
--- a/packages/design-system/src/components/card.tsx
+++ b/packages/design-system/src/components/card.tsx
@@ -15,7 +15,7 @@ export const Card = styled("div", {
textDecoration: "none",
color: "inherit",
flexShrink: 0,
- borderRadius: "$3",
+ borderRadius: "$borderRadius$7",
position: "relative",
"&::before": {
@@ -27,7 +27,7 @@ export const Card = styled("div", {
bottom: 0,
left: 0,
boxShadow: "inset 0 0 0 1px rgba(0,0,0,.1)",
- borderRadius: "$3",
+ borderRadius: "$borderRadius$7",
pointerEvents: "none",
},
diff --git a/packages/design-system/src/components/checkbox.tsx b/packages/design-system/src/components/checkbox.tsx
index 880e9369ac..b45d2fdae9 100644
--- a/packages/design-system/src/components/checkbox.tsx
+++ b/packages/design-system/src/components/checkbox.tsx
@@ -43,12 +43,12 @@ const StyledCheckbox = styled(CheckboxPrimitive.Root, {
"1": {
width: "$spacing$9",
height: "$spacing$9",
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
},
"2": {
width: "$spacing$11",
height: "$spacing$11",
- borderRadius: "$2",
+ borderRadius: "$borderRadius$6",
},
},
},
diff --git a/packages/design-system/src/components/combobox.tsx b/packages/design-system/src/components/combobox.tsx
index 184f3a1359..2c72c7b4e8 100644
--- a/packages/design-system/src/components/combobox.tsx
+++ b/packages/design-system/src/components/combobox.tsx
@@ -49,7 +49,7 @@ const Listbox = styled("ul", panelStyles, {
const ListboxItem = styled("li", itemCss, {
padding: "0 $spacing$5",
margin: 0,
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
});
const ListboxItemBase: ForwardRefRenderFunction<
diff --git a/packages/design-system/src/components/context-menu.tsx b/packages/design-system/src/components/context-menu.tsx
index 8bcfdbca05..c7fba995a4 100644
--- a/packages/design-system/src/components/context-menu.tsx
+++ b/packages/design-system/src/components/context-menu.tsx
@@ -55,7 +55,7 @@ export const ContextMenuRadioItem = React.forwardRef<
width: "$spacing$3",
height: "$spacing$3",
backgroundColor: "currentColor",
- borderRadius: "$round",
+ borderRadius: "$borderRadius$round",
}}
/>
</Flex>
diff --git a/packages/design-system/src/components/icon-button-with-menu.tsx b/packages/design-system/src/components/icon-button-with-menu.tsx
index 8252068e9c..20aa86a166 100644
--- a/packages/design-system/src/components/icon-button-with-menu.tsx
+++ b/packages/design-system/src/components/icon-button-with-menu.tsx
@@ -9,7 +9,7 @@ const StyledContent = styled(DropdownMenuPrimitive.Content, {
maxHeight: 238,
overflow: "auto",
backgroundColor: "$colors$slate4",
- borderRadius: "$radii$1",
+ borderRadius: "$borderRadius$4",
padding: "$spacing$5",
boxShadow:
"0px 2px 7px rgba(0, 0, 0, 0.1), 0px 5px 17px rgba(0, 0, 0, 0.15), inset 0 0 1px 1px $colors$gray1, 0 0 0 1px $colors$gray8",
@@ -20,7 +20,7 @@ const itemStyles = {
fontSize: "$fontSize$3",
lineHeight: 1,
color: "$colors$slate12",
- borderRadius: "$radii$1",
+ borderRadius: "$borderRadius$4",
display: "flex",
alignItems: "center",
height: "$spacing$11",
diff --git a/packages/design-system/src/components/icon-button.tsx b/packages/design-system/src/components/icon-button.tsx
index 52e9150468..f2e61c0934 100644
--- a/packages/design-system/src/components/icon-button.tsx
+++ b/packages/design-system/src/components/icon-button.tsx
@@ -51,17 +51,17 @@ export const IconButton = styled("button", {
},
},
"2": {
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
height: "$spacing$13",
width: "$spacing$13",
},
"3": {
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
height: "$spacing$17",
width: "$spacing$17",
},
"4": {
- borderRadius: "$2",
+ borderRadius: "$borderRadius$6",
height: "$spacing$19",
width: "$spacing$19",
},
diff --git a/packages/design-system/src/components/kbd.tsx b/packages/design-system/src/components/kbd.tsx
index 80b4f24fe5..c591d75993 100644
--- a/packages/design-system/src/components/kbd.tsx
+++ b/packages/design-system/src/components/kbd.tsx
@@ -26,7 +26,7 @@ export const Kbd = styled("kbd", {
variants: {
size: {
"1": {
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
px: "0.3em",
height: "$spacing$9",
minWidth: "1.6em",
@@ -34,7 +34,7 @@ export const Kbd = styled("kbd", {
lineHeight: "$spaces$3",
},
"2": {
- borderRadius: "$2",
+ borderRadius: "$borderRadius$6",
px: "0.5em",
height: "$spacing$11",
minWidth: "2em",
diff --git a/packages/design-system/src/components/list.tsx b/packages/design-system/src/components/list.tsx
index 5ebda09a86..38cf0e7796 100644
--- a/packages/design-system/src/components/list.tsx
+++ b/packages/design-system/src/components/list.tsx
@@ -23,7 +23,7 @@ const ListItemBase = styled("li", {
height: "$spacing$11",
px: "$spacing$3",
listStyle: "none",
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
outline: 0,
variants: {
state: {
diff --git a/packages/design-system/src/components/panel.tsx b/packages/design-system/src/components/panel.tsx
index 348cb789bc..1991542db7 100644
--- a/packages/design-system/src/components/panel.tsx
+++ b/packages/design-system/src/components/panel.tsx
@@ -3,7 +3,7 @@ import { css, styled } from "../stitches.config";
export const panelStyles = css({
overflow: "auto",
backgroundColor: "$slate4",
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
boxShadow:
"0px 2px 7px rgba(0, 0, 0, 0.1), 0px 5px 17px rgba(0, 0, 0, 0.15), inset 0 0 1px 1px $colors$slate1, 0 0 0 1px $colors$slate7",
});
diff --git a/packages/design-system/src/components/progress-bar.tsx b/packages/design-system/src/components/progress-bar.tsx
index 2b147e44d2..8a1224ceee 100644
--- a/packages/design-system/src/components/progress-bar.tsx
+++ b/packages/design-system/src/components/progress-bar.tsx
@@ -22,7 +22,7 @@ const StyledProgressBar = styled(ProgressPrimitive.Root, {
position: "relative",
height: "$spacing$3",
overflow: "hidden",
- borderRadius: "$pill",
+ borderRadius: "$borderRadius$pill",
'&[data-state="indeterminate"]': {
backgroundColor: "$slate4",
@@ -33,7 +33,7 @@ const StyledProgressBar = styled(ProgressPrimitive.Root, {
animationTimingFunction: "cubic-bezier(0.65, 0, 0.35, 1)",
backgroundColor: "$slate7",
boxSizing: "border-box",
- borderRadius: "$pill",
+ borderRadius: "$borderRadius$pill",
content: '""',
position: "absolute",
top: 0,
diff --git a/packages/design-system/src/components/radio-card.tsx b/packages/design-system/src/components/radio-card.tsx
index 1624457f66..8c1cf56f62 100644
--- a/packages/design-system/src/components/radio-card.tsx
+++ b/packages/design-system/src/components/radio-card.tsx
@@ -10,7 +10,7 @@ const StyledRadioButton = styled("div", {
display: "flex",
alignItems: "center",
justifyContent: "center",
- borderRadius: "$round",
+ borderRadius: "$borderRadius$round",
width: 25,
height: 25,
boxShadow: "inset 0 0 0 1px $colors$slate7",
@@ -19,7 +19,7 @@ const StyledRadioButton = styled("div", {
});
const StyledRadioIndicator = styled("div", {
- borderRadius: "$round",
+ borderRadius: "$borderRadius$round",
width: 15,
height: 15,
backgroundColor: "$blue9",
@@ -38,7 +38,7 @@ const StyledRadio = styled(RadioGroupPrimitive.Item, {
},
display: "flex",
alignItems: "center",
- borderRadius: "$2",
+ borderRadius: "$borderRadius$6",
boxShadow: "inset 0 0 0 1px $colors$slate7",
p: "$spacing$9",
"@hover": {
diff --git a/packages/design-system/src/components/radio-grid.tsx b/packages/design-system/src/components/radio-grid.tsx
index 6533e438dd..b3a4ce4ec2 100644
--- a/packages/design-system/src/components/radio-grid.tsx
+++ b/packages/design-system/src/components/radio-grid.tsx
@@ -18,7 +18,7 @@ export const RadioGrid = styled(RadioGroupPrimitive.Item, {
"&::after": {
boxSizing: "border-box",
},
- borderRadius: "$2",
+ borderRadius: "$borderRadius$6",
boxShadow: "inset 0 0 0 1px $colors$slate7",
px: "$spacing$3",
height: "$spacing$13",
diff --git a/packages/design-system/src/components/select.tsx b/packages/design-system/src/components/select.tsx
index cf5a334c3e..5aa1ec0132 100644
--- a/packages/design-system/src/components/select.tsx
+++ b/packages/design-system/src/components/select.tsx
@@ -13,7 +13,7 @@ const StyledTrigger = styled(SelectPrimitive.SelectTrigger, {
fontVariantNumeric: "tabular-nums",
gap: "$spacing$5",
flexShrink: 0,
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
backgroundColor: "$loContrast",
color: "$hiContrast",
boxShadow: "inset 0 0 0 1px $colors$slate7",
@@ -62,7 +62,7 @@ const StyledIcon = styled(SelectPrimitive.Icon, {
export const SelectContent = styled(SelectPrimitive.Content, {
overflow: "hidden",
backgroundColor: "$colors$slate4",
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
boxShadow:
"0px 2px 7px rgba(0, 0, 0, 0.1), 0px 5px 17px rgba(0, 0, 0, 0.15), inset 0 0 1px 1px $colors$slate1, 0 0 0 1px $colors$slate8",
});
@@ -82,7 +82,7 @@ const StyledItem = styled(SelectPrimitive.Item, {
padding: "0 $spacing$5",
position: "relative",
userSelect: "none",
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
"&[data-disabled]": {
color: "$muted",
diff --git a/packages/design-system/src/components/simple-toggle.tsx b/packages/design-system/src/components/simple-toggle.tsx
index 86e617c583..da05dc8cd9 100644
--- a/packages/design-system/src/components/simple-toggle.tsx
+++ b/packages/design-system/src/components/simple-toggle.tsx
@@ -56,10 +56,10 @@ export const SimpleToggle = styled(TogglePrimitive.Root, {
variants: {
shape: {
circle: {
- borderRadius: "$round",
+ borderRadius: "$borderRadius$round",
},
square: {
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
},
},
},
diff --git a/packages/design-system/src/components/skeleton.tsx b/packages/design-system/src/components/skeleton.tsx
index 4b3e425249..e32b69ddd2 100644
--- a/packages/design-system/src/components/skeleton.tsx
+++ b/packages/design-system/src/components/skeleton.tsx
@@ -29,32 +29,32 @@ export const Skeleton = styled("div", {
variants: {
variant: {
avatar1: {
- borderRadius: "$round",
+ borderRadius: "$borderRadius$round",
height: "$spacing$9",
width: "$spacing$9",
},
avatar2: {
- borderRadius: "$round",
+ borderRadius: "$borderRadius$round",
height: "$spacing$11",
width: "$spacing$11",
},
avatar3: {
- borderRadius: "$round",
+ borderRadius: "$borderRadius$round",
height: "$spacing$13",
width: "$spacing$13",
},
avatar4: {
- borderRadius: "$round",
+ borderRadius: "$borderRadius$round",
height: "$spacing$17",
width: "$spacing$17",
},
avatar5: {
- borderRadius: "$round",
+ borderRadius: "$borderRadius$round",
height: "$spacing$19",
width: "$spacing$19",
},
avatar6: {
- borderRadius: "$round",
+ borderRadius: "$borderRadius$round",
height: "$spacing$20",
width: "$spacing$20",
},
@@ -68,7 +68,7 @@ export const Skeleton = styled("div", {
height: "$spacing$9",
},
button: {
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
height: "$spacing$11",
width: "$spacing$19",
},
diff --git a/packages/design-system/src/components/slider.tsx b/packages/design-system/src/components/slider.tsx
index ed65c23a70..a38591ec9a 100644
--- a/packages/design-system/src/components/slider.tsx
+++ b/packages/design-system/src/components/slider.tsx
@@ -6,7 +6,7 @@ const SliderTrack = styled(SliderPrimitive.Track, {
position: "relative",
flexGrow: 1,
backgroundColor: "$slate7",
- borderRadius: "$pill",
+ borderRadius: "$borderRadius$pill",
'&[data-orientation="horizontal"]': {
height: 2,
},
@@ -36,7 +36,7 @@ const SliderThumb = styled(SliderPrimitive.Thumb, {
outline: "none",
backgroundColor: "white",
boxShadow: "0 0 1px rgba(0,0,0,.3), 0 1px 4px rgba(0,0,0,.15)",
- borderRadius: "$round",
+ borderRadius: "$borderRadius$round",
"&::after": {
content: '""',
@@ -48,7 +48,7 @@ const SliderThumb = styled(SliderPrimitive.Thumb, {
zIndex: -2,
backgroundColor: "hsla(0,0%,0%,.035)",
transform: "scale(1)",
- borderRadius: "$round",
+ borderRadius: "$borderRadius$round",
transition: "transform 200ms cubic-bezier(0.22, 1, 0.36, 1)",
},
diff --git a/packages/design-system/src/components/switch.tsx b/packages/design-system/src/components/switch.tsx
index 1f8231b920..3a0ad4f1ab 100644
--- a/packages/design-system/src/components/switch.tsx
+++ b/packages/design-system/src/components/switch.tsx
@@ -8,7 +8,7 @@ const StyledThumb = styled(SwitchPrimitive.Thumb, {
width: 13,
height: 13,
backgroundColor: "white",
- borderRadius: "$round",
+ borderRadius: "$borderRadius$round",
boxShadow: "rgba(0, 0, 0, 0.3) 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 1px 2px;",
transition: "transform 100ms cubic-bezier(0.22, 1, 0.36, 1)",
transform: "translateX($spacing$1)",
@@ -41,7 +41,7 @@ const StyledSwitch = styled(SwitchPrimitive.Root, {
WebkitTapHighlightColor: "rgba(0,0,0,0)",
backgroundColor: "$slate6",
- borderRadius: "$pill",
+ borderRadius: "$borderRadius$pill",
position: "relative",
"&:focus": {
boxShadow: "0 0 0 2px $colors$slate8",
diff --git a/packages/design-system/src/components/text-area.tsx b/packages/design-system/src/components/text-area.tsx
index cab8d8d4ab..817601156a 100644
--- a/packages/design-system/src/components/text-area.tsx
+++ b/packages/design-system/src/components/text-area.tsx
@@ -46,19 +46,19 @@ export const TextArea = styled("textarea", {
variants: {
size: {
"1": {
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
fontSize: "$fontSize$3",
lineHeight: "$lineHeight$3",
px: "$spacing$3",
},
"2": {
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
fontSize: "$fontSize$3",
lineHeight: "$lineHeight$4",
px: "$spacing$3",
},
"3": {
- borderRadius: "$2",
+ borderRadius: "$borderRadius$6",
fontSize: "$fontSize$4",
lineHeight: "23px",
px: "$spacing$5",
diff --git a/packages/design-system/src/components/text-field.tsx b/packages/design-system/src/components/text-field.tsx
index c9a5d90ffe..1af8181ce4 100644
--- a/packages/design-system/src/components/text-field.tsx
+++ b/packages/design-system/src/components/text-field.tsx
@@ -136,7 +136,7 @@ const TextFieldBase = styled("div", {
fontVariantNumeric: "tabular-nums",
gap: "$spacing$3",
px: "$spacing$5",
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
fontFamily: "$sans",
fontSize: "$fontSize$3",
height: 28, // @todo waiting for the sizing scale
diff --git a/packages/design-system/src/components/tooltip.tsx b/packages/design-system/src/components/tooltip.tsx
index 5db7ee8713..50ad81338d 100644
--- a/packages/design-system/src/components/tooltip.tsx
+++ b/packages/design-system/src/components/tooltip.tsx
@@ -18,7 +18,7 @@ type TooltipProps = ComponentProps<typeof TooltipPrimitive.Root> &
const Content = styled(TooltipPrimitive.Content, {
backgroundColor: "$hiContrast",
color: "$loContrast",
- borderRadius: "$1",
+ borderRadius: "$borderRadius$4",
padding: "$spacing$3 $spacing$5",
zIndex: "$1",
position: "relative",
diff --git a/packages/design-system/src/components/tree/tree-node.tsx b/packages/design-system/src/components/tree/tree-node.tsx
index de597fd683..66b6fafed1 100644
--- a/packages/design-system/src/components/tree/tree-node.tsx
+++ b/packages/design-system/src/components/tree/tree-node.tsx
@@ -165,7 +165,7 @@ const hoverStyle = {
height: ITEM_HEIGHT,
border: "solid $blue10",
borderWidth: 2,
- borderRadius: "$2",
+ borderRadius: "$borderRadius$6",
pointerEvents: "none",
boxSizing: "border-box",
};
diff --git a/packages/design-system/src/components/verified-badge.tsx b/packages/design-system/src/components/verified-badge.tsx
index c9f067a355..e7bb4fe841 100644
--- a/packages/design-system/src/components/verified-badge.tsx
+++ b/packages/design-system/src/components/verified-badge.tsx
@@ -6,7 +6,7 @@ import { CheckIcon } from "@webstudio-is/icons";
const StyledVerifiedBadge = styled("div", Flex, {
alignItems: "center",
backgroundColor: "$blue9",
- borderRadius: "$round",
+ borderRadius: "$borderRadius$round",
color: "white",
flexShrink: 0,
justifyContent: "center",