arbret/frontend/app/styles/auth-form.ts

76 lines
1.5 KiB
TypeScript
Raw Normal View History

2025-12-18 22:31:19 +01:00
import { CSSProperties } from "react";
// Import shared tokens and styles to avoid duplication
// Note: We can't directly import tokens from shared.ts as it's not exported,
// so we'll use the shared style objects where possible
import {
layoutStyles,
cardStyles,
formStyles,
buttonStyles,
bannerStyles,
typographyStyles,
} from "./shared";
2025-12-18 22:31:19 +01:00
export const authFormStyles: Record<string, CSSProperties> = {
main: {
...layoutStyles.contentCentered,
2025-12-18 22:31:19 +01:00
minHeight: "100vh",
padding: "1rem",
},
container: {
width: "100%",
maxWidth: "420px",
},
card: {
...cardStyles.card,
2025-12-18 22:31:19 +01:00
padding: "3rem 2.5rem",
},
header: {
textAlign: "center" as const,
marginBottom: "2.5rem",
},
title: {
...typographyStyles.pageTitle,
2025-12-18 22:31:19 +01:00
fontSize: "2.5rem",
textAlign: "center" as const,
2025-12-18 22:31:19 +01:00
},
subtitle: {
...typographyStyles.pageSubtitle,
textAlign: "center" as const,
2025-12-18 22:31:19 +01:00
},
form: {
...formStyles.form,
2025-12-18 22:31:19 +01:00
gap: "1.5rem",
},
field: {
...formStyles.field,
2025-12-18 22:31:19 +01:00
},
label: {
...formStyles.label,
2025-12-18 22:31:19 +01:00
},
input: {
...formStyles.input,
2025-12-18 22:31:19 +01:00
},
button: {
...buttonStyles.primaryButton,
2025-12-18 22:31:19 +01:00
marginTop: "0.5rem",
},
error: {
...bannerStyles.errorBanner,
2025-12-18 22:31:19 +01:00
textAlign: "center" as const,
},
footer: {
fontFamily: "'DM Sans', system-ui, sans-serif",
textAlign: "center" as const,
marginTop: "2rem",
color: "rgba(255, 255, 255, 0.5)",
fontSize: "0.875rem",
},
link: {
color: "#a78bfa",
textDecoration: "none",
fontWeight: 500,
},
};