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
migrate to $spacing token everything
Oleg Isonen530979a3e8ac
diff --git a/apps/designer/app/auth/login.tsx b/apps/designer/app/auth/login.tsxindex 6e1bee7ac1..6736b17424 100644--- a/apps/designer/app/auth/login.tsx+++ b/apps/designer/app/auth/login.tsx@@ -81,7 +81,7 @@ export const Login = ({ errorMessage }: { errorMessage: string }) => {method="post"css={{flexDirection: "row",- gap: "$2",+ gap: "$spacing$5",}}><TextFielddiff --git a/apps/designer/app/canvas/features/text-editor/text-editor.stories.tsx b/apps/designer/app/canvas/features/text-editor/text-editor.stories.tsxindex 28144ab987..057249f90e 100644--- a/apps/designer/app/canvas/features/text-editor/text-editor.stories.tsx+++ b/apps/designer/app/canvas/features/text-editor/text-editor.stories.tsx@@ -55,7 +55,7 @@ export const Basic: ComponentStory<typeof TextEditor> = ({ onChange }) => {<Boxcss={{"& > div": {- padding: "0 8px",+ padding: "0 $spacing$5",border: "1px solid #999",color: "black",},diff --git a/apps/designer/app/dashboard/components/card.tsx b/apps/designer/app/dashboard/components/card.tsxindex ec695aba62..8c8aed83a8 100644--- a/apps/designer/app/dashboard/components/card.tsx+++ b/apps/designer/app/dashboard/components/card.tsx@@ -74,7 +74,7 @@ export const SelectProjectCard = ({</Button></Flex>{errors ? (- <Text color="error" css={{ marginTop: "$1" }}>+ <Text color="error" css={{ marginTop: "$spacing$3" }}>{errors}</Text>) : null}diff --git a/apps/designer/app/dashboard/components/header.tsx b/apps/designer/app/dashboard/components/header.tsxindex fd8020561b..e49304e337 100644--- a/apps/designer/app/dashboard/components/header.tsx+++ b/apps/designer/app/dashboard/components/header.tsx@@ -25,16 +25,16 @@ export const DashboardHeader = ({ user }: { user: User }) => {align="center"justify="end"css={{- p: "$1",+ p: "$spacing$3",bc: "$loContrast",- borderBottom: "1px solid $slate8",+ borderBottom: "$spacing$1 solid $slate8",}}><Flex gap="1" align="center"><DropdownMenu><DropdownMenuTrigger asChild><Button variant="raw" aria-label="Menu Button">- <Flex gap="1" align="center" css={{ height: "$5" }}>+ <Flex gap="1" align="center" css={{ height: "$spacing$11" }}><Avatarsrc={user?.image || undefined}fallback={userNameFallback}diff --git a/apps/designer/app/designer/features/breakpoints/breakpoints-editor.tsx b/apps/designer/app/designer/features/breakpoints/breakpoints-editor.tsxindex c172956a12..70abc6c14b 100644--- a/apps/designer/app/designer/features/breakpoints/breakpoints-editor.tsx+++ b/apps/designer/app/designer/features/breakpoints/breakpoints-editor.tsx@@ -50,7 +50,10 @@ const BreakpointEditorItem = ({setBreakpoint(nextBreakpoint);}}>- <Flex gap="1" css={{ paddingLeft: "$4", paddingRight: "$3" }}>+ <Flex+ gap="1"+ css={{ paddingLeft: "$spacing$10", paddingRight: "$spacing$9" }}+ ><TextFieldcss={{ width: 100, flexGrow: 1 }}type="text"@@ -101,7 +104,11 @@ export const BreakpointsEditor = ({align="center"gap="1"justify="between"- css={{ paddingLeft: "$5", paddingRight: "$3", py: "$1" }}+ css={{+ paddingLeft: "$spacing$11",+ paddingRight: "$spacing$9",+ py: "$spacing$3",+ }}><Text>Breakpoints</Text><Buttondiff --git a/apps/designer/app/designer/features/breakpoints/breakpoints.tsx b/apps/designer/app/designer/features/breakpoints/breakpoints.tsxindex b955671ece..1e22c0d4e4 100644--- a/apps/designer/app/designer/features/breakpoints/breakpoints.tsx+++ b/apps/designer/app/designer/features/breakpoints/breakpoints.tsx@@ -50,7 +50,7 @@ const BreakpointSelectorItem = ({};const menuItemCss = {display: "flex",- gap: "$3",+ gap: "$spacing$9",justifyContent: "start",flexGrow: 1,minWidth: 180,diff --git a/apps/designer/app/designer/features/breakpoints/confirmation-dialog.tsx b/apps/designer/app/designer/features/breakpoints/confirmation-dialog.tsxindex 619f064420..a65536d794 100644--- a/apps/designer/app/designer/features/breakpoints/confirmation-dialog.tsx+++ b/apps/designer/app/designer/features/breakpoints/confirmation-dialog.tsx@@ -13,7 +13,11 @@ export const ConfirmationDialog = ({onAbort,}: ConfirmationDialogProps) => {return (- <Flex gap="2" direction="column" css={{ px: "$5", py: "$2", width: 300 }}>+ <Flex+ gap="2"+ direction="column"+ css={{ px: "$spacing$11", py: "$spacing$5", width: 300 }}+ ><Paragraph>{`Are you sure you want to delete "${breakpoint.label}"?`}</Paragraph><Paragraph>{`Deleting a breakpoint will also delete all styles associated with thisdiff --git a/apps/designer/app/designer/features/breakpoints/preview.tsx b/apps/designer/app/designer/features/breakpoints/preview.tsxindex 1a27af9a7f..bbc98f5580 100644--- a/apps/designer/app/designer/features/breakpoints/preview.tsx+++ b/apps/designer/app/designer/features/breakpoints/preview.tsx@@ -7,7 +7,11 @@ type PreviewProps = {export const Preview = ({ breakpoint }: PreviewProps) => {return (- <Flex css={{ px: "$5", py: "$1" }} gap="1" direction="column">+ <Flex+ css={{ px: "$spacing$11", py: "$spacing$3" }}+ gap="1"+ direction="column"+ ><Text>CSS Preview</Text><Paragraph color="hint">{breakpoint === undefineddiff --git a/apps/designer/app/designer/features/breakpoints/trigger-button.tsx b/apps/designer/app/designer/features/breakpoints/trigger-button.tsxindex 1d90e0a401..f820a5a10e 100644--- a/apps/designer/app/designer/features/breakpoints/trigger-button.tsx+++ b/apps/designer/app/designer/features/breakpoints/trigger-button.tsx@@ -44,7 +44,7 @@ export const TriggerButton = forwardRef<<Button{...props}ref={ref}- css={{ gap: "$1" }}+ css={{ gap: "$spacing$3" }}ghostaria-label="Show breakpoints">diff --git a/apps/designer/app/designer/features/breakpoints/width-setting.tsx b/apps/designer/app/designer/features/breakpoints/width-setting.tsxindex 0d39eb63dd..f4cc5ae2e6 100644--- a/apps/designer/app/designer/features/breakpoints/width-setting.tsx+++ b/apps/designer/app/designer/features/breakpoints/width-setting.tsx@@ -53,7 +53,11 @@ export const WidthSetting = () => {);return (- <Flex css={{ px: "$5", py: "$1" }} gap="1" direction="column">+ <Flex+ css={{ px: "$spacing$11", py: "$spacing$3" }}+ gap="1"+ direction="column"+ ><Text>Canvas width</Text><Flex gap="3" align="center"><Sliderdiff --git a/apps/designer/app/designer/features/breakpoints/zoom-setting.tsx b/apps/designer/app/designer/features/breakpoints/zoom-setting.tsxindex 449bd30cee..6963c807aa 100644--- a/apps/designer/app/designer/features/breakpoints/zoom-setting.tsx+++ b/apps/designer/app/designer/features/breakpoints/zoom-setting.tsx@@ -6,7 +6,11 @@ export const minZoom = 10;export const ZoomSetting = () => {const [value, setValue] = useZoom();return (- <Flex css={{ px: "$5", py: "$1" }} gap="1" direction="column">+ <Flex+ css={{ px: "$spacing$11", py: "$spacing$3" }}+ gap="1"+ direction="column"+ ><Text>Zoom</Text><Flex gap="3" align="center"><Sliderdiff --git a/apps/designer/app/designer/features/footer/breadcrumbs.tsx b/apps/designer/app/designer/features/footer/breadcrumbs.tsxindex 0e8fd60034..58b360e1aa 100644--- a/apps/designer/app/designer/features/footer/breadcrumbs.tsx+++ b/apps/designer/app/designer/features/footer/breadcrumbs.tsx@@ -17,7 +17,7 @@ const Breadcrumb = ({ children, onClick }: BreadcrumbProps) => {onClick={onClick}css={{color: "$hiContrast",- px: "$2",+ px: "$spacing$5",borderRadius: "100vh",height: "100%",}}diff --git a/apps/designer/app/designer/features/footer/footer.tsx b/apps/designer/app/designer/features/footer/footer.tsxindex b3a2a789de..f98ab81122 100644--- a/apps/designer/app/designer/features/footer/footer.tsx+++ b/apps/designer/app/designer/features/footer/footer.tsx@@ -10,12 +10,12 @@ export const Footer = ({ publish }: { publish: Publish }) => {align="center"css={{gridArea: "footer",- height: "$sizes$5",+ height: "$spacing$11",background: "$loContrast",boxShadow: "inset 0 1px 0 0 $colors$panelOutline",}}>- <Box css={{ height: "100%", p: "$sizes$1" }}>+ <Box css={{ height: "100%", p: "$spacing$3" }}><Breadcrumbs publish={publish} /></Box></Flex>diff --git a/apps/designer/app/designer/features/inspector/inspector.tsx b/apps/designer/app/designer/features/inspector/inspector.tsxindex 4287854aa1..beee2246c6 100644--- a/apps/designer/app/designer/features/inspector/inspector.tsx+++ b/apps/designer/app/designer/features/inspector/inspector.tsx@@ -28,9 +28,9 @@ export const Inspector = ({ publish }: InspectorProps) => {if (selectedInstanceData === undefined) {return (- <Box css={{ p: "$2", flexBasis: "100%" }}>+ <Box css={{ p: "$spacing$5", flexBasis: "100%" }}>{/* @todo: use this space for something more usefull: a-la figma's no instance selected sate, maybe create an issue with a more specific proposal? */}- <Card css={{ p: "$3", mt: "$3", width: "100%" }}>+ <Card css={{ p: "$spacing$9", mt: "$spacing$9", width: "100%" }}><Paragraph>Select an instance on the canvas</Paragraph></Card></Box>diff --git a/apps/designer/app/designer/features/props-panel/props-panel.tsx b/apps/designer/app/designer/features/props-panel/props-panel.tsxindex 084a501d25..c69d3fcddf 100644--- a/apps/designer/app/designer/features/props-panel/props-panel.tsx+++ b/apps/designer/app/designer/features/props-panel/props-panel.tsx@@ -202,7 +202,7 @@ export const PropsPanel = ({);return (<>- <Box css={{ p: "$3" }}>+ <Box css={{ p: "$spacing$9" }}><ComponentInfo selectedInstanceData={selectedInstanceData} /></Box><CollapsibleSectiondiff --git a/apps/designer/app/designer/features/sidebar-left/lib/header.tsx b/apps/designer/app/designer/features/sidebar-left/lib/header.tsxindex 5bfc9f0e31..73c413f70e 100644--- a/apps/designer/app/designer/features/sidebar-left/lib/header.tsx+++ b/apps/designer/app/designer/features/sidebar-left/lib/header.tsx@@ -11,12 +11,12 @@ export const Header = ({ title, suffix }: HeaderProps) => {return (<><Flex- css={{ height: 40, paddingLeft: "$3", flexShrink: 0 }}+ css={{ height: 40, paddingLeft: "$spacing$9", flexShrink: 0 }}align="center"justify="between"><Text variant="title">{title}</Text>- {suffix && <Flex css={{ marginRight: "$1" }}>{suffix}</Flex>}+ {suffix && <Flex css={{ marginRight: "$spacing$3" }}>{suffix}</Flex>}</Flex><Separator css={{ height: 2 }} /></>diff --git a/apps/designer/app/designer/features/sidebar-left/panels/components/component-thumb.tsx b/apps/designer/app/designer/features/sidebar-left/panels/components/component-thumb.tsxindex 90f966767b..f2544d51b6 100644--- a/apps/designer/app/designer/features/sidebar-left/panels/components/component-thumb.tsx+++ b/apps/designer/app/designer/features/sidebar-left/panels/components/component-thumb.tsx@@ -3,7 +3,7 @@ import { forwardRef, type ElementRef, type ComponentProps } from "react";import { Flex, Text, styled } from "@webstudio-is/design-system";const Thumb = styled(Flex, {- px: "$1",+ px: "$spacing$3",width: 72,height: 72,border: "1px solid $slate6",diff --git a/apps/designer/app/designer/features/sidebar-left/panels/components/components.tsx b/apps/designer/app/designer/features/sidebar-left/panels/components/components.tsxindex 80773e8224..8581d41c08 100644--- a/apps/designer/app/designer/features/sidebar-left/panels/components/components.tsx+++ b/apps/designer/app/designer/features/sidebar-left/panels/components/components.tsx@@ -140,7 +140,7 @@ export const TabContent = ({ publish, onSetActiveTab }: TabContentProps) => {<Flexgap="1"wrap="wrap"- css={{ padding: "$1", overflow: "auto" }}+ css={{ padding: "$spacing$3", overflow: "auto" }}ref={useDragHandlers.rootRef}>{componentNames.map((component: Instance["component"]) => (diff --git a/apps/designer/app/designer/features/sidebar-left/panels/pages/pages.tsx b/apps/designer/app/designer/features/sidebar-left/panels/pages/pages.tsxindex e3c2b9e8e6..9662a1dc6b 100644--- a/apps/designer/app/designer/features/sidebar-left/panels/pages/pages.tsx+++ b/apps/designer/app/designer/features/sidebar-left/panels/pages/pages.tsx@@ -115,7 +115,7 @@ const PagesPanel = ({{...props}suffix={onEdit && (- <Flex css={{ mr: "$2" }} align="center">+ <Flex css={{ mr: "$spacing$5" }} align="center">{isEditing ? (<ChevronRightIcon />) : (diff --git a/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsx b/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsxindex ec91f817ef..bc1f81a604 100644--- a/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsx+++ b/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsx@@ -32,8 +32,8 @@ import type {import { restPagesPath } from "~/shared/router-utils";const Group = styled(Flex, {- marginBottom: "$3",- gap: "$2",+ marginBottom: "$spacing$9",+ gap: "$spacing$5",defaultVariants: { direction: "column" },});@@ -164,7 +164,7 @@ const NewPageSettingsView = ({)}/>- <Box css={{ overflow: "auto", padding: "$2 $3" }}>+ <Box css={{ overflow: "auto", padding: "$spacing$5 $spacing$9" }}><formonSubmit={(event) => {event.preventDefault();@@ -343,7 +343,7 @@ const PageSettingsView = ({</>}/>- <Box css={{ overflow: "auto", padding: "$2 $3" }}>+ <Box css={{ overflow: "auto", padding: "$spacing$5 $spacing$9" }}><FormFields {...formFieldsProps} /></Box></>diff --git a/apps/designer/app/designer/features/style-panel/controls/font-weight/font-weight-control.tsx b/apps/designer/app/designer/features/style-panel/controls/font-weight/font-weight-control.tsxindex dceb154c89..a00f040f15 100644--- a/apps/designer/app/designer/features/style-panel/controls/font-weight/font-weight-control.tsx+++ b/apps/designer/app/designer/features/style-panel/controls/font-weight/font-weight-control.tsx@@ -107,9 +107,9 @@ export const FontWeightControl = ({ghostcss={{// @todo this shouldn't be in design system by default- gap: "calc($sizes$1 / 2)",- paddingLeft: "calc($sizes$4 / 2)",- height: "calc($sizes$5 + $sizes$1)",+ gap: "calc($spacing$3 / 2)",+ paddingLeft: "calc($spacing$10 / 2)",+ height: "calc($spacing$11 + $spacing$3)",boxShadow: "inset 0 0 0 1px $colors$slate7",textTransform: "capitalize",fontWeight: "inherit",diff --git a/apps/designer/app/designer/features/style-panel/sections/layout/layout.tsx b/apps/designer/app/designer/features/style-panel/sections/layout/layout.tsxindex 8d16a659f0..839302be58 100644--- a/apps/designer/app/designer/features/style-panel/sections/layout/layout.tsx+++ b/apps/designer/app/designer/features/style-panel/sections/layout/layout.tsx@@ -33,13 +33,13 @@ const LayoutSectionFlex = ({].some((config) => config !== undefined);return (- <Flex css={{ flexDirection: "column", gap: "$2" }}>+ <Flex css={{ flexDirection: "column", gap: "$spacing$5" }}>{display?.styleConfig && (<Gridcss={{gridArea: "display",gridTemplateColumns: "auto 1fr",- gap: "$space$6",+ gap: "$spacing$13",width: "100%",fontWeight: "500",}}@@ -54,9 +54,10 @@ const LayoutSectionFlex = ({{hasMenuItems && (<Gridcss={{- gap: "$2",- gridTemplateColumns: "repeat(2, $6) repeat(3, $6)",- gridTemplateRows: "repeat(2, $6)",+ gap: "$spacing$5",+ gridTemplateColumns:+ "repeat(2, $spacing$13) repeat(3, $spacing$13)",+ gridTemplateRows: "repeat(2, $spacing$13)",gridTemplateAreas: `"grid grid flexDirection flexWrap .""grid grid alignItems justifyContent alignContent"@@ -111,7 +112,7 @@ const LayoutSectionFlex = ({</Box>)}{rowGap?.styleConfig && columnGap?.styleConfig && (- <Box css={{ gridArea: "lock", px: "$1" }}>+ <Box css={{ gridArea: "lock", px: "$spacing$3" }}><LockpairedKeys={["columnGap", "rowGap"]}currentStyle={currentStyle}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.tsxindex a6787f758a..2372ca75fc 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@@ -57,12 +57,12 @@ export const FlexGrid = ({css={{width: "100%",aspectRatio: "1 / 1",- padding: "6px",+ padding: "$spacing$4",borderRadius: "4px",background: "$loContrast",border: "2px solid currentColor",alignItems: "center",- gap: "1px",+ gap: "$spacing$1",gridTemplateColumns: "repeat(3, 1fr)",gridTemplateRows: "repeat(3, 1fr)",gridTemplateAreas: `@@ -133,7 +133,7 @@ export const FlexGrid = ({flexDirection: "column",width: "100%",height: "100%",- gap: "calc($sizes$1 / 2)",+ gap: "calc($spacing$3 / 2)",color: "currentColor",}}>@@ -143,7 +143,7 @@ export const FlexGrid = ({css={{inlineSize: value,blockSize: "calc(100% / 3)",- maxBlockSize: "6px",+ maxBlockSize: "$spacing$4",background: "currentColor",borderRadius: "calc($radii$1 / 2)",}}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.tsxindex 41399f4df6..14443e8e4e 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@@ -52,8 +52,10 @@ const styles = {wrapper: {display: "grid",height: 130,- gridTemplateColumns: "$5 $1 $5 1fr $5 $1 $5",- gridTemplateRows: "$5 $1 $5 1fr $5 $1 $5",+ gridTemplateColumns:+ "$spacing$11 $spacing$3 $spacing$11 1fr $spacing$11 $spacing$3 $spacing$11",+ gridTemplateRows:+ "$spacing$11 $spacing$3 $spacing$11 1fr $spacing$11 $spacing$3 $spacing$11",},input: {fontSize: 10,@@ -77,7 +79,7 @@ const styles = {emptySpace: {gridArea: "2 / 2 / 3 / 2",background: "$loContrast",- width: "$6",+ width: "$spacing$13",margin: "auto",height: "100%",borderRadius: "$1",@@ -85,8 +87,8 @@ const styles = {marginGrid: {gridArea: "1 / 1 / -1 / -1",display: "grid",- gridTemplateColumns: "$5 1fr $5",- gridTemplateRows: "$5 minmax($3, 1fr) $5",+ gridTemplateColumns: "$spacing$11 1fr $spacing$11",+ gridTemplateRows: "$spacing$11 minmax($spacing$9, 1fr) $spacing$11",height: 130,backgroundColor: "$gray6",borderRadius: "$1",@@ -96,13 +98,13 @@ const styles = {fontWeight: "bold",color: "$gray12",fontSize: 8,- margin: "$1",+ margin: "$spacing$3",},paddingGrid: {gridArea: "3 / 3 / span 3 / span 3",display: "grid",- gridTemplateColumns: "$5 1fr $5",- gridTemplateRows: "$5 minmax($3, 1fr) $5",+ gridTemplateColumns: "$spacing$11 1fr $spacing$11",+ gridTemplateRows: "$spacing$11 minmax($spacing$9, 1fr) $spacing$11",border: "2px solid",borderColor: "$loContrast",borderRadius: "$1",diff --git a/apps/designer/app/designer/features/style-panel/shared/color-picker.tsx b/apps/designer/app/designer/features/style-panel/shared/color-picker.tsxindex 7238aa912c..fd3104aaac 100644--- a/apps/designer/app/designer/features/style-panel/shared/color-picker.tsx+++ b/apps/designer/app/designer/features/style-panel/shared/color-picker.tsx@@ -17,7 +17,7 @@ const stringifyRGBA = (color: RGBColor) => {};const pickerStyle = css({- padding: "$2",+ padding: "$spacing$5",background: "$panel",// @todo this lib doesn't have another way to define styles for inputs// we should either submit a PR or replace it@@ -64,9 +64,9 @@ export const ColorPicker = ({><Boxcss={{- margin: "$sizes$1",- width: "$sizes$4",- height: "$sizes$4",+ margin: "$spacing$3",+ width: "$spacing$10",+ height: "$spacing$10",borderRadius: 2,background: value,}}diff --git a/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.stories.tsx b/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.stories.tsxindex 226c48fb95..e050db2f8f 100644--- a/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.stories.tsx+++ b/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.stories.tsx@@ -81,7 +81,7 @@ export const WithUnits = () => {});return (- <Flex css={{ gap: "$3" }}>+ <Flex css={{ gap: "$spacing$9" }}><CssValueInputproperty="rowGap"value={value}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.tsxindex 9bb7162a86..65e91276e4 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,7 +21,7 @@ export const PropertyName = ({ property, label, css }: PropertyProps) => {? {color: propertyNameColorForSelectedBreakpoint,backgroundColor: "$colors$blue4",- padding: "calc($radii$1 / 2) $radii$1",+ padding: "calc($radii$spacing$3 / 2) $radii$spacing$3",borderRadius: "$radii$1",}: {diff --git a/apps/designer/app/designer/features/style-panel/shared/show-more.tsx b/apps/designer/app/designer/features/style-panel/shared/show-more.tsxindex 5ac054ccd3..0ea0b7fa4c 100644--- a/apps/designer/app/designer/features/style-panel/shared/show-more.tsx+++ b/apps/designer/app/designer/features/style-panel/shared/show-more.tsx@@ -13,7 +13,7 @@ export const ShowMore = ({<Collapsible.Root asChild onOpenChange={setIsOpen}><Flex direction="column" gap="3"><Collapsible.Trigger asChild>- <Button css={{ width: "100%", gap: "$1" }}>+ <Button css={{ width: "100%", gap: "$spacing$3" }}>{isOpen ? <TriangleDownIcon /> : <TriangleRightIcon />}Show more</Button></Collapsible.Trigger>diff --git a/apps/designer/app/designer/features/style-panel/style-panel.tsx b/apps/designer/app/designer/features/style-panel/style-panel.tsxindex cad204889a..63114299b3 100644--- a/apps/designer/app/designer/features/style-panel/style-panel.tsx+++ b/apps/designer/app/designer/features/style-panel/style-panel.tsx@@ -39,9 +39,9 @@ export const StylePanel = ({if (willRender(breakpoint, canvasWidth) === false) {return (- <Box css={{ p: "$2" }}>- <Card css={{ p: "$3", mt: "$3" }}>- <Paragraph css={{ marginBottom: "$2" }}>+ <Box css={{ p: "$spacing$5" }}>+ <Card css={{ p: "$spacing$9", mt: "$spacing$9" }}>+ <Paragraph css={{ marginBottom: "$spacing$5" }}>{`Please increase the canvas width.`}</Paragraph><Paragraph>@@ -54,7 +54,7 @@ export const StylePanel = ({return (<>- <Box css={{ px: "$3", py: "$1" }}>+ <Box css={{ px: "$spacing$9", py: "$spacing$3" }}><SearchFieldplaceholder="Search"onChange={(event) => {diff --git a/apps/designer/app/designer/features/topbar/menu/menu.tsx b/apps/designer/app/designer/features/topbar/menu/menu.tsxindex cc718c5972..f0e26e44bf 100644--- a/apps/designer/app/designer/features/topbar/menu/menu.tsx+++ b/apps/designer/app/designer/features/topbar/menu/menu.tsx@@ -30,7 +30,7 @@ import { dashboardPath } from "~/shared/router-utils";const menuItemCss = {display: "flex",- gap: "$3",+ gap: "$spacing$9",justifyContent: "space-between",flexGrow: 1,minWidth: 140,@@ -112,7 +112,7 @@ export const Menu = ({ publish }: MenuProps) => {<DropdownMenuTrigger asChild><Boxcss={{- width: "$sizes$7",+ width: "$spacing$17",height: "100%",borderRadius: "0",outline: "none",diff --git a/apps/designer/app/designer/features/topbar/publish.tsx b/apps/designer/app/designer/features/topbar/publish.tsxindex 1317d37b29..6723b4ab37 100644--- a/apps/designer/app/designer/features/topbar/publish.tsx+++ b/apps/designer/app/designer/features/topbar/publish.tsx@@ -43,7 +43,7 @@ const Content = ({ project }: PublishButtonProps) => {return (<PopoverContent- css={{ padding: "$3" }}+ css={{ padding: "$spacing$9" }}hideArrow={true}onFocusOutside={(event) => {// Used to prevent closing when opened from the main dropdown menu@@ -91,7 +91,7 @@ export const PublishButton = ({ project }: PublishButtonProps) => {return (<Popover open={isOpen} onOpenChange={setIsOpen}><PopoverTrigger asChild aria-label="Publish">- <Button ghost css={{ display: "flex", gap: "$1" }}>+ <Button ghost css={{ display: "flex", gap: "$spacing$3" }}><RocketIcon /><Text>Publish</Text></Button>diff --git a/apps/designer/app/designer/features/topbar/share.tsx b/apps/designer/app/designer/features/topbar/share.tsxindex 281c911e33..86b8580861 100644--- a/apps/designer/app/designer/features/topbar/share.tsx+++ b/apps/designer/app/designer/features/topbar/share.tsx@@ -21,7 +21,7 @@ const Content = ({ url }: ShareButtonProps) => {}return (<PopoverContent- css={{ padding: "$3" }}+ css={{ padding: "$spacing$9" }}hideArrow={true}onFocusOutside={(event) => {// Used to prevent closing when opened from the main dropdown menudiff --git a/apps/designer/app/designer/features/topbar/topbar.tsx b/apps/designer/app/designer/features/topbar/topbar.tsxindex 7ebf328289..bae4a6d0af 100644--- a/apps/designer/app/designer/features/topbar/topbar.tsx+++ b/apps/designer/app/designer/features/topbar/topbar.tsx@@ -23,7 +23,7 @@ export const Topbar = ({ css, project, publish, previewUrl }: TopbarProps) => {justify="between"css={{bc: "$loContrast",- height: "$sizes$7",+ height: "$spacing$17","[data-theme=dark] &": {boxShadow: "inset 0 -1px 0 0 $colors$panelOutline",},@@ -48,7 +48,7 @@ export const Topbar = ({ css, project, publish, previewUrl }: TopbarProps) => {"& > *": {height: "inherit",width: "auto",- padding: "0 $2",+ padding: "0 $spacing$5",},}}>diff --git a/apps/designer/app/designer/features/tree-preview/tree-preview.tsx b/apps/designer/app/designer/features/tree-preview/tree-preview.tsxindex eb6c4365a4..ada3223755 100644--- a/apps/designer/app/designer/features/tree-preview/tree-preview.tsx+++ b/apps/designer/app/designer/features/tree-preview/tree-preview.tsx@@ -74,7 +74,10 @@ export const TreePrevew = () => {return (treeProps && (- <Flex direction="column" css={{ pt: "$1", pb: "$1", width: "100%" }}>+ <Flex+ direction="column"+ css={{ pt: "$spacing$3", pb: "$spacing$3", width: "100%" }}+ ><InstanceTreeNode {...treeProps} /></Flex>)diff --git a/apps/designer/app/designer/features/workspace/canvas-tools/outline/label.tsx b/apps/designer/app/designer/features/workspace/canvas-tools/outline/label.tsxindex ac8696fbf3..a7a6ad6de7 100644--- a/apps/designer/app/designer/features/workspace/canvas-tools/outline/label.tsx+++ b/apps/designer/app/designer/features/workspace/canvas-tools/outline/label.tsx@@ -37,16 +37,16 @@ const LabelContainer = styled({position: "absolute",display: "flex",- padding: "0 $1",- height: "$4",+ padding: "0 $spacing$3",+ height: "$spacing$10",color: "white",alignItems: "center",justifyContent: "center",- gap: "$1",+ gap: "$spacing$3",fontSize: "$1",fontFamily: "$sans",lineHeight: 1,- minWidth: "$6",+ minWidth: "$spacing$13",whiteSpace: "nowrap",backgroundColor: "$blue9",},@@ -54,13 +54,13 @@ const LabelContainer = styled(variants: {position: {top: {- top: "-$4",+ top: "-$spacing$10",},inside: {top: 0,},bottom: {- bottom: "-$4",+ bottom: "-$spacing$10",},},},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.tsxindex 3780489ffd..18690c7406 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@@ -101,7 +101,7 @@ const Toolbar = ({ css, rootRef, state, onToggle }: ToolbarProps) => {css={{position: "absolute",borderRadius: "$1",- padding: "$1 $2",+ padding: "$spacing$3 $spacing$5",pointerEvents: "auto",...css,}}diff --git a/apps/designer/app/designer/shared/assets/assets-shell.tsx b/apps/designer/app/designer/shared/assets/assets-shell.tsxindex 57e38288c9..a13b2b73fb 100644--- a/apps/designer/app/designer/shared/assets/assets-shell.tsx+++ b/apps/designer/app/designer/shared/assets/assets-shell.tsx@@ -21,9 +21,17 @@ export const AssetsShell = ({return (<Flexdirection="column"- css={{ overflow: "hidden", paddingTop: "$1", paddingBottom: "$3" }}+ css={{+ overflow: "hidden",+ paddingTop: "$spacing$3",+ paddingBottom: "$spacing$9",+ }}>- <Flex css={{ py: "$2", px: "$3" }} gap="2" direction="column">+ <Flex+ css={{ py: "$spacing$5", px: "$spacing$9" }}+ gap="2"+ direction="column"+ ><AssetUpload type={type} /><SearchField {...searchProps} autoFocus placeholder="Search" /></Flex>@@ -32,7 +40,7 @@ export const AssetsShell = ({<Flexcss={{flexDirection: "column",- px: "$3",+ px: "$spacing$9",}}>{children}diff --git a/apps/designer/app/designer/shared/assets/separator.tsx b/apps/designer/app/designer/shared/assets/separator.tsxindex 34ba22c805..6397d86abc 100644--- a/apps/designer/app/designer/shared/assets/separator.tsx+++ b/apps/designer/app/designer/shared/assets/separator.tsx@@ -4,6 +4,6 @@ import {} from "@webstudio-is/design-system";export const Separator = styled(SeparatorPrimitive, {- marginTop: "$1",- marginBottom: "$2",+ marginTop: "$spacing$3",+ marginBottom: "$spacing$5",});diff --git a/apps/designer/app/designer/shared/image-manager/image-info-tigger.tsx b/apps/designer/app/designer/shared/image-manager/image-info-tigger.tsxindex bcc73f2342..6409865835 100644--- a/apps/designer/app/designer/shared/image-manager/image-info-tigger.tsx+++ b/apps/designer/app/designer/shared/image-manager/image-info-tigger.tsx@@ -37,8 +37,8 @@ export const ImageInfoTrigger = ({visibility: cssVars.use(triggerVisibilityVar, "hidden"),position: "absolute",color: "$slate11",- top: "$1",- right: "$1",+ top: "$spacing$3",+ right: "$spacing$3",cursor: "pointer",transition: "opacity 100ms ease","&:hover": {diff --git a/apps/designer/app/designer/shared/image-manager/image-info.tsx b/apps/designer/app/designer/shared/image-manager/image-info.tsxindex d117d535a4..9a4f1c55ab 100644--- a/apps/designer/app/designer/shared/image-manager/image-info.tsx+++ b/apps/designer/app/designer/shared/image-manager/image-info.tsx@@ -19,36 +19,36 @@ export const ImageInfo = ({ asset, onDelete }: ImageInfoProps) => {const { size, meta, id, name } = asset;return (<>- <Box css={{ p: "$2 $3" }}>+ <Box css={{ p: "$spacing$5 $spacing$9" }}><Grid columns={2} align="center" gap={2}><Box css={{ width: 100 }}><Filename variant="label">{name}</Filename></Box>- <Flex align="center" css={{ gap: "$1" }}>+ <Flex align="center" css={{ gap: "$spacing$3" }}><CloudIcon /><Text variant="label">{prettyBytes(size)}</Text></Flex></Grid></Box>{"width" in meta && "height" in meta ? (- <Box css={{ p: "$2 $3" }}>+ <Box css={{ p: "$spacing$5 $spacing$9" }}><Grid columns={2} gap={2} align="center">- <Flex align="center" css={{ gap: "$1" }}>+ <Flex align="center" css={{ gap: "$spacing$3" }}><SizeIcon /><Text variant="label">{meta.width} x {meta.height}</Text></Flex>{" "}- <Flex align="center" css={{ gap: "$1" }}>+ <Flex align="center" css={{ gap: "$spacing$3" }}><AspectRatioIcon /><Text variant="label">{getFormattedAspectRatio(meta)}</Text></Flex></Grid></Box>) : null}- <Box css={{ p: "$2 $3" }}>+ <Box css={{ p: "$spacing$5 $spacing$9" }}><Button variant="red" size="2" onClick={() => onDelete([id])}>- <Flex align="center" css={{ gap: "$1" }}>+ <Flex align="center" css={{ gap: "$spacing$3" }}><TrashIcon />Delete</Flex>diff --git a/apps/designer/app/designer/shared/image-manager/image-thumbnail.tsx b/apps/designer/app/designer/shared/image-manager/image-thumbnail.tsxindex ba578f377e..8c46ab8958 100644--- a/apps/designer/app/designer/shared/image-manager/image-thumbnail.tsx+++ b/apps/designer/app/designer/shared/image-manager/image-thumbnail.tsx@@ -39,7 +39,7 @@ const ThumbnailContainer = styled(Box, {border: "2px solid transparent",borderRadius: "$1",outline: 0,- gap: "$1",+ gap: "$spacing$3",overflow: "hidden",backgroundColor: "$slate4","&:hover": imageInfoTriggerCssVars({ show: true }),@@ -61,8 +61,8 @@ const ThumbnailContainer = styled(Box, {});const Thumbnail = styled(Box, {- width: "$8",- height: "$8",+ width: "$spacing$19",+ height: "$spacing$19",backgroundSize: "contain",backgroundRepeat: "no-repeat",backgroundPosition: "center",diff --git a/apps/designer/app/designer/shared/inspector/collapsible-section.tsx b/apps/designer/app/designer/shared/inspector/collapsible-section.tsxindex e25374c8f6..12cc8c4ffd 100644--- a/apps/designer/app/designer/shared/inspector/collapsible-section.tsx+++ b/apps/designer/app/designer/shared/inspector/collapsible-section.tsx@@ -47,8 +47,8 @@ export const CollapsibleSection = ({gap="1"justify="between"css={{- py: "$3",- px: "$3",+ py: "$spacing$9",+ px: "$spacing$9",color: "$hiContrast",cursor: "default",userSelect: "none",@@ -58,7 +58,7 @@ export const CollapsibleSection = ({<Flexalign="center"justify="center"- css={{ marginRight: "-$space$1", color: "$slate9" }}+ css={{ marginRight: "-$spacing$3", color: "$slate9" }}>{isOpenFinal ? <ChevronLeftIcon /> : <ChevronRightIcon />}</Flex>@@ -70,7 +70,7 @@ export const CollapsibleSection = ({gap="3"direction="column"css={{- p: "$3",+ p: "$spacing$9",paddingTop: 0,"&:empty": {display: "none",diff --git a/packages/design-system/src/components/accordion.tsx b/packages/design-system/src/components/accordion.tsxindex 7f6b0e754f..a54bebb0c0 100644--- a/packages/design-system/src/components/accordion.tsx+++ b/packages/design-system/src/components/accordion.tsx@@ -25,10 +25,10 @@ export const Accordion = React.forwardRef<Accordion.displayName = "Accordion";const StyledItem = styled(AccordionPrimitive.Item, {- borderTop: "1px solid $colors$slate6",+ borderTop: "$spacing$1 solid $colors$slate6","&:last-of-type": {- borderBottom: "1px solid $colors$slate6",+ borderBottom: "$spacing$1 solid $colors$slate6",},});@@ -50,7 +50,7 @@ const StyledTrigger = styled(AccordionPrimitive.Trigger, {display: "flex",alignItems: "center",justifyContent: "space-between",- p: "$2",+ p: "$spacing$5",color: "$hiContrast",width: "100%",@@ -95,7 +95,7 @@ export const AccordionTrigger = React.forwardRef<AccordionTrigger.displayName = "AccordionTrigger";const StyledContent = styled(AccordionPrimitive.Content, {- p: "$2",+ p: "$spacing$5",});export const AccordionItem = StyledItem;diff --git a/packages/design-system/src/components/alert-dialog.tsx b/packages/design-system/src/components/alert-dialog.tsxindex 759294ec1f..673c388702 100644--- a/packages/design-system/src/components/alert-dialog.tsx+++ b/packages/design-system/src/components/alert-dialog.tsx@@ -37,7 +37,7 @@ export const AlertDialogContent = styled(transform: "translate(-50%, -50%)",minWidth: 200,maxHeight: "85vh",- padding: "$4",+ padding: "$spacing$10",marginTop: "-5vh","&:focus": {diff --git a/packages/design-system/src/components/alert.tsx b/packages/design-system/src/components/alert.tsxindex b1fa34f3d8..65ab3dbc04 100644--- a/packages/design-system/src/components/alert.tsx+++ b/packages/design-system/src/components/alert.tsx@@ -16,7 +16,7 @@ export const Alert = styled("div", {variants: {size: {"1": {- p: "$3",+ p: "$spacing$9",},},variant: {diff --git a/packages/design-system/src/components/app-bar.tsx b/packages/design-system/src/components/app-bar.tsxindex 473a639f88..a92f9b1f8d 100644--- a/packages/design-system/src/components/app-bar.tsx+++ b/packages/design-system/src/components/app-bar.tsx@@ -7,13 +7,13 @@ export const AppBar = styled("div", {variants: {size: {1: {- py: "$1",+ py: "$spacing$3",},2: {- py: "$2",+ py: "$spacing$5",},3: {- py: "$3",+ py: "$spacing$9",},},sticky: {@@ -31,7 +31,7 @@ export const AppBar = styled("div", {},border: {true: {- borderBottom: "1px solid",+ borderBottom: "$spacing$1 solid",},},color: {diff --git a/packages/design-system/src/components/avatar.tsx b/packages/design-system/src/components/avatar.tsxindex 2f39c8c1ce..bf970a43eb 100644--- a/packages/design-system/src/components/avatar.tsx+++ b/packages/design-system/src/components/avatar.tsx@@ -37,28 +37,28 @@ const StyledAvatar = styled(AvatarPrimitive.Root, {variants: {size: {"1": {- width: "$3",- height: "$3",+ width: "$spacing$9",+ height: "$spacing$9",},"2": {- width: "$5",- height: "$5",+ width: "$spacing$11",+ height: "$spacing$11",},"3": {- width: "$6",- height: "$6",+ width: "$spacing$13",+ height: "$spacing$13",},"4": {- width: "$7",- height: "$7",+ width: "$spacing$17",+ height: "$spacing$17",},"5": {- width: "$8",- height: "$8",+ width: "$spacing$19",+ height: "$spacing$19",},"6": {- width: "$9",- height: "$9",+ width: "$spacing$20",+ height: "$spacing$20",},},variant: {@@ -235,7 +235,7 @@ export const AvatarGroup = styled("div", {display: "flex",flexDirection: "row-reverse",[`& ${AvatarNestedItem}:nth-child(n+2)`]: {- marginRight: "-$1",+ marginRight: "-$spacing$3",},});@@ -288,8 +288,8 @@ export const Avatar = React.forwardRef<right: "0",boxShadow: "0 0 0 3px $colors$loContrast",borderRadius: "$round",- mr: "-3px",- mb: "-3px",+ mr: "-$spacing$2",+ mb: "-$spacing$2",}}><Status size={size && size > 2 ? "2" : "1"} variant={status} />diff --git a/packages/design-system/src/components/badge.tsx b/packages/design-system/src/components/badge.tsxindex 3739e2ddd4..6186536fd2 100644--- a/packages/design-system/src/components/badge.tsx+++ b/packages/design-system/src/components/badge.tsx@@ -41,13 +41,13 @@ export const Badge = styled("span", {variants: {size: {"1": {- height: "$4",- px: "$1",+ height: "$spacing$10",+ px: "$spacing$3",fontSize: "$1",},"2": {- height: "$5",- px: "$2",+ height: "$spacing$11",+ px: "$spacing$5",fontSize: "$2",},},diff --git a/packages/design-system/src/components/banner.tsx b/packages/design-system/src/components/banner.tsxindex 3a41eb7469..24f55a2611 100644--- a/packages/design-system/src/components/banner.tsx+++ b/packages/design-system/src/components/banner.tsx@@ -13,13 +13,13 @@ export const Banner = styled("div", {display: "flex",justifyContent: "center",alignItems: "center",- gap: "$3",+ gap: "$spacing$9",variants: {size: {"1": {- py: "$1",- px: "$4",+ py: "$spacing$3",+ px: "$spacing$10",},},variant: {diff --git a/packages/design-system/src/components/button.tsx b/packages/design-system/src/components/button.tsxindex ade004b281..999cb8ba8b 100644--- a/packages/design-system/src/components/button.tsx+++ b/packages/design-system/src/components/button.tsx@@ -23,8 +23,8 @@ export const Button = styled("button", {WebkitTapHighlightColor: "rgba(0,0,0,0)",// Custom- height: "$5",- px: "$2",+ height: "$spacing$11",+ px: "$spacing$5",fontFamily: "$sans",fontSize: "$2",fontWeight: 500,@@ -41,20 +41,20 @@ export const Button = styled("button", {size: {"1": {borderRadius: "$1",- height: "$5",- px: "$3",+ height: "$spacing$11",+ px: "$spacing$9",fontSize: "$1",},"2": {borderRadius: "$2",height: 28, // @todo waiting for the sizing scale- px: "$3",+ px: "$spacing$9",fontSize: "$3",},"3": {borderRadius: "$2",- height: "$7",- px: "$4",+ height: "$spacing$17",+ px: "$spacing$10",fontSize: "$4",},},diff --git a/packages/design-system/src/components/card.tsx b/packages/design-system/src/components/card.tsxindex 317e7b8517..ceeaa84c01 100644--- a/packages/design-system/src/components/card.tsx+++ b/packages/design-system/src/components/card.tsx@@ -34,12 +34,12 @@ export const Card = styled("div", {variants: {size: {1: {- width: "$10",- padding: "$5",+ width: "$spacing$30",+ padding: "$spacing$11",},2: {- width: "$12",- padding: "$7",+ width: "$spacing$32",+ padding: "$spacing$17",},},variant: {@@ -71,7 +71,7 @@ export const Card = styled("div", {"@hover": {"&:hover": {backgroundColor: "$panel",- transform: "translateY(-2px)",+ transform: "translateY(-$spacing$2)","&::before": {opacity: "1",},diff --git a/packages/design-system/src/components/checkbox.tsx b/packages/design-system/src/components/checkbox.tsxindex d44cf6f4ee..880e9369ac 100644--- a/packages/design-system/src/components/checkbox.tsx+++ b/packages/design-system/src/components/checkbox.tsx@@ -41,13 +41,13 @@ const StyledCheckbox = styled(CheckboxPrimitive.Root, {variants: {size: {"1": {- width: "$3",- height: "$3",+ width: "$spacing$9",+ height: "$spacing$9",borderRadius: "$1",},"2": {- width: "$5",- height: "$5",+ width: "$spacing$11",+ height: "$spacing$11",borderRadius: "$2",},},diff --git a/packages/design-system/src/components/code.tsx b/packages/design-system/src/components/code.tsxindex fd369c25d9..3601284681 100644--- a/packages/design-system/src/components/code.tsx+++ b/packages/design-system/src/components/code.tsx@@ -4,7 +4,7 @@ export const Code = styled("code", {fontFamily: "$mono",fontSize: "max(12px, 85%)",whiteSpace: "nowrap",- padding: "0 3px 2px 3px",+ padding: "0 $spacing$2 $spacing$2 $spacing$2",variants: {variant: {diff --git a/packages/design-system/src/components/combobox.stories.tsx b/packages/design-system/src/components/combobox.stories.tsxindex 7807371382..aeee375f66 100644--- a/packages/design-system/src/components/combobox.stories.tsx+++ b/packages/design-system/src/components/combobox.stories.tsx@@ -78,7 +78,10 @@ export const Complex: ComponentStory<typeof Combobox> = () => {});return (- <Flex {...getComboboxProps()} css={{ flexDirection: "column", gap: "$3" }}>+ <Flex+ {...getComboboxProps()}+ css={{ flexDirection: "column", gap: "$spacing$9" }}+ ><TextFieldtype="search"prefix={<MagnifyingGlassIcon />}diff --git a/packages/design-system/src/components/combobox.tsx b/packages/design-system/src/components/combobox.tsxindex eefafb8a6f..184f3a1359 100644--- a/packages/design-system/src/components/combobox.tsx+++ b/packages/design-system/src/components/combobox.tsx@@ -25,7 +25,7 @@ import { Box } from "./box";import { Grid } from "./grid";const Listbox = styled("ul", panelStyles, {- p: "$1",+ p: "$spacing$3",margin: 0,overflow: "auto",// @todo need some non-hardcoded value@@ -47,7 +47,7 @@ const Listbox = styled("ul", panelStyles, {});const ListboxItem = styled("li", itemCss, {- padding: "0 $2",+ padding: "0 $spacing$5",margin: 0,borderRadius: "$1",});@@ -68,7 +68,7 @@ const ListboxItemBase: ForwardRefRenderFunction<{...(selected ? { "aria-current": true } : {})}{...rest}>- <Grid align="center" css={{ gridTemplateColumns: "$4 1fr" }}>+ <Grid align="center" css={{ gridTemplateColumns: "$spacing$10 1fr" }}>{selected && <CheckIcon />}<Box css={{ gridColumn: 2 }}>{children}</Box></Grid>diff --git a/packages/design-system/src/components/container.tsx b/packages/design-system/src/components/container.tsxindex 92693f3d6e..35ad2bb7bb 100644--- a/packages/design-system/src/components/container.tsx+++ b/packages/design-system/src/components/container.tsx@@ -8,7 +8,7 @@ export const Container = styled("div", {// Customml: "auto",mr: "auto",- px: "$5",+ px: "$spacing$11",variants: {size: {diff --git a/packages/design-system/src/components/context-menu.tsx b/packages/design-system/src/components/context-menu.tsxindex 651e07f09c..8bcfdbca05 100644--- a/packages/design-system/src/components/context-menu.tsx+++ b/packages/design-system/src/components/context-menu.tsx@@ -40,20 +40,20 @@ export const ContextMenuRadioItem = React.forwardRef<ContextMenuRadioItemProps>(({ children, ...props }, forwardedRef) => (<StyledContextMenuRadioItem {...props} ref={forwardedRef}>- <Box as="span" css={{ position: "absolute", left: "$1" }}>+ <Box as="span" css={{ position: "absolute", left: "$spacing$3" }}><ContextMenuPrimitive.ItemIndicator><Flexcss={{- width: "$3",- height: "$3",+ width: "$spacing$9",+ height: "$spacing$9",alignItems: "center",justifyContent: "center",}}><Boxcss={{- width: "$1",- height: "$1",+ width: "$spacing$3",+ height: "$spacing$3",backgroundColor: "currentColor",borderRadius: "$round",}}@@ -83,7 +83,7 @@ export const ContextMenuCheckboxItem = React.forwardRef<ContextMenuCheckboxItemProps>(({ children, ...props }, forwardedRef) => (<StyledContextMenuCheckboxItem {...props} ref={forwardedRef}>- <Box as="span" css={{ position: "absolute", left: "$1" }}>+ <Box as="span" css={{ position: "absolute", left: "$spacing$3" }}><ContextMenuPrimitive.ItemIndicator><CheckIcon /></ContextMenuPrimitive.ItemIndicator>diff --git a/packages/design-system/src/components/dialog.tsx b/packages/design-system/src/components/dialog.tsxindex 7afee06010..a412a492e3 100644--- a/packages/design-system/src/components/dialog.tsx+++ b/packages/design-system/src/components/dialog.tsx@@ -36,7 +36,7 @@ const StyledContent = styled(DialogPrimitive.Content, panelStyles, {transform: "translate(-50%, -50%)",minWidth: 200,maxHeight: "85vh",- padding: "$4",+ padding: "$spacing$10",marginTop: "-5vh",// animation: `${fadeIn} 125ms linear, ${moveDown} 125ms cubic-bezier(0.22, 1, 0.36, 1)`,@@ -51,8 +51,8 @@ const StyledContent = styled(DialogPrimitive.Content, panelStyles, {const StyledCloseButton = styled(DialogPrimitive.Close, {position: "absolute",- top: "$2",- right: "$2",+ top: "$spacing$5",+ right: "$spacing$5",});type DialogContentPrimitiveProps = React.ComponentProps<diff --git a/packages/design-system/src/components/dropdown-menu.tsx b/packages/design-system/src/components/dropdown-menu.tsxindex b1123d8dd4..b3d981dfe8 100644--- a/packages/design-system/src/components/dropdown-menu.tsx+++ b/packages/design-system/src/components/dropdown-menu.tsx@@ -54,7 +54,7 @@ export const DropdownMenuRadioItem = React.forwardRef<DialogMenuRadioItemProps>(({ children, ...props }, forwardedRef) => (<StyledDropdownMenuRadioItem {...props} ref={forwardedRef}>- <Box as="span" css={{ position: "absolute", left: "$1" }}>+ <Box as="span" css={{ position: "absolute", left: "$spacing$3" }}><DropdownMenuPrimitive.ItemIndicator><CheckIcon /></DropdownMenuPrimitive.ItemIndicator>@@ -82,7 +82,7 @@ export const DropdownMenuCheckboxItem = React.forwardRef<DialogMenuCheckboxItemProps>(({ children, ...props }, forwardedRef) => (<StyledDropdownMenuCheckboxItem {...props} ref={forwardedRef}>- <Box as="span" css={{ position: "absolute", left: "$1" }}>+ <Box as="span" css={{ position: "absolute", left: "$spacing$3" }}><DropdownMenuPrimitive.ItemIndicator><CheckIcon /></DropdownMenuPrimitive.ItemIndicator>diff --git a/packages/design-system/src/components/flex.tsx b/packages/design-system/src/components/flex.tsxindex 66fd092ea0..f6462b96ad 100644--- a/packages/design-system/src/components/flex.tsx+++ b/packages/design-system/src/components/flex.tsx@@ -63,31 +63,31 @@ export const Flex = styled("div", {},gap: {1: {- gap: "$1",+ gap: "$spacing$3",},2: {- gap: "$2",+ gap: "$spacing$5",},3: {- gap: "$3",+ gap: "$spacing$9",},4: {- gap: "$4",+ gap: "$spacing$10",},5: {- gap: "$5",+ gap: "$spacing$11",},6: {- gap: "$6",+ gap: "$spacing$13",},7: {- gap: "$7",+ gap: "$spacing$17",},8: {- gap: "$8",+ gap: "$spacing$19",},9: {- gap: "$9",+ gap: "$spacing$20",},},},diff --git a/packages/design-system/src/components/grid.tsx b/packages/design-system/src/components/grid.tsxindex e517fab7de..1983ea0dae 100644--- a/packages/design-system/src/components/grid.tsx+++ b/packages/design-system/src/components/grid.tsx@@ -69,89 +69,89 @@ export const Grid = styled("div", {},gap: {1: {- gap: "$1",+ gap: "$spacing$3",},2: {- gap: "$2",+ gap: "$spacing$5",},3: {- gap: "$3",+ gap: "$spacing$9",},4: {- gap: "$4",+ gap: "$spacing$10",},5: {- gap: "$5",+ gap: "$spacing$11",},6: {- gap: "$6",+ gap: "$spacing$13",},7: {- gap: "$7",+ gap: "$spacing$17",},8: {- gap: "$8",+ gap: "$spacing$19",},9: {- gap: "$9",+ gap: "$spacing$20",},},gapX: {1: {- columnGap: "$1",+ columnGap: "$spacing$3",},2: {- columnGap: "$2",+ columnGap: "$spacing$5",},3: {- columnGap: "$3",+ columnGap: "$spacing$9",},4: {- columnGap: "$4",+ columnGap: "$spacing$10",},5: {- columnGap: "$5",+ columnGap: "$spacing$11",},6: {- columnGap: "$6",+ columnGap: "$spacing$13",},7: {- columnGap: "$7",+ columnGap: "$spacing$17",},8: {- columnGap: "$8",+ columnGap: "$spacing$19",},9: {- columnGap: "$9",+ columnGap: "$spacing$20",},},gapY: {1: {- rowGap: "$1",+ rowGap: "$spacing$3",},2: {- rowGap: "$2",+ rowGap: "$spacing$5",},3: {- rowGap: "$3",+ rowGap: "$spacing$9",},4: {- rowGap: "$4",+ rowGap: "$spacing$10",},5: {- rowGap: "$5",+ rowGap: "$spacing$11",},6: {- rowGap: "$6",+ rowGap: "$spacing$13",},7: {- rowGap: "$7",+ rowGap: "$spacing$17",},8: {- rowGap: "$8",+ rowGap: "$spacing$19",},9: {- rowGap: "$9",+ rowGap: "$spacing$20",},},},diff --git a/packages/design-system/src/components/icon-button-with-menu.tsx b/packages/design-system/src/components/icon-button-with-menu.tsxindex f6fd3afc02..cad1437eae 100644--- a/packages/design-system/src/components/icon-button-with-menu.tsx+++ b/packages/design-system/src/components/icon-button-with-menu.tsx@@ -10,7 +10,7 @@ const StyledContent = styled(DropdownMenuPrimitive.Content, {overflow: "auto",backgroundColor: "$colors$slate4",borderRadius: "$radii$1",- padding: "$sizes$2",+ 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",});@@ -23,13 +23,13 @@ const itemStyles = {borderRadius: "$radii$1",display: "flex",alignItems: "center",- height: "$sizes$5",- padding: "0 $space$5",+ height: "$spacing$11",+ padding: "0 $spacing$11",position: "relative",- paddingLeft: "$space$5",- paddingRight: "$space$5",+ paddingLeft: "$spacing$11",+ paddingRight: "$spacing$11",userSelect: "none",- gap: "$space$2",+ gap: "$spacing$5","&[data-highlighted]": {background: "$colors$blue10",color: "$colors$blue1",@@ -47,8 +47,8 @@ const itemIndicatorStyle = {};const iconButtonStyle = {- width: "$5",- height: "$5",+ width: "$spacing$11",+ height: "$spacing$11",color: "$colors$gray12",backgroundColor: "$colors$loContrast","&:focus": {diff --git a/packages/design-system/src/components/icon-button.tsx b/packages/design-system/src/components/icon-button.tsxindex b3b2a7d872..d6ba7a1bc2 100644--- a/packages/design-system/src/components/icon-button.tsx+++ b/packages/design-system/src/components/icon-button.tsx@@ -43,8 +43,8 @@ export const IconButton = styled("button", {size: {"1": {borderRadius: 2,- height: "$3",- width: "$3",+ height: "$spacing$9",+ width: "$spacing$9","&:hover, &:focus": {background: "none",border: "none",@@ -52,18 +52,18 @@ export const IconButton = styled("button", {},"2": {borderRadius: "$1",- height: "$6",- width: "$6",+ height: "$spacing$13",+ width: "$spacing$13",},"3": {borderRadius: "$1",- height: "$7",- width: "$7",+ height: "$spacing$17",+ width: "$spacing$17",},"4": {borderRadius: "$2",- height: "$8",- width: "$8",+ height: "$spacing$19",+ width: "$spacing$19",},},},diff --git a/packages/design-system/src/components/kbd.tsx b/packages/design-system/src/components/kbd.tsxindex e59141a44d..04ab2012bb 100644--- a/packages/design-system/src/components/kbd.tsx+++ b/packages/design-system/src/components/kbd.tsx@@ -21,14 +21,14 @@ export const Kbd = styled("kbd", {fontFamily: "inherit",fontWeight: 400,lineHeight: "1.5",- mx: "2px",+ mx: "$spacing$2",variants: {size: {"1": {borderRadius: "$1",px: "0.3em",- height: "$3",+ height: "$spacing$9",minWidth: "1.6em",fontSize: "$1",lineHeight: "$spaces$3",@@ -36,7 +36,7 @@ export const Kbd = styled("kbd", {"2": {borderRadius: "$2",px: "0.5em",- height: "$5",+ height: "$spacing$11",minWidth: "2em",fontSize: "$2",lineHeight: "$spaces$5",diff --git a/packages/design-system/src/components/link.tsx b/packages/design-system/src/components/link.tsxindex e890f710c7..0b27be7134 100644--- a/packages/design-system/src/components/link.tsx+++ b/packages/design-system/src/components/link.tsx@@ -3,7 +3,7 @@ import { __DEPRECATED__Text } from "./__DEPRECATED__/text";export const Link = styled("a", {alignItems: "center",- gap: "$1",+ gap: "$spacing$3",flexShrink: 0,outline: "none",textDecorationLine: "none",diff --git a/packages/design-system/src/components/list.tsx b/packages/design-system/src/components/list.tsxindex 6c98962d64..5ebda09a86 100644--- a/packages/design-system/src/components/list.tsx+++ b/packages/design-system/src/components/list.tsx@@ -17,11 +17,11 @@ const ListBase = styled("ul", {const ListItemBase = styled("li", {display: "grid",- gridTemplateColumns: "$4 1fr",+ gridTemplateColumns: "$spacing$10 1fr",alignItems: "center",justifyContent: "space-between",- height: "$5",- px: "$1",+ height: "$spacing$11",+ px: "$spacing$3",listStyle: "none",borderRadius: "$1",outline: 0,diff --git a/packages/design-system/src/components/menu.tsx b/packages/design-system/src/components/menu.tsxindex a4b7fb09c0..8d4ebe48c2 100644--- a/packages/design-system/src/components/menu.tsx+++ b/packages/design-system/src/components/menu.tsx@@ -16,8 +16,8 @@ export const baseItemCss = css({cursor: "default",userSelect: "none",whiteSpace: "nowrap",- height: "$5",- px: "$5",+ height: "$spacing$11",+ px: "$spacing$11",});export const itemCss = css(baseItemCss, {@@ -40,12 +40,12 @@ export const labelCss = css(baseItemCss, {export const menuCss = css({boxSizing: "border-box",minWidth: 120,- py: "$1",+ py: "$spacing$3",});export const separatorCss = css({height: 1,- my: "$1",+ my: "$spacing$3",backgroundColor: "$slate6",});@@ -68,7 +68,7 @@ export const MenuRadioItem = React.forwardRef<MenuRadioItemProps>(({ children, ...props }, forwardedRef) => (<StyledMenuRadioItem {...props} ref={forwardedRef}>- <Box as="span" css={{ position: "absolute", left: "$1" }}>+ <Box as="span" css={{ position: "absolute", left: "$spacing$3" }}><MenuPrimitive.ItemIndicator><CheckIcon /></MenuPrimitive.ItemIndicator>@@ -90,7 +90,7 @@ export const MenuCheckboxItem = React.forwardRef<MenuCheckboxItemProps>(({ children, ...props }, forwardedRef) => (<StyledMenuCheckboxItem {...props} ref={forwardedRef}>- <Box as="span" css={{ position: "absolute", left: "$1" }}>+ <Box as="span" css={{ position: "absolute", left: "$spacing$3" }}><MenuPrimitive.ItemIndicator><CheckIcon /></MenuPrimitive.ItemIndicator>diff --git a/packages/design-system/src/components/popover.tsx b/packages/design-system/src/components/popover.tsxindex ae5a85a827..ef76a4f3b9 100644--- a/packages/design-system/src/components/popover.tsx+++ b/packages/design-system/src/components/popover.tsx@@ -20,7 +20,7 @@ export const Popover = ({ children, ...props }: PopoverProps) => {const StyledContent = styled(PopoverPrimitive.Content, panelStyles, {backgroundColor: "white",minWidth: 200,- minHeight: "$6",+ minHeight: "$spacing$13",maxWidth: 265,"&:focus": {outline: "none",@@ -69,13 +69,17 @@ export const PopoverHeader = ({ title }: PopoverHeaderProps) => {return (<><Flex- css={{ height: 40, paddingLeft: "$3" }}+ css={{ height: 40, paddingLeft: "$spacing$9" }}align="center"justify="between"><Text variant="title">{title}</Text><PopoverClose asChild>- <IconButton size="2" css={{ marginRight: "$2" }} aria-label="Close">+ <IconButton+ size="2"+ css={{ marginRight: "$spacing$5" }}+ aria-label="Close"+ ><CrossIcon /></IconButton></PopoverClose>diff --git a/packages/design-system/src/components/progress-bar.tsx b/packages/design-system/src/components/progress-bar.tsxindex b44298b9c7..2b147e44d2 100644--- a/packages/design-system/src/components/progress-bar.tsx+++ b/packages/design-system/src/components/progress-bar.tsx@@ -20,7 +20,7 @@ const indeterminateProgress = keyframes({const StyledProgressBar = styled(ProgressPrimitive.Root, {boxSizing: "border-box",position: "relative",- height: "$1",+ height: "$spacing$3",overflow: "hidden",borderRadius: "$pill",diff --git a/packages/design-system/src/components/radio-card.tsx b/packages/design-system/src/components/radio-card.tsxindex eb9ac1ef13..1624457f66 100644--- a/packages/design-system/src/components/radio-card.tsx+++ b/packages/design-system/src/components/radio-card.tsx@@ -15,7 +15,7 @@ const StyledRadioButton = styled("div", {height: 25,boxShadow: "inset 0 0 0 1px $colors$slate7",flexShrink: 0,- mr: "$3",+ mr: "$spacing$9",});const StyledRadioIndicator = styled("div", {@@ -40,7 +40,7 @@ const StyledRadio = styled(RadioGroupPrimitive.Item, {alignItems: "center",borderRadius: "$2",boxShadow: "inset 0 0 0 1px $colors$slate7",- p: "$3",+ p: "$spacing$9","@hover": {"&:hover": {boxShadow: "inset 0 0 0 1px $colors$slate8",diff --git a/packages/design-system/src/components/radio-grid.tsx b/packages/design-system/src/components/radio-grid.tsxindex 2ccee0e1da..7d8ec629ce 100644--- a/packages/design-system/src/components/radio-grid.tsx+++ b/packages/design-system/src/components/radio-grid.tsx@@ -3,7 +3,7 @@ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";export const RadioGridGroup = styled(RadioGroupPrimitive.Root, {display: "grid",- gap: "$1",+ gap: "$spacing$3",gridTemplateColumns: "repeat(5, 1fr)",});@@ -20,8 +20,8 @@ export const RadioGrid = styled(RadioGroupPrimitive.Item, {},borderRadius: "$2",boxShadow: "inset 0 0 0 1px $colors$slate7",- px: "$1",- height: "$6",+ px: "$spacing$3",+ height: "$spacing$13",lineHeight: "$sizes$6",fontSize: "$3","@hover": {diff --git a/packages/design-system/src/components/radio.tsx b/packages/design-system/src/components/radio.tsxindex e5c1ec2532..2f7d6915b2 100644--- a/packages/design-system/src/components/radio.tsx+++ b/packages/design-system/src/components/radio.tsx@@ -16,8 +16,8 @@ const StyledIndicator = styled(RadioGroupPrimitive.Indicator, {"&::after": {content: '""',display: "block",- width: "7px",- height: "7px",+ width: "$spacing$4",+ height: "$spacing$4",borderRadius: "50%",backgroundColor: "$blue9",},@@ -62,17 +62,17 @@ const StyledRadio = styled(RadioGroupPrimitive.Item, {variants: {size: {"1": {- width: "$3",- height: "$3",+ width: "$spacing$9",+ height: "$spacing$9",},"2": {- width: "$5",- height: "$5",+ width: "$spacing$11",+ height: "$spacing$11",[`& ${StyledIndicator}`]: {"&::after": {- width: "$3",- height: "$3",+ width: "$spacing$9",+ height: "$spacing$9",},},},diff --git a/packages/design-system/src/components/scrollbar.tsx b/packages/design-system/src/components/scrollbar.tsxindex 8e72b9603f..be533b04bb 100644--- a/packages/design-system/src/components/scrollbar.tsx+++ b/packages/design-system/src/components/scrollbar.tsx@@ -189,13 +189,13 @@ export const ScrollArea = (props: ScrollAreaProps) => {position: "absolute",top: 0,right: 0,- width: "8px",+ width: "$spacing$5",// Fill in the thumb color"&::after": {content: '""',position: "absolute",- top: "2px",- left: "2px",+ top: "$spacing$2",+ left: "$spacing$2",width: "calc(100% - 4px)",height: "calc(100% - 4px)",// Match Radix hue on graysdiff --git a/packages/design-system/src/components/search-field.tsx b/packages/design-system/src/components/search-field.tsxindex 0694943b1f..992c435b91 100644--- a/packages/design-system/src/components/search-field.tsx+++ b/packages/design-system/src/components/search-field.tsx@@ -16,11 +16,11 @@ import { styled } from "../stitches.config";const SearchIcon = styled(MagnifyingGlassIcon, {color: "$hint",- padding: "$1",+ padding: "$spacing$3",});const AbortButton = styled(IconButton, {- marginRight: "$1",+ marginRight: "$spacing$3",});const SearchFieldBase: ForwardRefRenderFunction<diff --git a/packages/design-system/src/components/section.tsx b/packages/design-system/src/components/section.tsxindex 714d914dcf..e6a65a85e5 100644--- a/packages/design-system/src/components/section.tsx+++ b/packages/design-system/src/components/section.tsx@@ -16,13 +16,13 @@ export const Section = styled("section", {variants: {size: {"1": {- py: "$3",+ py: "$spacing$9",},"2": {- py: "$5",+ py: "$spacing$11",},"3": {- py: "$9",+ py: "$spacing$20",},},},diff --git a/packages/design-system/src/components/select.tsx b/packages/design-system/src/components/select.tsxindex 3d26f7107f..28f7b2dc42 100644--- a/packages/design-system/src/components/select.tsx+++ b/packages/design-system/src/components/select.tsx@@ -11,21 +11,21 @@ const StyledTrigger = styled(SelectPrimitive.SelectTrigger, {alignItems: "center",justifyContent: "space-between",fontVariantNumeric: "tabular-nums",- gap: "$2",+ gap: "$spacing$5",flexShrink: 0,borderRadius: "$1",backgroundColor: "$loContrast",color: "$hiContrast",boxShadow: "inset 0 0 0 1px $colors$slate7",height: 28, // @todo waiting for the sizing scale- px: "$2",+ px: "$spacing$5",fontSize: "$1","&:focus": {boxShadow:"inset 0px 0px 0px 1px $colors$blue8, 0px 0px 0px 1px $colors$blue8",},paddingRight: 0,- paddingLeft: "$sizes$2",+ paddingLeft: "$spacing$5",textTransform: "capitalize",fontWeight: "inherit",@@ -56,7 +56,7 @@ const StyledIcon = styled(SelectPrimitive.Icon, {alignItems: "center",justifyContent: "center",height: "100%",- padding: "2px 2px 2px 0px",+ padding: "$spacing$2 $spacing$2 $spacing$2 0px",});export const SelectContent = styled(SelectPrimitive.Content, {@@ -68,7 +68,7 @@ export const SelectContent = styled(SelectPrimitive.Content, {});export const SelectViewport = styled(SelectPrimitive.Viewport, {- p: "$1",+ p: "$spacing$3",});const StyledItem = styled(SelectPrimitive.Item, {@@ -78,8 +78,8 @@ const StyledItem = styled(SelectPrimitive.Item, {color: "$hiContrast",display: "flex",alignItems: "center",- height: "$5",- padding: "0 $2",+ height: "$spacing$11",+ padding: "0 $spacing$5",position: "relative",userSelect: "none",borderRadius: "$1",@@ -120,7 +120,7 @@ const SelectItemBase = () => {return (<StyledItem {...props} ref={forwardedRef}>- <Grid align="center" css={{ gridTemplateColumns: "$4 1fr" }}>+ <Grid align="center" css={{ gridTemplateColumns: "$spacing$10 1fr" }}><SelectPrimitive.ItemIndicator><CheckIcon /></SelectPrimitive.ItemIndicator>diff --git a/packages/design-system/src/components/separator.tsx b/packages/design-system/src/components/separator.tsxindex fb4c7eceb5..4b2b4ab865 100644--- a/packages/design-system/src/components/separator.tsx+++ b/packages/design-system/src/components/separator.tsx@@ -12,33 +12,33 @@ export const Separator = styled(SeparatorPrimitive.Root, {size: {"1": {'&[data-orientation="horizontal"]': {- height: "1px",- width: "$3",+ height: "$spacing$1",+ width: "$spacing$9",},'&[data-orientation="vertical"]': {- width: "1px",- height: "$3",+ width: "$spacing$1",+ height: "$spacing$9",},},"2": {'&[data-orientation="horizontal"]': {- height: "2px",- width: "$7",+ height: "$spacing$2",+ width: "$spacing$17",},'&[data-orientation="vertical"]': {- width: "2px",- height: "$7",+ width: "$spacing$2",+ height: "$spacing$17",},},auto: {'&[data-orientation="horizontal"]': {- height: "1px",+ height: "$spacing$1",},'&[data-orientation="vertical"]': {- width: "1px",+ width: "$spacing$1",},},},diff --git a/packages/design-system/src/components/sheet.tsx b/packages/design-system/src/components/sheet.tsxindex 6f6e2fb39a..b71b51a04f 100644--- a/packages/design-system/src/components/sheet.tsx+++ b/packages/design-system/src/components/sheet.tsx@@ -43,13 +43,13 @@ export const Sheet = ({ children, ...props }: SheetProps) => {};const slideIn = keyframes({- from: { transform: "$$transformValue" },+ from: { transform: "$transformValue" },to: { transform: "translate3d(0,0,0)" },});const slideOut = keyframes({from: { transform: "translate3d(0,0,0)" },- to: { transform: "$$transformValue" },+ to: { transform: "$transformValue" },});const StyledContent = styled(DialogPrimitive.Content, {@@ -110,8 +110,8 @@ const StyledContent = styled(DialogPrimitive.Content, {const StyledCloseButton = styled(DialogPrimitive.Close, {position: "absolute",- top: "$2",- right: "$2",+ top: "$spacing$5",+ right: "$spacing$5",});type SheetContentVariants = VariantProps<typeof StyledContent>;diff --git a/packages/design-system/src/components/sidebar-tabs.tsx b/packages/design-system/src/components/sidebar-tabs.tsxindex 99f3236bb5..8797133a35 100644--- a/packages/design-system/src/components/sidebar-tabs.tsx+++ b/packages/design-system/src/components/sidebar-tabs.tsx@@ -13,7 +13,7 @@ export const SidebarTabs = styled(TabsPrimitive.Root, {export const SidebarTabsTrigger = styled(TabsPrimitive.Trigger, {flexShrink: 0,display: "flex",- size: "$7",+ size: "$spacing$17",m: 0,userSelect: "none",outline: "none",diff --git a/packages/design-system/src/components/simple-toggle.tsx b/packages/design-system/src/components/simple-toggle.tsxindex 2d624c65d0..231b8cc531 100644--- a/packages/design-system/src/components/simple-toggle.tsx+++ b/packages/design-system/src/components/simple-toggle.tsx@@ -25,8 +25,8 @@ export const SimpleToggle = styled(TogglePrimitive.Root, {"&::after": {boxSizing: "border-box",},- height: "$5",- width: "$5",+ height: "$spacing$11",+ width: "$spacing$11",backgroundColor: "transparent","@hover": {"&:hover": {diff --git a/packages/design-system/src/components/skeleton.tsx b/packages/design-system/src/components/skeleton.tsxindex a4194c41ee..4b3e425249 100644--- a/packages/design-system/src/components/skeleton.tsx+++ b/packages/design-system/src/components/skeleton.tsx@@ -30,47 +30,47 @@ export const Skeleton = styled("div", {variant: {avatar1: {borderRadius: "$round",- height: "$3",- width: "$3",+ height: "$spacing$9",+ width: "$spacing$9",},avatar2: {borderRadius: "$round",- height: "$5",- width: "$5",+ height: "$spacing$11",+ width: "$spacing$11",},avatar3: {borderRadius: "$round",- height: "$6",- width: "$6",+ height: "$spacing$13",+ width: "$spacing$13",},avatar4: {borderRadius: "$round",- height: "$7",- width: "$7",+ height: "$spacing$17",+ width: "$spacing$17",},avatar5: {borderRadius: "$round",- height: "$8",- width: "$8",+ height: "$spacing$19",+ width: "$spacing$19",},avatar6: {borderRadius: "$round",- height: "$9",- width: "$9",+ height: "$spacing$20",+ width: "$spacing$20",},text: {- height: "$1",+ height: "$spacing$3",},title: {- height: "$5",+ height: "$spacing$11",},heading: {- height: "$3",+ height: "$spacing$9",},button: {borderRadius: "$1",- height: "$5",- width: "$8",+ height: "$spacing$11",+ width: "$spacing$19",},},},diff --git a/packages/design-system/src/components/switch.tsx b/packages/design-system/src/components/switch.tsxindex 56e42f908b..1f8231b920 100644--- a/packages/design-system/src/components/switch.tsx+++ b/packages/design-system/src/components/switch.tsx@@ -11,11 +11,11 @@ const StyledThumb = styled(SwitchPrimitive.Thumb, {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(1px)",+ transform: "translateX($spacing$1)",willChange: "transform",'&[data-state="checked"]': {- transform: "translateX(11px)",+ transform: "translateX(1$spacing$1)",},});@@ -57,18 +57,18 @@ const StyledSwitch = styled(SwitchPrimitive.Root, {variants: {size: {"1": {- width: "$5",- height: "$3",+ width: "$spacing$11",+ height: "$spacing$9",},"2": {- width: "$7",- height: "$5",+ width: "$spacing$17",+ height: "$spacing$11",[`& ${StyledThumb}`]: {width: 21,height: 21,- transform: "translateX(2px)",+ transform: "translateX($spacing$2)",'&[data-state="checked"]': {- transform: "translateX(22px)",+ transform: "translateX(2$spacing$2)",},},},diff --git a/packages/design-system/src/components/tab-link.tsx b/packages/design-system/src/components/tab-link.tsxindex 35898d86cc..187943ea21 100644--- a/packages/design-system/src/components/tab-link.tsx+++ b/packages/design-system/src/components/tab-link.tsx@@ -3,11 +3,11 @@ import { styled } from "../stitches.config";export const TabLink = styled("a", {position: "relative",flexShrink: 0,- height: "$6",+ height: "$spacing$13",display: "inline-flex",lineHeight: 1,fontSize: "$1",- px: "$3",+ px: "$spacing$9",userSelect: "none",outline: "none",alignItems: "center",diff --git a/packages/design-system/src/components/table.tsx b/packages/design-system/src/components/table.tsxindex b10d223ecc..c7f24679b3 100644--- a/packages/design-system/src/components/table.tsx+++ b/packages/design-system/src/components/table.tsx@@ -2,7 +2,7 @@ import { styled } from "../stitches.config";export const Caption = styled("caption", {textAlign: "start",- marginBottom: "$5",+ marginBottom: "$spacing$11",});export const Tbody = styled("tbody", {@@ -17,8 +17,8 @@ export const Th = styled("th", {fontWeight: "unset",textAlign: "start",fontSize: "$2",- py: "$2",- borderBottom: "1px solid $gray4",+ py: "$spacing$5",+ borderBottom: "$spacing$1 solid $gray4",variants: {align: {start: {@@ -33,10 +33,10 @@ export const Th = styled("th", {},border: {solid: {- borderBottom: "1px solid $gray4",+ borderBottom: "$spacing$1 solid $gray4",},dashed: {- borderBottom: "1px dashed $gray8",+ borderBottom: "$spacing$1 dashed $gray8",},},},@@ -47,8 +47,8 @@ export const Th = styled("th", {});export const Td = styled("td", {- py: "$2",- borderBottom: "1px solid $gray4",+ py: "$spacing$5",+ borderBottom: "$spacing$1 solid $gray4",fontSize: "$2",variants: {align: {@@ -64,10 +64,10 @@ export const Td = styled("td", {},border: {solid: {- borderBottom: "1px solid $gray4",+ borderBottom: "$spacing$1 solid $gray4",},dashed: {- borderBottom: "1px dashed $gray8",+ borderBottom: "$spacing$1 dashed $gray8",},},},diff --git a/packages/design-system/src/components/tabs.tsx b/packages/design-system/src/components/tabs.tsxindex 036d9a435d..5ab0d68f7b 100644--- a/packages/design-system/src/components/tabs.tsx+++ b/packages/design-system/src/components/tabs.tsx@@ -12,12 +12,12 @@ export const Tabs = styled(TabsPrimitive.Root, {export const TabsTrigger = styled(TabsPrimitive.Trigger, {flexShrink: 0,- height: "$7",+ height: "$spacing$17",display: "inline-flex",lineHeight: 1,fontFamily: "inherit",fontSize: "$1",- px: "$2",+ px: "$spacing$5",userSelect: "none",outline: "none",alignItems: "center",@@ -25,7 +25,7 @@ export const TabsTrigger = styled(TabsPrimitive.Trigger, {border: "none",backgroundColor: "transparent",["&:first-child"]: {- paddingLeft: "$3",+ paddingLeft: "$spacing$9",},[`& > ${Text}`]: {color: "$gray9",diff --git a/packages/design-system/src/components/text-area.tsx b/packages/design-system/src/components/text-area.tsxindex f04dcbeb2d..2b49e23f8b 100644--- a/packages/design-system/src/components/text-area.tsx+++ b/packages/design-system/src/components/text-area.tsx@@ -7,7 +7,7 @@ export const TextArea = styled("textarea", {fontFamily: "inherit",margin: "0",outline: "none",- padding: "$1",+ padding: "$spacing$3",width: "100%",WebkitTapHighlightColor: "rgba(0,0,0,0)",backgroundColor: "$loContrast",@@ -49,19 +49,19 @@ export const TextArea = styled("textarea", {borderRadius: "$1",fontSize: "$1",lineHeight: "16px",- px: "$1",+ px: "$spacing$3",},"2": {borderRadius: "$1",fontSize: "$2",lineHeight: "20px",- px: "$1",+ px: "$spacing$3",},"3": {borderRadius: "$2",fontSize: "$3",lineHeight: "23px",- px: "$2",+ px: "$spacing$5",},},state: {diff --git a/packages/design-system/src/components/text-field.tsx b/packages/design-system/src/components/text-field.tsxindex 0efd5fbcc0..c0951bdef7 100644--- a/packages/design-system/src/components/text-field.tsx+++ b/packages/design-system/src/components/text-field.tsx@@ -23,8 +23,8 @@ const getTextFieldSuffixCssVars = (state: "focus" | "hover") => {};const textFieldIconBaseStyle = css({- height: "$5",- minWidth: "$2",+ height: "$spacing$11",+ minWidth: "$spacing$5",display: "inline-flex",alignItems: "center",justifyContent: "center",@@ -134,8 +134,8 @@ const TextFieldBase = styled("div", {boxShadow: "inset 0 0 0 1px $colors$slate7",color: "$hiContrast",fontVariantNumeric: "tabular-nums",- gap: "$1",- px: "$2",+ gap: "$spacing$3",+ px: "$spacing$5",borderRadius: "$1",fontFamily: "$sans",fontSize: "$1",diff --git a/packages/design-system/src/components/toast.tsx b/packages/design-system/src/components/toast.tsxindex 0cef44d2ce..40f6d2a9af 100644--- a/packages/design-system/src/components/toast.tsx+++ b/packages/design-system/src/components/toast.tsx@@ -45,10 +45,10 @@ const StyledViewport = styled(ToastPrimitive.Viewport, {const StyledToast = styled(ToastPrimitive.Root, {borderRadius: 6,boxShadow: "0px 2px 7px rgba(0, 0, 0, 0.1), 0px 5px 17px rgba(0, 0, 0, 0.15)",- padding: "$3",+ padding: "$spacing$9",display: "flex",maxWidth: 250,- gap: "$3",+ gap: "$spacing$9",alignItems: "center",color: "$highContrast",fontWeight: 500,@@ -94,7 +94,7 @@ const StyledToast = styled(ToastPrimitive.Root, {});const StyledTitle = styled(ToastPrimitive.Title, {- marginBottom: "$1",+ marginBottom: "$spacing$3",});export const Toaster = () => {@@ -112,8 +112,8 @@ export const Toaster = () => {<Boxcss={{svg: {- width: "$5",- height: "$5",+ width: "$spacing$11",+ height: "$spacing$11",},}}>diff --git a/packages/design-system/src/components/toggle-group.tsx b/packages/design-system/src/components/toggle-group.tsxindex c0456df718..a4ba1953a0 100644--- a/packages/design-system/src/components/toggle-group.tsx+++ b/packages/design-system/src/components/toggle-group.tsx@@ -20,8 +20,8 @@ export const Item = styled(ToggleGroupPrimitive.Item, {justifyContent: "center",marginLeft: 1,"&": {- px: "$2",- py: "$1",+ px: "$spacing$5",+ py: "$spacing$3",},"&:first-child": {marginLeft: 0,diff --git a/packages/design-system/src/components/tooltip.tsx b/packages/design-system/src/components/tooltip.tsxindex c7308df7df..5db7ee8713 100644--- a/packages/design-system/src/components/tooltip.tsx+++ b/packages/design-system/src/components/tooltip.tsx@@ -19,7 +19,7 @@ const Content = styled(TooltipPrimitive.Content, {backgroundColor: "$hiContrast",color: "$loContrast",borderRadius: "$1",- padding: "$1 $2",+ 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.tsxindex 03fdca7b2e..de597fd683 100644--- a/packages/design-system/src/components/tree/tree-node.tsx+++ b/packages/design-system/src/components/tree/tree-node.tsx@@ -117,8 +117,8 @@ const CollapsibleTrigger = styled(Collapsible.Trigger, {position: "absolute",// We want the button to take extra space so it's easier to hit- ml: "-$1",- pl: "$1",+ ml: "-$spacing$3",+ pl: "$spacing$3",});const TriggerPlaceholder = styled(Box, { width: INDENT });@@ -339,7 +339,7 @@ export const TreeItemLabel = ({}) => (<>{prefix}- <Text truncate css={{ ml: prefix ? "$1" : 0 }}>+ <Text truncate css={{ ml: prefix ? "$spacing$3" : 0 }}>{children}</Text></>diff --git a/packages/design-system/src/components/verified-badge.tsx b/packages/design-system/src/components/verified-badge.tsxindex 42dafc0395..c9f067a355 100644--- a/packages/design-system/src/components/verified-badge.tsx+++ b/packages/design-system/src/components/verified-badge.tsx@@ -10,8 +10,8 @@ const StyledVerifiedBadge = styled("div", Flex, {color: "white",flexShrink: 0,justifyContent: "center",- width: "$3",- height: "$3",+ width: "$spacing$9",+ height: "$spacing$9",});type VerifiedBadgeProps = React.ComponentProps<typeof StyledVerifiedBadge> & {