1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { StyleRulesCallback, createTheme } from '@material-ui/core/styles';
6 import { ThemeOptions, Theme } from '@material-ui/core/styles';
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 {
23 export type CustomStyleRulesCallback<ClassKey extends string = string> =
24 StyleRulesCallback<Theme, {}, ClassKey>
48 * 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
51 const arvadosDarkBlue = '#052a3c';
52 const arvadosGreyLight = '#737373';
53 const arvadosGreyDark = '#212121';
54 const grey500 = grey["500"];
55 const grey600 = grey["600"];
56 const grey700 = grey["700"];
57 const grey800 = grey["800"];
58 const grey900 = grey["900"];
60 export const themeOptions: ArvadosThemeOptions = {
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 = createTheme(themeOptions);