An open source design system that's fully customizable and agent ready
TypeScript
chore(cli): adopt Center padding prop in login templates (#2594 follow-up) (#4764)
Jiun Shinb54224faa80c
diff --git a/packages/cli/assets/templates/pages/login-card/page.tsx b/packages/cli/assets/templates/pages/login-card/page.tsxindex bc7f484ec7..efaa052cc6 100644--- a/packages/cli/assets/templates/pages/login-card/page.tsx+++ b/packages/cli/assets/templates/pages/login-card/page.tsx@@ -58,7 +58,6 @@ const GoogleIcon = (props: React.SVGProps<SVGSVGElement>) => (const pageStyle: CSSProperties = {minHeight: '100%',backgroundColor: 'var(--color-background-body)',- padding: 'var(--spacing-6)',};// Cap the column at 400px but let it shrink to fit narrow screens (Stack// has no maxWidth prop, so it's set here).@@ -87,7 +86,7 @@ export default function LoginSimple() {};return (- <Center axis="both" style={pageStyle}>+ <Center axis="both" padding={6} style={pageStyle}><VStack gap={4} hAlign="center" style={contentStyle}>{/* Logo */}<VStack gap={2} hAlign="center">diff --git a/packages/cli/assets/templates/pages/login-split/page.tsx b/packages/cli/assets/templates/pages/login-split/page.tsxindex 284d5888a4..9e34f09265 100644--- a/packages/cli/assets/templates/pages/login-split/page.tsx+++ b/packages/cli/assets/templates/pages/login-split/page.tsx@@ -33,11 +33,10 @@ const COLUMN_MIN_WIDTH = 240;// tightens the inset at that same point, keyed to the card width (not the// window) so it never desyncs.// minHeight:100% fills the host so the centered card never leaves an unpainted-// band; padding keeps it off the surface edges.+// band; Center's padding prop keeps it off the surface edges.const pageStyle: CSSProperties = {minHeight: '100%',backgroundColor: 'var(--color-background-body)',- padding: 'var(--spacing-6)',};const cardWrap: CSSProperties = {width: '100%',@@ -98,7 +97,7 @@ export default function LoginTwoColumn() {};return (- <Center axis="both" style={pageStyle}>+ <Center axis="both" padding={6} style={pageStyle}><style>{LOGIN_SPLIT_CSS}</style><VStack gap={4} width="100%"><div style={cardWrap}>diff --git a/packages/cli/assets/templates/pages/login-sso/page.tsx b/packages/cli/assets/templates/pages/login-sso/page.tsxindex 3a09a6cf5f..10a81745dd 100644--- a/packages/cli/assets/templates/pages/login-sso/page.tsx+++ b/packages/cli/assets/templates/pages/login-sso/page.tsx@@ -27,7 +27,6 @@ const pageStyle: CSSProperties = {backgroundImage: `url(${BG_URL})`,backgroundSize: 'cover',backgroundPosition: 'center',- padding: 'var(--spacing-6)',};type SSOProvider = {@@ -98,7 +97,7 @@ export default function LoginSSO() {};return (- <Center axis="both" style={pageStyle}>+ <Center axis="both" padding={6} style={pageStyle}><Card padding={8} width="100%" maxWidth={400}><VStack gap={4} hAlign="stretch">{/* ── Step 1: Email entry ── */}diff --git a/packages/cli/assets/templates/pages/login/page.tsx b/packages/cli/assets/templates/pages/login/page.tsxindex cd29bd7a10..2a66fc196f 100644--- a/packages/cli/assets/templates/pages/login/page.tsx+++ b/packages/cli/assets/templates/pages/login/page.tsx@@ -17,7 +17,6 @@ import {CubeIcon} from '@heroicons/react/24/outline';const pageStyle: CSSProperties = {minHeight: '100%',backgroundColor: 'var(--color-background-body)',- padding: 'var(--spacing-6)',};// Cap the column at 400px but let it shrink to fit narrow screens (Stack// has no maxWidth prop, so it's set here).@@ -43,7 +42,7 @@ export default function LoginPage() {};return (- <Center axis="both" style={pageStyle}>+ <Center axis="both" padding={6} style={pageStyle}><VStack gap={4} hAlign="center" style={contentStyle}>{/* Logo */}<VStack gap={2} hAlign="center">