11import { StyleSheet } from 'react-native' ;
2-
32import Colors from '../../constants/colors' ;
43
54export const ICONS = {
@@ -9,6 +8,28 @@ export const ICONS = {
98 CLOSE : require ( './icons/close.png' ) ,
109} ;
1110
11+
12+ /**
13+ * Pulled out colors for clairity and easeier rework
14+ */
15+ export const THEME = {
16+ badgeDotBackgroundColor : Colors . GREY ,
17+ badgeBackgroundColor : Colors . ALTO ,
18+ dropDownContainerBackgroundColor : Colors . EBONY_CLAY ,
19+ dropDownContainerBorderColor : Colors . BLACK ,
20+ itemSeparatorBackgroundColor : Colors . SHUTTLE_GREY ,
21+ labelColor : Colors . HEATHER ,
22+ ListItemLabelColor : Colors . HEATHER ,
23+ modalContentContainerBackgroundColor : Colors . EBONY_CLAY ,
24+ modalTitleColor : Colors . HEATHER ,
25+ listMessageTextColor : Colors . HEATHER ,
26+ searchContainerBorderBottomColor : Colors . SHUTTLE_GREY ,
27+ searchTextInputBorderColor : Colors . SHUTTLE_GREY ,
28+ searchTextInputColor : Colors . WHITE ,
29+ backgroundColor : Colors . EBONY_CLAY ,
30+ borderColor : Colors . BLACK
31+ }
32+
1233export default StyleSheet . create ( {
1334 arrowIcon : {
1435 height : 20 ,
@@ -18,7 +39,7 @@ export default StyleSheet.create({
1839 marginLeft : 10 ,
1940 } ,
2041 badgeDotStyle : {
21- backgroundColor : Colors . GREY ,
42+ backgroundColor : THEME . badgeDotBackgroundColor ,
2243 borderRadius : 10 / 2 ,
2344 height : 10 ,
2445 marginRight : 8 ,
@@ -29,7 +50,7 @@ export default StyleSheet.create({
2950 } ,
3051 badgeStyle : {
3152 alignItems : 'center' ,
32- backgroundColor : Colors . ALTO ,
53+ backgroundColor : THEME . badgeBackgroundColor ,
3354 borderRadius : 10 ,
3455 flexDirection : 'row' ,
3556 paddingHorizontal : 10 ,
@@ -50,8 +71,8 @@ export default StyleSheet.create({
5071 fontStyle : 'italic' ,
5172 } ,
5273 dropDownContainer : {
53- backgroundColor : Colors . EBONY_CLAY ,
54- borderColor : Colors . BLACK ,
74+ backgroundColor : THEME . dropDownContainerBackgroundColor ,
75+ borderColor : THEME . dropDownContainerBorderColor ,
5576 borderRadius : 8 ,
5677 borderWidth : 1 ,
5778 overflow : 'hidden' ,
@@ -66,7 +87,7 @@ export default StyleSheet.create({
6687 } ,
6788 extendableBadgeItemContainer : {
6889 marginEnd : 7 ,
69- marginVertical : 3 ,
90+ marginVertical : 3
7091 } ,
7192 flatListContentContainer : {
7293 flexGrow : 1 ,
@@ -75,11 +96,11 @@ export default StyleSheet.create({
7596 marginRight : 10 ,
7697 } ,
7798 itemSeparator : {
78- backgroundColor : Colors . SHUTTLE_GREY ,
99+ backgroundColor : THEME . itemSeparatorBackgroundColor ,
79100 height : 1 ,
80101 } ,
81102 label : {
82- color : Colors . HEATHER ,
103+ color : THEME . labelColor ,
83104 flex : 1 ,
84105 } ,
85106 labelContainer : {
@@ -105,7 +126,7 @@ export default StyleSheet.create({
105126 paddingHorizontal : 10 ,
106127 } ,
107128 listItemLabel : {
108- color : Colors . HEATHER ,
129+ color : THEME . ListItemLabelColor ,
109130 flex : 1 ,
110131 } ,
111132 listMessageContainer : {
@@ -115,30 +136,30 @@ export default StyleSheet.create({
115136 padding : 10 ,
116137 } ,
117138 listMessageText : {
118- color : Colors . HEATHER ,
139+ color : THEME . listMessageTextColor ,
119140 } ,
120141 listParentContainer : { } ,
121142 listParentLabel : { } ,
122143 modalContentContainer : {
123- backgroundColor : Colors . EBONY_CLAY ,
144+ backgroundColor : THEME . modalContentContainerBackgroundColor ,
124145 flexGrow : 1 ,
125146 } ,
126147 modalTitle : {
127- color : Colors . HEATHER ,
148+ color : THEME . modalTitleColor ,
128149 fontSize : 18 ,
129150 } ,
130151 searchContainer : {
131152 alignItems : 'center' ,
132- borderBottomColor : Colors . SHUTTLE_GREY ,
153+ borderBottomColor : THEME . searchContainerBorderBottomColor ,
133154 borderBottomWidth : 1 ,
134155 flexDirection : 'row' ,
135156 padding : 10 ,
136157 } ,
137158 searchTextInput : {
138- borderColor : Colors . SHUTTLE_GREY ,
159+ borderColor : THEME . searchTextInputBorderColor ,
139160 borderRadius : 8 ,
140161 borderWidth : 1 ,
141- color : Colors . WHITE ,
162+ color : THEME . searchTextInputColor ,
142163 flexGrow : 1 ,
143164 flexShrink : 1 ,
144165 margin : 0 ,
@@ -149,8 +170,8 @@ export default StyleSheet.create({
149170 selectedItemLabel : { } ,
150171 style : {
151172 alignItems : 'center' ,
152- backgroundColor : Colors . EBONY_CLAY ,
153- borderColor : Colors . BLACK ,
173+ backgroundColor : THEME . backgroundColor ,
174+ borderColor : THEME . borderColor ,
154175 borderRadius : 8 ,
155176 borderWidth : 1 ,
156177 flexDirection : 'row' ,
0 commit comments