forked from y-scope/yscope-log-viewer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paththeme.tsx
73 lines (69 loc) · 1.97 KB
/
theme.tsx
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import {extendTheme} from "@mui/joy/styles";
import KeyboardArrowDown from "@mui/icons-material/KeyboardArrowDown";
const APP_THEME = extendTheme({
colorSchemes: {
light: {
palette: {
primary: {
solidBg: "#005fb8",
solidHoverBg: "#0258a8",
solidActiveBg: "#005fb8",
},
neutral: {
solidBg: "#e5e5e5",
solidHoverBg: "#cccccc",
solidActiveBg: "#e5e5e5",
solidColor: "#3b3b3b",
},
focusVisible: "#005fb8",
},
},
dark: {
palette: {
primary: {
solidBg: "#0078d4",
solidHoverBg: "#026ec1",
solidActiveBg: "#0078d4",
},
neutral: {
solidBg: "#181818",
solidHoverBg: "#323232",
solidActiveBg: "#181818",
},
focusVisible: "#0078d4",
},
},
},
components: {
JoySelect: {
defaultProps: {
indicator: <KeyboardArrowDown/>,
},
},
JoyFormControl: {
styleOverrides: {
root: ({theme}) => ({
[theme.getColorSchemeSelector("dark")]: {
":hover": {backgroundColor: "#232424"},
},
[theme.getColorSchemeSelector("light")]: {
":hover": {backgroundColor: "#f8f8f8"},
},
}),
},
},
},
fontFamily: {
body: "var(--ylv-ui-font-family)",
},
radius: {
/* eslint-disable sort-keys */
xs: "2px",
sm: "2px",
md: "2px",
lg: "2px",
xl: "2px",
/* eslint-enable sort-keys */
},
});
export default APP_THEME;