-
Notifications
You must be signed in to change notification settings - Fork 0
/
Colors.js
40 lines (35 loc) · 1.55 KB
/
Colors.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
'use strict';
const React = require('react');
const ReactNative = require('react-native');
import Platform from 'react-native/Libraries/Utilities/Platform';
const { DynamicColorIOS, PlatformColor, StyleSheet, Text, View } = ReactNative;
export default function getGlobalColors() {
if (Platform.OS === 'ios') {
return {
background: DynamicColorIOS({light: '#deeeff', dark: '#141414'}),
backgroundTextPrimary: DynamicColorIOS({light: '#282a36', dark: '#ffffff'}),
backgroundTextSecondary: DynamicColorIOS({light: '#8a8888', dark: '#dbdbdb'}),
foreground: DynamicColorIOS({light: '#EEEEEE', dark: '#282828'}),
foregroundTextPrimary: DynamicColorIOS({light: '#000000', dark: '#f8f8f2'}),
foregroundTextSecondary: DynamicColorIOS({light: '#8a8888', dark: '#dbdbdb'}),
};
} else if (Platform.OS === 'android') {
return {
background: '#deeeff',
backgroundTextSecondary: '#8a8888',
backgroundTextPrimary: '#282a36',
foreground: '#EEEEEE',
foregroundTextPrimary: '#000000',
foregroundTextSecondary: '#8a8888',
};
} else {
return {
background: '#deeeff',
backgroundTextSecondary: '#8a8888',
backgroundTextPrimary: '#282a36',
foreground: '#EEEEEE',
foregroundTextPrimary: DynamicColorIOS({light: '#000000', dark: '#000000'}),
foregroundTextSecondary: DynamicColorIOS({light: '#8a8888', dark: '#dbdbdb'}),
};
}
}