diff --git a/site/src/components/Avatar/Avatar.tsx b/site/src/components/Avatar/Avatar.tsx index 89de1f174ba4b..5fe92aae2d2ed 100644 --- a/site/src/components/Avatar/Avatar.tsx +++ b/site/src/components/Avatar/Avatar.tsx @@ -11,24 +11,24 @@ export type AvatarProps = MuiAvatarProps & { }; const sizeStyles = { - xs: (theme) => ({ - width: theme.spacing(2), - height: theme.spacing(2), - fontSize: theme.spacing(1), + xs: { + width: 16, + height: 16, + fontSize: 8, fontWeight: 700, - }), - sm: (theme) => ({ - width: theme.spacing(3), - height: theme.spacing(3), - fontSize: theme.spacing(1.5), + }, + sm: { + width: 24, + height: 24, + fontSize: 12, fontWeight: 600, - }), + }, md: {}, - xl: (theme) => ({ - width: theme.spacing(6), - height: theme.spacing(6), - fontSize: theme.spacing(3), - }), + xl: { + width: 48, + height: 48, + fontSize: 24, + }, } satisfies Record>; const colorStyles = { diff --git a/site/src/components/AvatarData/AvatarData.tsx b/site/src/components/AvatarData/AvatarData.tsx index ba5d7db14dfeb..2f8b59a30a451 100644 --- a/site/src/components/AvatarData/AvatarData.tsx +++ b/site/src/components/AvatarData/AvatarData.tsx @@ -28,7 +28,7 @@ export const AvatarData: FC = ({ direction="row" alignItems="center" css={{ - minHeight: theme.spacing(5), // Make it predictable for the skeleton + minHeight: 40, // Make it predictable for the skeleton width: "100%", lineHeight: "150%", }} diff --git a/site/src/components/CodeExample/CodeExample.tsx b/site/src/components/CodeExample/CodeExample.tsx index aaf5aca6432a0..7f6dfc62cefbf 100644 --- a/site/src/components/CodeExample/CodeExample.tsx +++ b/site/src/components/CodeExample/CodeExample.tsx @@ -26,8 +26,8 @@ export const CodeExample: FC = (props) => { color: theme.palette.primary.contrastText, fontFamily: MONOSPACE_FONT_FAMILY, fontSize: 14, - borderRadius: theme.shape.borderRadius, - padding: theme.spacing(1), + borderRadius: 8, + padding: 8, lineHeight: "150%", border: `1px solid ${theme.palette.divider}`, }} @@ -35,7 +35,7 @@ export const CodeExample: FC = (props) => { > > = ({ css` - border-radius: ${theme.shape.borderRadius}px; - padding: ${theme.spacing(0.85)}; + border-radius: 8px; + padding: 8px; min-width: 32px; &:hover { @@ -64,15 +64,7 @@ export const CopyButton: React.FC> = ({ ) : ( )} - {ctaCopy && ( -
({ - marginLeft: theme.spacing(1), - })} - > - {ctaCopy} -
- )} + {ctaCopy &&
{ctaCopy}
}
diff --git a/site/src/components/Dashboard/DashboardLayout.tsx b/site/src/components/Dashboard/DashboardLayout.tsx index 1947e3ef9cbda..e06888c6b3776 100644 --- a/site/src/components/Dashboard/DashboardLayout.tsx +++ b/site/src/components/Dashboard/DashboardLayout.tsx @@ -60,7 +60,7 @@ export const DashboardLayout: FC = () => { sx: (theme) => ({ background: theme.palette.background.paper, color: theme.palette.text.primary, - maxWidth: theme.spacing(55), + maxWidth: 440, flexDirection: "row", borderColor: theme.palette.info.light, diff --git a/site/src/components/Dashboard/DeploymentBanner/DeploymentBannerView.tsx b/site/src/components/Dashboard/DeploymentBanner/DeploymentBannerView.tsx index fe742c9b9c495..847761dceda55 100644 --- a/site/src/components/Dashboard/DeploymentBanner/DeploymentBannerView.tsx +++ b/site/src/components/Dashboard/DeploymentBanner/DeploymentBannerView.tsx @@ -46,18 +46,18 @@ const styles = { align-items: center; `, category: (theme) => ({ - marginRight: theme.spacing(2), + marginRight: 16, color: theme.palette.text.primary, }), values: (theme) => ({ display: "flex", - gap: theme.spacing(1), + gap: 8, color: theme.palette.text.secondary, }), - value: (theme) => css` + value: css` display: flex; align-items: center; - gap: ${theme.spacing(0.5)}; + gap: 4px; & svg { width: 12px; @@ -129,7 +129,7 @@ export const DeploymentBannerView: FC = (props) => { align-items: center; justify-content: center; background-color: ${unhealthy ? colors.red[10] : undefined}; - padding: ${theme.spacing(0, 1.5)}; + padding: 0 12px; height: ${bannerHeight}px; color: #fff; @@ -142,9 +142,9 @@ export const DeploymentBannerView: FC = (props) => { const statusSummaryStyle = className` ${theme.typography.body2 as CSSObject} - margin: ${theme.spacing(0, 0, 0.5, 1.5)}; - width: ${theme.spacing(50)}; - padding: ${theme.spacing(2)}; + margin: 0 0 4px 12px; + width: 400px; + padding: 16px; color: ${theme.palette.text.primary}; background-color: ${theme.palette.background.paper}; border: 1px solid ${theme.palette.divider}; @@ -158,13 +158,13 @@ export const DeploymentBannerView: FC = (props) => { height: bannerHeight, bottom: 0, zIndex: 1, - paddingRight: theme.spacing(2), + paddingRight: 16, backgroundColor: theme.palette.background.paper, display: "flex", alignItems: "center", fontFamily: MONOSPACE_FONT_FAMILY, fontSize: 12, - gap: theme.spacing(4), + gap: 32, borderTop: `1px solid ${theme.palette.divider}`, overflowX: "auto", whiteSpace: "nowrap", @@ -204,7 +204,7 @@ export const DeploymentBannerView: FC = (props) => { ) } open={process.env.STORYBOOK === "true" ? true : undefined} - css={{ marginRight: theme.spacing(-2) }} + css={{ marginRight: -16 }} > {unhealthy ? ( @@ -323,7 +323,7 @@ export const DeploymentBannerView: FC = (props) => { marginLeft: "auto", display: "flex", alignItems: "center", - gap: theme.spacing(2), + gap: 16, }} > @@ -335,23 +335,24 @@ export const DeploymentBannerView: FC = (props) => {