@@ -156,6 +156,7 @@ let input = {
156156 selectionColor : contrast . lower ,
157157 placeholderTextColor : contrast . regular ,
158158 underlineColorAndroid : "transparent" ,
159+ inputContainerUnderlayColor : `rgba(${ anyColorToRgbString ( contrast . low ) } ,0.4)` ,
159160 // Sizes
160161 fontSize : font . size ,
161162 fontFamily : font . family ,
@@ -203,6 +204,35 @@ let navigation = {
203204} ;
204205navigation = merge ( navigation , custom . navigation || { } ) ;
205206//
207+ // Badge Styles
208+ let badge = {
209+ fontWeight : font . weightBold ,
210+ borderRadius : 30 ,
211+ paddingVertical : 3 ,
212+ paddingHorizontal : spacing . smaller ,
213+ default : {
214+ color : contrast . higher ,
215+ backgroundColor : contrast . lower ,
216+ } ,
217+ primary : {
218+ color : brand . primary ,
219+ backgroundColor : brand . primaryLight ,
220+ } ,
221+ success : {
222+ color : brand . success ,
223+ backgroundColor : brand . successLight ,
224+ } ,
225+ warning : {
226+ color : brand . warning ,
227+ backgroundColor : brand . warningLight ,
228+ } ,
229+ danger : {
230+ color : brand . danger ,
231+ backgroundColor : brand . dangerLight ,
232+ } ,
233+ } ;
234+ badge = merge ( badge , custom . badge || { } ) ;
235+ //
206236// Tabcontainer Styles
207237let tabContainer = {
208238 tabBar : {
@@ -223,6 +253,18 @@ let tabContainer = {
223253 fontWeight : font . weightBold ,
224254 textTransform : "uppercase" ,
225255 } ,
256+ badgeContainer : {
257+ borderRadius : badge . borderRadius ,
258+ backgroundColor : badge . default . backgroundColor ,
259+ paddingVertical : badge . paddingVertical ,
260+ paddingHorizontal : badge . paddingHorizontal ,
261+ marginLeft : 8
262+ } ,
263+ badgeCaption : {
264+ fontSize : font . size ,
265+ color : badge . default . color ,
266+ fontWeight : badge . fontWeight ,
267+ }
226268} ;
227269tabContainer = merge ( tabContainer , custom . tabContainer || { } ) ;
228270//
@@ -241,35 +283,4 @@ let layoutGrid = {
241283} ;
242284layoutGrid = merge ( layoutGrid , custom . layoutGrid || { } ) ;
243285//
244- //## Pluggable Widgets
245- //-------------------------------------------------------------------------------------------------------------------//
246- // Badge Styles
247- let badge = {
248- fontWeight : font . weightBold ,
249- borderRadius : 30 ,
250- paddingVertical : 3 ,
251- paddingHorizontal : spacing . smaller ,
252- default : {
253- color : contrast . higher ,
254- backgroundColor : contrast . lower ,
255- } ,
256- primary : {
257- color : brand . primary ,
258- backgroundColor : brand . primaryLight ,
259- } ,
260- success : {
261- color : brand . success ,
262- backgroundColor : brand . successLight ,
263- } ,
264- warning : {
265- color : brand . warning ,
266- backgroundColor : brand . warningLight ,
267- } ,
268- danger : {
269- color : brand . danger ,
270- backgroundColor : brand . dangerLight ,
271- } ,
272- } ;
273- badge = merge ( badge , custom . badge || { } ) ;
274- //
275286export { brand , background , border , contrast , font , spacing , button , input , navigation , tabContainer , listView , layoutGrid , badge , } ;
0 commit comments