frontend: adapt input and buttons colors
Parents:
4780aba2 file(s) changed
- frontend/components/ui/Button.tsx +1 -2
- frontend/components/ui/Input.tsx +3 -7
frontend/components/ui/Button.tsx
@@ -52,10 +52,9 @@ }
52 52 };
53 53
54 54 const getTextColor = () => {
55 - if (disabled) return useThemeColor({ light: '#9ca3af', dark: '#6b7280' }, 'text');
55 + if (disabled) return useThemeColor({}, 'text');
56 56 switch (variant) {
57 57 case 'primary':
58 - return '#fff';
59 58 case 'secondary':
60 59 case 'outline':
61 60 case 'ghost':
frontend/components/ui/Input.tsx
@@ -28,8 +28,8 @@ ...props
28 28 }) => {
29 29 const [showPassword, setShowPassword] = React.useState(false);
30 30 const textColor = useThemeColor({}, 'text');
31 - const backgroundColor = useThemeColor({ light: '#f5f5f5', dark: '#2a2a2a' }, 'background');
32 - const borderColor = useThemeColor({ light: '#e0e0e0', dark: '#404040' }, 'border');
31 + const backgroundColor = useThemeColor({}, 'inputBackgroundColor');
32 + const borderColor = useThemeColor({}, 'inputBorderColor');
33 33 const errorColor = '#ef4444';
34 34 const placeholderColor = useThemeColor({ light: '#9ca3af', dark: '#6b7280' }, 'placeholder');
35 35
@@ -98,11 +98,6 @@ paddingRight: 44,
98 98 borderWidth: 1,
99 99 borderRadius: 8,
100 100 fontSize: 16,
101 - ...Platform.select({
102 - web: {
103 - outlineStyle: 'none',
104 - },
105 - }),
106 101 },
107 102 passwordToggle: {
108 103 position: 'absolute',
@@ -113,4 +108,4 @@ error: {
113 108 fontSize: 12,
114 109 marginTop: 4,
115 110 },
116 - });
111 + });