-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
WordCustomizations.ts
42 lines (39 loc) · 1018 Bytes
/
WordCustomizations.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { createTheme, ICustomizations } from 'office-ui-fabric-react';
import { addVariants } from '@uifabric/variants';
export const WordCustomizations: ICustomizations = {
settings: {
theme: createTheme({
palette: {
themePrimary: '#2b579a',
themeSecondary: '#366ec2'
},
semanticColors: {
buttonBackground: 'white',
buttonBackgroundHovered: 'rgb(240, 240, 240)',
buttonBackgroundPressed: 'rgb(240, 240, 240)',
buttonText: 'rgb(43, 87, 154)',
buttonBorder: 'rgb(237, 235, 233)'
}
})
},
scopedSettings: {
Button: {
// tslint:disable:no-any
tokens: (props: any) => {
return [
{
borderWidth: 1,
textSize: 13.5,
textWeight: 600,
iconSize: 12,
contentPadding: '0px 6px'
},
!props.circular && {
minHeight: 26
}
];
}
}
}
};
addVariants(WordCustomizations.settings.theme);