Skip to content

Commit 453475c

Browse files
authored
new-log-viewer: Override JoyUI fontFamily and radius properties globally. (#83)
1 parent 1f8c03c commit 453475c

File tree

1 file changed

+12
-27
lines changed

1 file changed

+12
-27
lines changed

new-log-viewer/src/components/theme.tsx

+12-27
Original file line numberDiff line numberDiff line change
@@ -37,38 +37,11 @@ const APP_THEME = extendTheme({
3737
},
3838
},
3939
},
40-
focus: {
41-
default: {
42-
outlineWidth: "3px",
43-
},
44-
},
45-
fontFamily: {
46-
body: "var(--ylv-ui-font-family)",
47-
},
4840
components: {
49-
JoyButton: {
50-
styleOverrides: {
51-
root: {
52-
borderRadius: "2px",
53-
},
54-
},
55-
},
5641
JoySelect: {
5742
defaultProps: {
5843
indicator: <KeyboardArrowDown/>,
5944
},
60-
styleOverrides: {
61-
root: {
62-
borderRadius: "2px",
63-
},
64-
},
65-
},
66-
JoyInput: {
67-
styleOverrides: {
68-
root: {
69-
borderRadius: "2px",
70-
},
71-
},
7245
},
7346
JoyFormControl: {
7447
styleOverrides: {
@@ -83,6 +56,18 @@ const APP_THEME = extendTheme({
8356
},
8457
},
8558
},
59+
fontFamily: {
60+
body: "var(--ylv-ui-font-family)",
61+
},
62+
radius: {
63+
/* eslint-disable sort-keys */
64+
xs: "2px",
65+
sm: "2px",
66+
md: "2px",
67+
lg: "2px",
68+
xl: "2px",
69+
/* eslint-enable sort-keys */
70+
},
8671
});
8772

8873
export default APP_THEME;

0 commit comments

Comments
 (0)