@@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
2
2
import { Badge , CardHeader , Dialog , DialogContent , DialogTitle , TextField , Tooltip } from '@mui/material' ;
3
3
import debounce from 'lodash/debounce' ;
4
4
import { useCallback } from 'react' ;
5
- import { Close } from '@mui/icons-material' ;
5
+ import { Close , ThirteenMp } from '@mui/icons-material' ;
6
6
import ReactMarkdown from 'react-markdown' ;
7
7
import gfm from 'remark-gfm' ;
8
8
import { replaceDashboardParameters } from '../../chart/ChartUtils' ;
@@ -17,6 +17,7 @@ import {
17
17
CameraIconSolid ,
18
18
InformationCircleIconOutline ,
19
19
} from '@neo4j-ndl/react/icons' ;
20
+ import { createTheme , ThemeProvider } from '@mui/material/styles' ;
20
21
21
22
const NeoCardViewHeader = ( {
22
23
title,
@@ -61,8 +62,20 @@ const NeoCardViewHeader = ({
61
62
}
62
63
} , [ title ] ) ;
63
64
65
+ const theme = createTheme ( {
66
+ typography : {
67
+ fontFamily : "'Nunito Sans', sans-serif !important" ,
68
+ allVariants : { color : 'rgb(var(--palette-neutral-text-weak))' } ,
69
+ } ,
70
+ palette : {
71
+ text : {
72
+ primary : 'rgb(var(--palette-neutral-text-weaker))' ,
73
+ } ,
74
+ } ,
75
+ } ) ;
76
+
64
77
const cardTitle = (
65
- < >
78
+ < ThemeProvider theme = { theme } >
66
79
< table style = { { width : '100%' } } >
67
80
< tbody >
68
81
< tr >
@@ -103,7 +116,7 @@ const NeoCardViewHeader = ({
103
116
</ tr >
104
117
</ tbody >
105
118
</ table >
106
- </ >
119
+ </ ThemeProvider >
107
120
) ;
108
121
109
122
const descriptionEnabled = description && description . length > 0 ;
0 commit comments