Moves unique styles of Button component from common to local file

This commit is contained in:
mashazyu
2020-03-23 15:45:59 +01:00
committed by Sofiya Tepikin
parent 1a46e1bb2e
commit 652bc1ffe2
4 changed files with 20 additions and 29 deletions
-4
View File
@@ -12,10 +12,6 @@ export default {
borderStyle: 'solid',
borderWidth: 1,
},
orangeButton: {
backgroundColor: Colors.orange,
borderRadius: 25
},
page: {
backgroundColor: Colors.tourquiseLight,
flex: 1
+2 -2
View File
@@ -1,6 +1,6 @@
import Colors from './colors'
import Containers from './containers'
import Spacing from './spacing'
import Typography, { sizes as Sizes } from './typography'
import Typography, { fonts as Fonts, sizes as Sizes } from './typography'
export { Colors, Containers, Spacing, Sizes, Typography }
export { Colors, Containers, Fonts, Spacing, Sizes, Typography }
+1 -15
View File
@@ -1,7 +1,7 @@
import Colors from './colors'
import Spacing from './spacing'
const fonts = {
export const fonts = {
main: 'Jost-400-Book',
bold : 'Jost-700-Bold',
}
@@ -12,21 +12,7 @@ export const sizes = {
title: 24
}
const button = {
paddingHorizontal: Spacing.large,
paddingVertical: Spacing.base,
textTransform: 'uppercase'
}
export default {
buttonTextBold: {
fontFamily: fonts.bold,
...button
},
buttonTextRegular: {
fontFamily: fonts.main,
...button
},
mainText: {
fontFamily: fonts.main,
fontSize: sizes.base