1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { createMuiTheme } from '@material-ui/core/styles';
6 import { ThemeOptions, Theme } from '@material-ui/core/styles/createMuiTheme';
7 import blue from '@material-ui/core/colors/blue';
8 import grey from '@material-ui/core/colors/grey';
9 import green from '@material-ui/core/colors/green';
10 import yellow from '@material-ui/core/colors/yellow';
11 import red from '@material-ui/core/colors/red';
13 export interface ArvadosThemeOptions extends ThemeOptions {
17 export interface ArvadosTheme extends Theme {
45 * arvadosGreyLight is the hex equivalent of rgba(0,0,0,0.87) on #fafafa background and arvadosGreyDark is the hex equivalent of rgab(0,0,0,0.54) on #fafafa background
48 const arvadosDarkBlue = '#052a3c';
49 const arvadosGreyLight = '#737373';
50 const arvadosGreyDark = '#212121';
51 const grey500 = grey["500"];
52 const grey600 = grey["600"];
53 const grey700 = grey["700"];
54 const grey800 = grey["800"];
55 const grey900 = grey["900"];
57 export const themeOptions: ArvadosThemeOptions = {
60 green700: green["700"],
61 green800: green["800"],
62 yellow100: yellow["100"],
63 yellow700: yellow["700"],
64 yellow900: yellow["900"],
74 darkblue: arvadosDarkBlue,
76 greyL: arvadosGreyLight,
77 greyD: arvadosGreyDark,
88 backgroundColor: arvadosDarkBlue
96 backgroundColor: arvadosDarkBlue
127 color: arvadosGreyDark,
136 MuiExpansionPanelDetails: {
139 paddingBottom: '4px',
142 MuiExpansionPanelSummary: {
164 borderBottomColor: arvadosDarkBlue
166 '&:hover:not($disabled):not($focused):not($error):before': {
167 borderBottom: '1px solid inherit'
173 fontSize: '0.875rem',
175 "&$focused:not($error)": {
176 color: arvadosDarkBlue
184 color: arvadosDarkBlue
207 export const CustomTheme = createMuiTheme(themeOptions);