File tree 3 files changed +50
-1
lines changed
packages/charts/src/themes 3 files changed +50
-1
lines changed Original file line number Diff line number Diff line change
1
+ export const sequentialColors = {
2
+ sapUiChartAccent1 : '#4DA2F6' ,
3
+ sapUiChartAccent2 : '#E8743B' ,
4
+ sapUiChartAccent3 : '#19A979' ,
5
+ sapUiChartAccent4 : '#ED4A7B' ,
6
+ sapUiChartAccent5 : '#945ECF' ,
7
+ sapUiChartAccent6 : '#13A4B4' ,
8
+ sapUiChartAccent7 : '#5C66F5' ,
9
+ sapUiChartAccent8 : '#C63FA4' ,
10
+ sapUiChartAccent9 : '#6C8893' ,
11
+ sapUiChartAccent10 : '#EE6868' ,
12
+ sapUiChartAccent11 : '#387BB7' ,
13
+ sapUiChartAccent12 : '#097be8'
14
+ } ;
15
+
16
+ export const semanticColors = {
17
+ sapUiChartGood : '#9c9' ,
18
+ sapUiChartBad : '#ff5e5e' ,
19
+ sapUiChartHighlight : '#ffab1d'
20
+ } ;
Original file line number Diff line number Diff line change
1
+ export const sequentialColors = {
2
+ sapUiChartAccent1 : '#286AC3' ,
3
+ sapUiChartAccent2 : '#D74114' ,
4
+ sapUiChartAccent3 : '#057D47' ,
5
+ sapUiChartAccent4 : '#E11E48' ,
6
+ sapUiChartAccent5 : '#642EB2' ,
7
+ sapUiChartAccent6 : '#03778C' ,
8
+ sapUiChartAccent7 : '#232DEB' ,
9
+ sapUiChartAccent8 : '#9B136F' ,
10
+ sapUiChartAccent9 : '#395563' ,
11
+ sapUiChartAccent10 : '#E02E2E' ,
12
+ sapUiChartAccent11 : '#0D3367' ,
13
+ sapUiChartAccent12 : '#0e4186'
14
+ } ;
15
+
16
+ export const semanticColors = {
17
+ sapUiChartGood : '#006362' ,
18
+ sapUiChartBad : '#ab0000' ,
19
+ sapUiChartHighlight : '#5c5c00'
20
+ } ;
Original file line number Diff line number Diff line change @@ -2,13 +2,22 @@ import * as sapBelize from './sap_belize';
2
2
import * as sapBelizePlus from './sap_belize_plus' ;
3
3
import * as sapFiori3 from './sap_fiori_3' ;
4
4
import * as sapFiori3Dark from './sap_fiori_3_dark' ;
5
+ import * as sapBelizeHCB from './sap_belize_hcb' ;
6
+ import * as sapBelizeHCW from './sap_belize_hcw' ;
5
7
6
8
const themeMap = new Map ( ) ;
7
9
themeMap . set ( 'sap_belize' , sapBelize ) ;
8
10
themeMap . set ( 'sap_belize_plus' , sapBelizePlus ) ;
9
11
themeMap . set ( 'sap_fiori_3' , sapFiori3 ) ;
10
12
themeMap . set ( 'sap_fiori_3_dark' , sapFiori3Dark ) ;
13
+ themeMap . set ( 'sap_belize_hcw' , sapBelizeHCW ) ;
14
+ themeMap . set ( 'sap_belize_hcb' , sapBelizeHCB ) ;
11
15
12
16
export const getOrLoadTheme = ( theme ) => {
13
- return themeMap . get ( theme ) ;
17
+ if ( themeMap . has ( theme ) ) {
18
+ return themeMap . get ( theme ) ;
19
+ } else {
20
+ console . warn ( `${ theme } -theme not found. Falling back to default theme 'sap_fiori_3'.` ) ;
21
+ return themeMap . get ( 'sap_fiori_3' ) ;
22
+ }
14
23
} ;
You can’t perform that action at this time.
0 commit comments