X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/847ac07f82a1432d6472390aab5e8c2198d425a5..bde7ca868a0c201544476da6c049a98c1188dde9:/src/common/custom-theme.ts diff --git a/src/common/custom-theme.ts b/src/common/custom-theme.ts index 98380b96..d93b37b7 100644 --- a/src/common/custom-theme.ts +++ b/src/common/custom-theme.ts @@ -27,6 +27,7 @@ interface Colors { yellow700: string; red900: string; blue500: string; + purple: string; } const arvadosPurple = '#361336'; @@ -38,12 +39,16 @@ const grey900 = grey["900"]; const rocheBlue = '#06C'; export const themeOptions: ArvadosThemeOptions = { + typography: { + useNextVariants: true, + }, customs: { colors: { green700: green["700"], yellow700: yellow["700"], red900: red['900'], blue500: blue['500'], + purple: arvadosPurple } }, overrides: { @@ -66,9 +71,11 @@ export const themeOptions: ArvadosThemeOptions = { } }, MuiTab: { - selected: { - fontWeight: 700, - color: arvadosPurple + root: { + '&$selected': { + fontWeight: 700, + color: arvadosPurple + } } }, MuiList: { @@ -96,6 +103,28 @@ export const themeOptions: ArvadosThemeOptions = { fontSize: '1.25rem' } }, + MuiExpansionPanel: { + expanded: { + marginTop: '8px', + } + }, + MuiExpansionPanelDetails: { + root: { + marginBottom: 0, + paddingBottom: '4px', + } + }, + MuiExpansionPanelSummary: { + content: { + '&$expanded': { + margin: 0, + }, + color: grey700, + fontSize: '1.25rem', + margin: 0, + }, + expanded: {}, + }, MuiMenuItem: { root: { padding: '8px 16px' @@ -116,11 +145,11 @@ export const themeOptions: ArvadosThemeOptions = { }, MuiFormLabel: { root: { - fontSize: '0.875rem' - }, - focused: { - "&$focused:not($error)": { - color: arvadosPurple + fontSize: '0.875rem', + "&$focused": { + "&$focused:not($error)": { + color: arvadosPurple + } } } }, @@ -146,7 +175,7 @@ export const themeOptions: ArvadosThemeOptions = { dark: teal.A400, contrastText: '#fff' } - } + }, }; export const CustomTheme = createMuiTheme(themeOptions); \ No newline at end of file