File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,12 @@ import type { PaletteOptions as MuiPaletteOptions } from "@mui/material/styles/c
99import { getColorDecisions } from "./generatedFromCss/getColorDecisions" ;
1010import { getColorOptions } from "./generatedFromCss/getColorOptions" ;
1111import { useIsDark } from "./useColorScheme" ;
12+ import { breakpoints } from "./breakpoints" ;
1213
1314function createMuiDsfrThemeFromTheme ( params : { isDark : boolean } ) : MuiTheme {
1415 const { isDark } = params ;
1516
16- const palette = useMemo ( ( ) => createMuiPaletteOptions ( { isDark } ) , [ isDark ] ) ;
17+ const palette = createMuiPaletteOptions ( { isDark } ) ;
1718
1819 const muiTheme = createMuiTheme ( {
1920 "shape" : {
@@ -41,9 +42,15 @@ function createMuiDsfrThemeFromTheme(params: { isDark: boolean }): MuiTheme {
4142 "xl": number,
4243 },
4344 },
44- "typography": createMuiTypographyOptions({
45- typographyDesc,
46- }),
45+ "typography": {
46+ "h1": {
47+ "color": "red",
48+ [breakpoints.up("md")]: {
49+ "color": "pink"
50+ }
51+
52+ }
53+ }
4754 "palette": createMuiPaletteOptions({
4855 isDarkModeEnabled,
4956 palette,
You can’t perform that action at this time.
0 commit comments