frontend: slight adjust input borders and colors
Parents:
220d1612 file(s) changed
- frontend/components/ui/Input.tsx +3 -3
- frontend/constants/theme.ts +4 -1
frontend/components/ui/Input.tsx
@@ -1,4 +1,4 @@
1 - import React from 'react';
1 + import React, { useState } from 'react';
2 2 import {
3 3 TextInput,
4 4 TextInputProps,
@@ -26,12 +26,12 @@ showPasswordToggle = false,
26 26 style,
27 27 ...props
28 28 }) => {
29 - const [showPassword, setShowPassword] = React.useState(false);
29 + const [showPassword, setShowPassword] = useState(false);
30 30 const textColor = useThemeColor({}, 'text');
31 31 const backgroundColor = useThemeColor({}, 'inputBackgroundColor');
32 32 const borderColor = useThemeColor({}, 'inputBorderColor');
33 33 const errorColor = '#ef4444';
34 - const placeholderColor = useThemeColor({ light: '#9ca3af', dark: '#6b7280' }, 'placeholder');
34 + const placeholderColor = useThemeColor({}, 'inputPlaceholderColor');
35 35
36 36 const keyboardType = type === 'email' ? 'email-address' : 'default';
37 37 const secureTextEntry = type === 'password' && !showPassword;
frontend/constants/theme.ts
@@ -16,9 +16,11 @@
16 16 // Text Colors
17 17 const TEXT_PRIMARY = '#0f172a';
18 18 const TEXT_SECONDARY = '#64748b';
19 + const TEXT_PLACEHOLDER = '#94A3B8';
19 20
20 21 // Borders & Accents
21 22 const BORDER_SUBTLE = '#f1f5f9';
23 + const BORDER_SUBTLE_GRAY = '#E5E7EB';
22 24 const STATUS_ACTIVE_BG = 'rgba(19, 236, 91, 0.1)';
23 25
24 26 // Semantic Color Pills and stuff
@@ -48,8 +50,9 @@ tabIconSelected: NEON_GREEN,
48 50
49 51 // Form Inputs
50 52 inputBackgroundColor: SURFACE_LIGHT,
51 - inputBorderColor: BORDER_SUBTLE,
53 + inputBorderColor: BORDER_SUBTLE_GRAY,
52 54 inputFocusBorderColor: NEON_GREEN,
55 + inputPlaceholderColor: TEXT_PLACEHOLDER,
53 56
54 57 // Cards & Containers
55 58 cardBackground: SURFACE_LIGHT,