Skip to content

Commit

Permalink
Create colors utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Loule95450 committed Feb 28, 2024
1 parent 7f3be86 commit 8c00f95
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/screens/login/LoginScreen.styles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import {StyleSheet} from 'react-native';
import {Colors} from '../../utils/colors.ts';

const baseTextInput = {
borderWidth: 1,
padding: 10,
borderRadius: 10,
borderColor: 'gray',
};

export const styles = StyleSheet.create({
safeAreaView: {
Expand All @@ -17,7 +25,7 @@ export const styles = StyleSheet.create({
flex: 3,
alignItems: 'center',
justifyContent: 'space-evenly',
backgroundColor: '#BB93E5',
backgroundColor: Colors.primary,
borderTopLeftRadius: 30,
borderTopRightRadius: 30,
marginTop: 20,
Expand All @@ -26,18 +34,12 @@ export const styles = StyleSheet.create({
width: '80%',
},
textInput: {
borderWidth: 1,
padding: 10,
borderRadius: 10,
borderColor: 'grey',
...baseTextInput,
},
passwordInput: {
borderWidth: 1,
padding: 10,
...baseTextInput,
marginTop: 10,
borderRadius: 10,
borderColor: 'grey',
color: 'black',
color: Colors.black,
},
buttonView: {
marginTop: 10,
Expand Down
3 changes: 3 additions & 0 deletions src/utils/colors.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const Colors = {
primary: '#BB93E5',
};

0 comments on commit 8c00f95

Please sign in to comment.