From 69a35549d475543a9e1b45e7760f4f49406f185b Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Fri, 30 Oct 2026 15:33:14 -0400 Subject: [PATCH] fix(mobile): align account creation with settings styles --- apps/mobile/app/(app)/create-account.tsx | 129 ++++++++++++----------- 1 file changed, 69 insertions(+), 60 deletions(-) diff --git a/apps/mobile/app/(app)/create-account.tsx b/apps/mobile/app/(app)/create-account.tsx index 0072975..6122b2a 100644 --- a/apps/mobile/app/(app)/create-account.tsx +++ b/apps/mobile/app/(app)/create-account.tsx @@ -5,7 +5,6 @@ import { useEffect, useRef, useState } from "react" import { KeyboardAvoidingView, Platform, - Pressable, ScrollView, StyleSheet, Switch, @@ -16,6 +15,7 @@ import { SafeAreaView } from "react-native-safe-area-context" import { toast } from "sonner-native" import { Button, Input, LoadingView } from "@/components/ui/primitives" +import { colors, spacing } from "@/lib/theme" import { api } from "@otunes/convex/_generated/api" export default function CreateAccountScreen() { @@ -74,15 +74,6 @@ export default function CreateAccountScreen() { ( - router.back()} - style={styles.back} - > - ‹ Users - - ), gestureEnabled: !submitting, }} /> @@ -100,48 +91,60 @@ export default function CreateAccountScreen() { > - Name - - Email - - Password - + + Name + + + + Email + + + + Password + + Grant admin access void handleCreate()} - tint={{ background: "#fff", foreground: "#000" }} + tint={{ + background: colors.dark.primary, + foreground: colors.dark.primaryForeground, + }} /> @@ -167,25 +173,28 @@ export default function CreateAccountScreen() { const styles = StyleSheet.create({ screen: { flex: 1, backgroundColor: "#000" }, - form: { padding: 24, gap: 12 }, - text: { color: "#fff", fontSize: 16 }, + form: { padding: spacing.lg, gap: spacing.lg }, + field: { gap: spacing.sm }, + label: { + color: colors.dark.mutedForeground, + fontSize: 12, + fontWeight: "600", + textTransform: "uppercase", + letterSpacing: 0.6, + }, + text: { color: colors.dark.foreground, fontSize: 16, flexShrink: 1 }, input: { - backgroundColor: "#000", - color: "#fff", - borderRadius: 0, - borderWidth: 0, - borderBottomWidth: 1, - borderColor: "#555", - paddingHorizontal: 0, - marginBottom: 12, + backgroundColor: colors.dark.muted, + color: colors.dark.foreground, + borderColor: colors.dark.border, }, row: { flexDirection: "row", alignItems: "center", justifyContent: "space-between", - paddingVertical: 12, + gap: spacing.md, + minHeight: 48, }, - back: { minHeight: 44, justifyContent: "center" }, - message: { padding: 24 }, - error: { color: "#ff7777" }, + message: { padding: spacing.lg }, + error: { color: colors.dark.destructive, fontSize: 14, lineHeight: 20 }, })