feat: expose --appsmith-theme-fontFamily (#38700)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: nikhil@appsmith.com <nikhil@appsmith.com>
This commit is contained in:
parent
42b8a564fe
commit
36cc21a4e3
|
|
@ -41,6 +41,7 @@ export function TitleControls() {
|
|||
"--appsmith-theme-backgroundColor",
|
||||
"--appsmith-theme-borderRadius",
|
||||
"--appsmith-theme-boxShadow",
|
||||
"--appsmith-theme-fontFamily",
|
||||
])
|
||||
: [];
|
||||
}, [model]);
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ function CustomComponent(props: CustomComponentProps) {
|
|||
...props.theme?.colors,
|
||||
borderRadius: props.theme?.borderRadius?.appBorderRadius,
|
||||
boxShadow: props.theme?.boxShadow?.appBoxShadow,
|
||||
fontFamily: props.theme?.fontFamily?.appFont,
|
||||
};
|
||||
}, [props.theme]);
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,14 @@
|
|||
License: none (public domain)
|
||||
*/
|
||||
|
||||
html,
|
||||
body,
|
||||
html {
|
||||
font-family: var(--appsmith-theme-fontFamily, system-ui);
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
div,
|
||||
span,
|
||||
applet,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user