File tree 4 files changed +61
-10
lines changed
4 files changed +61
-10
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' app ' : minor
3
+ ---
4
+
5
+ updated Nav and tab styles to match PatternFly5.
Original file line number Diff line number Diff line change 1
1
import { UnifiedThemeOptions } from '@backstage/theme' ;
2
+ import { ThemeColors } from '../types/types' ;
2
3
3
4
const redhatFont = `@font-face {
4
5
font-family: 'Red Hat Font';
@@ -10,8 +11,49 @@ const redhatFont = `@font-face {
10
11
url(/fonts/RedHatText-Regular.ttf) format('truetype');
11
12
}` ;
12
13
13
- export const components : UnifiedThemeOptions [ 'components' ] = {
14
- MuiCssBaseline : {
15
- styleOverrides : redhatFont ,
16
- } ,
14
+ export const components = (
15
+ themeColors : ThemeColors ,
16
+ ) : UnifiedThemeOptions [ 'components' ] => {
17
+ return {
18
+ MuiTabs : {
19
+ defaultProps : {
20
+ TabIndicatorProps : {
21
+ style : {
22
+ height : '3px' ,
23
+ background : themeColors . navigationIndicatorColor || '#0066CC' ,
24
+ } ,
25
+ } ,
26
+ } ,
27
+ styleOverrides : {
28
+ root : {
29
+ borderBottom : '1px solid #d2d2d2' ,
30
+ } ,
31
+ } ,
32
+ } ,
33
+ MuiTab : {
34
+ defaultProps : {
35
+ disableRipple : true ,
36
+ } ,
37
+ styleOverrides : {
38
+ root : {
39
+ minWidth : 'auto' ,
40
+ } ,
41
+ disabled : {
42
+ backgroundColor : '#6a6e73' ,
43
+ } ,
44
+ } ,
45
+ } ,
46
+ MuiButtonBase : {
47
+ styleOverrides : {
48
+ root : {
49
+ '&:hover' : {
50
+ boxShadow : '0 -3px #b8bbbe inset' ,
51
+ } ,
52
+ } ,
53
+ } ,
54
+ } ,
55
+ MuiCssBaseline : {
56
+ styleOverrides : redhatFont ,
57
+ } ,
58
+ } ;
17
59
} ;
Original file line number Diff line number Diff line change @@ -15,15 +15,15 @@ export const customDarkTheme = (themeColors: ThemeColors) =>
15
15
} ) ,
16
16
navigation : {
17
17
background : '#0f1214' ,
18
- indicator : themeColors . navigationIndicatorColor || '#009596 ' ,
18
+ indicator : themeColors . navigationIndicatorColor || '#0066CC ' ,
19
19
color : '#ffffff' ,
20
20
selectedColor : '#ffffff' ,
21
21
navItem : {
22
- hoverBackground : '#030303 ' ,
22
+ hoverBackground : '#3c3f42 ' ,
23
23
} ,
24
24
} ,
25
25
} ,
26
26
defaultPageTheme : 'home' ,
27
27
pageTheme : pageTheme ( themeColors ) ,
28
- components,
28
+ components : components ( themeColors ) ,
29
29
} ) ;
Original file line number Diff line number Diff line change @@ -15,15 +15,19 @@ export const customLightTheme = (themeColors: ThemeColors) =>
15
15
} ) ,
16
16
navigation : {
17
17
background : '#222427' ,
18
- indicator : themeColors . navigationIndicatorColor || '#009596 ' ,
18
+ indicator : themeColors . navigationIndicatorColor || '#0066CC ' ,
19
19
color : '#ffffff' ,
20
20
selectedColor : '#ffffff' ,
21
21
navItem : {
22
- hoverBackground : '#4f5255 ' ,
22
+ hoverBackground : '#3c3f42 ' ,
23
23
} ,
24
24
} ,
25
+ text : {
26
+ primary : '#151515' ,
27
+ secondary : '#757575' ,
28
+ } ,
25
29
} ,
26
30
defaultPageTheme : 'home' ,
27
31
pageTheme : pageTheme ( themeColors ) ,
28
- components,
32
+ components : components ( themeColors ) ,
29
33
} ) ;
You can’t perform that action at this time.
0 commit comments