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 = {
59 useNextVariants: true,
63 green700: green["700"],
64 green800: green["800"],
65 yellow100: yellow["100"],
66 yellow700: yellow["700"],
67 yellow900: yellow["900"],
77 darkblue: arvadosDarkBlue,
79 greyL: arvadosGreyLight,
80 greyD: arvadosGreyDark,
91 backgroundColor: arvadosDarkBlue
99 backgroundColor: arvadosDarkBlue
130 color: arvadosGreyDark,
139 MuiExpansionPanelDetails: {
142 paddingBottom: '4px',
145 MuiExpansionPanelSummary: {
167 borderBottomColor: arvadosDarkBlue
169 '&:hover:not($disabled):not($focused):not($error):before': {
170 borderBottom: '1px solid inherit'
176 fontSize: '0.875rem',
178 "&$focused:not($error)": {
179 color: arvadosDarkBlue
187 color: arvadosDarkBlue
210 export const CustomTheme = createMuiTheme(themeOptions);