wazuh-kibana-app/public/services/theming.js
Jesús Ángel González Novez a6acf36ad3 Minor refactor
2017-10-30 11:35:30 +01:00

70 lines
1.8 KiB
JavaScript

require('ui/modules').get('app/wazuh', [])
.config(function ($mdThemingProvider) {
let kibanaWhiteBlack = {
'50': '#ffffff',
'100': '#ffffff',
'200': '#ffffff',
'300': '#ffffff',
'400': '#fafafa',
'500': '#ecf0f1',
'600': '#dde4e6',
'700': '#cfd9db',
'800': '#c0cdd1',
'900': '#000000',
'A100': '#ffffff',
'A200': '#ffffff',
'A400': '#ffffff',
'A700': '#a3b6bb'
};
$mdThemingProvider.definePalette('kibanaWhiteBlack', kibanaWhiteBlack);
let kibanaBlue = {
'50': '#a4d9ea',
'100': '#8fd0e5',
'200': '#7ac8e0',
'300': '#65bfdc',
'400': '#51b7d7',
'500': '#3caed2',
'600': '#2ea2c7',
'700': '#2991b2',
'800': '#24809d',
'900': '#206f88',
'A100': '#b8e2ef',
'A200': '#cdeaf3',
'A400': '#e2f3f8',
'A700': '#1b5e74',
'contrastDefaultColor': 'dark'
};
$mdThemingProvider
.definePalette('kibanaBlue',
kibanaBlue);
$mdThemingProvider.theme('default')
.primaryPalette('blue-grey', {
'default': '100',
'hue-1': '300',
'hue-2': '500',
'hue-3': '700'
})
.accentPalette('kibanaBlue', {
'default': '500',
'hue-1': '800',
'hue-2': '300',
'hue-3': '100'
})
.warnPalette('amber', {
'default': '300',
'hue-1': '500',
'hue-2': '700',
'hue-3': '900'
})
.backgroundPalette('kibanaWhiteBlack', {
'default': '50',
'hue-1': '50',
'hue-2': '600',
'hue-3': '900'
});
});