Front: Setup Color Theme w/ React Native Paper

This commit is contained in:
Arthi-chaud
2022-07-11 11:35:46 +02:00
parent db056975aa
commit 6ae40c3117
3 changed files with 30 additions and 53 deletions
+17 -23
View File
@@ -1,31 +1,25 @@
/**
* Color theme to use thoughout the application
* Using the Material Color guidelines
* TODO: integrate with the to-be-determined design framework
*/
const ColorTheme = {
primary: '#5db075',
primaryVariant: '#008000',
onPrimary: '#ffffff',
secondary: '#00bdbd',
secondaryVariant: '#008b8c',
onSecondary: '#ffffff',
import { DefaultTheme } from 'react-native-paper';
backgroundLight: '#F0F0F0',
onBackgroundLight: '#000000',
backgroundDark: '#292929',
onBackgroundDark: '#FFFFFF',
surface: '#F6F6F6',
onSurface: '#000000',
placeholder: '#C9C9C9',
error: '#B00020',
onError: '#FFFFFF',
divider: "#DDDDDD",
const Theme = {
...DefaultTheme,
roundness: 10,
colors: {
...DefaultTheme.colors,
primary: '#5db075',
background: '#F0F0F0',
surface: '#F6F6F6',
accent: '#00bdbd',
error: '#B00020',
text: '#ffffff',
onSurface: '#000000',
placeholder: '#C9C9C9',
notification: '#FF0000'
}
};
export default ColorTheme;
export default Theme;