Then change the initialState
value. Here's the available api:
Key |
Type |
Available Value |
Example |
theme: |
String |
'greenOrangeTheme' ,
'purpleRedTheme' ,
'skyBlueTheme' ,
'magentaTheme' ,
'purpleTheme' ,
'pinkGreenTheme' ,
'orangeTheme' ,
'yellowCyanTheme' ,
'blueCyanTheme' ,
'blueTheme' ,
'yellowBlueTheme' ,
'cyanTheme' ,
'redTheme' ,
'greyTheme'
|
theme: 'pinkGreenTheme' |
type: |
String |
'light' ,
'dark' ,
|
type: 'dark' |
gradient: |
Boolean |
true ,
false ,
|
gradient: true |
decoration: |
Boolean |
true ,
false ,
|
decoration: true |
bgPosition: |
String |
'half' ,
'full' ,
'header' ,
|
bgPosition: 'half |
layout: |
String |
'left-sidebar' ,
'right-sidebar' ,
'top-navigation' ,
'mega-menu' ,
|
layout: 'left-sidebar |
Here's the complete code
// file: app/redux/modules/ui.js
const initialState = {
/* Settings for Themes and layout */
theme: 'pinkGreenTheme',
type: 'light', // light or dark
gradient: true, // true or false
decoration: true, // true or false
bgPosition: 'half', // half, header, full
layout: 'left-sidebar', // left-sidebar, right-sidebar, top-navigation, mega-menu
/* End settings */
sidebarOpen: true,
pageLoaded: false,
palette: List([
{ name: 'Fruit', value: 'greenOrangeTheme' },
{ name: 'Purple', value: 'purpleRedTheme' },
{ name: 'Ocean Sky', value: 'skyBlueTheme' },
{ name: 'Rose Gold', value: 'magentaTheme' },
{ name: 'Ultra Violet', value: 'purpleTheme' },
{ name: 'Botani', value: 'pinkGreenTheme' },
{ name: 'Ubuntu', value: 'orangeTheme' },
{ name: 'Patriot', value: 'brownTheme' },
{ name: 'Vintage', value: 'yellowCyanTheme' },
{ name: 'Mint', value: 'blueCyanTheme' },
{ name: 'Deep Ocean', value: 'blueTheme' },
{ name: 'School', value: 'yellowBlueTheme' },
{ name: 'Leaf', value: 'cyanTheme' },
{ name: 'Metal Red', value: 'redTheme' },
{ name: 'Grey', value: 'greyTheme' },
]),
subMenuOpen: []
};