Moves unique styles of Segment component from common files to local one

This commit is contained in:
mashazyu
2020-03-23 15:32:53 +01:00
committed by Sofiya Tepikin
parent 78d4077fb4
commit fb519c4380
4 changed files with 32 additions and 36 deletions
+10 -18
View File
@@ -6,12 +6,10 @@ const fonts = {
bold : 'Jost-700-Bold',
}
const sizes = {
mainMedium: 18,
mainLarge: 20,
titleSmall: 22,
titleMedium: 24,
titleLarge: 28
export const sizes = {
base: 18,
subtitle: 22,
title: 24
}
const button = {
@@ -20,12 +18,6 @@ const button = {
textTransform: 'uppercase'
}
const title = {
color: Colors.purple,
marginHorizontal: Spacing.base,
marginVertical: Spacing.large
}
export default {
buttonTextBold: {
fontFamily: fonts.bold,
@@ -37,18 +29,18 @@ export default {
},
mainText: {
fontFamily: fonts.main,
fontSize: sizes.mainMedium
fontSize: sizes.base
},
pageTitle: {
alignSelf: 'center',
fontFamily: fonts.bold,
fontWeight: '700',
fontSize: sizes.titleMedium,
...title
fontSize: sizes.title,
marginHorizontal: Spacing.base,
},
titleSmall: {
fontSize: sizes.titleSmall,
...title
title: {
color: Colors.purple,
marginVertical: Spacing.large
},
underline: { textDecorationLine: 'underline' }
}