summaryrefslogtreecommitdiffhomepage
path: root/app/components/AppButtonStyles.js
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-07-18 20:07:12 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-07-18 20:07:12 +0200
commitec6248d4a431c91c6a437e5a4897911d4701347b (patch)
tree2809d5ba60811a2bdbbad56a4e6106d0f8f583b5 /app/components/AppButtonStyles.js
parent9f0ed3cc4878edac9aa8ae67fae366cb1d0bf588 (diff)
parent75adfa317377a7150955ece2f59379ca3d89321f (diff)
downloadmullvadvpn-ec6248d4a431c91c6a437e5a4897911d4701347b.tar.xz
mullvadvpn-ec6248d4a431c91c6a437e5a4897911d4701347b.zip
Merge branch 'reintegrate-styled-classes'
Diffstat (limited to 'app/components/AppButtonStyles.js')
-rw-r--r--app/components/AppButtonStyles.js68
1 files changed, 68 insertions, 0 deletions
diff --git a/app/components/AppButtonStyles.js b/app/components/AppButtonStyles.js
new file mode 100644
index 0000000000..d1cf500cdb
--- /dev/null
+++ b/app/components/AppButtonStyles.js
@@ -0,0 +1,68 @@
+import { createViewStyles, createTextStyles } from '../lib/styles';
+import { colors } from '../config';
+
+export default {
+ ...createViewStyles({
+ red: {
+ backgroundColor: colors.red,
+ },
+ redHover: {
+ backgroundColor: colors.red95,
+ },
+ green: {
+ backgroundColor: colors.green,
+ },
+ greenHover: {
+ backgroundColor: colors.green90,
+ },
+ blue: {
+ backgroundColor: colors.blue80,
+ },
+ blueHover: {
+ backgroundColor: colors.blue60,
+ },
+ white80: {
+ color: colors.white80,
+ },
+ white: {
+ color: colors.white,
+ },
+ icon: {
+ position: 'absolute',
+ alignSelf: 'flex-end',
+ right: 8,
+ marginLeft: 8,
+ },
+ iconTransparent: {
+ position: 'absolute',
+ alignSelf: 'flex-end',
+ right: 42,
+ },
+ common: {
+ cursor: 'default',
+ paddingTop: 9,
+ paddingLeft: 9,
+ paddingRight: 9,
+ paddingBottom: 9,
+ marginTop: 8,
+ marginBottom: 8,
+ marginLeft: 24,
+ marginRight: 24,
+ borderRadius: 4,
+ flex: 1,
+ flexDirection: 'column',
+ alignContent: 'center',
+ justifyContent: 'center',
+ },
+ }),
+ ...createTextStyles({
+ label: {
+ alignSelf: 'center',
+ fontFamily: 'DINPro',
+ fontSize: 20,
+ fontWeight: '900',
+ lineHeight: 26,
+ flex: 1,
+ },
+ }),
+};