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:
devin-ai-integration[bot] 2025-01-17 13:27:31 +05:30 committed by GitHub
parent 42b8a564fe
commit 36cc21a4e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 2 deletions

View File

@ -41,6 +41,7 @@ export function TitleControls() {
"--appsmith-theme-backgroundColor",
"--appsmith-theme-borderRadius",
"--appsmith-theme-boxShadow",
"--appsmith-theme-fontFamily",
])
: [];
}, [model]);

View File

@ -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]);

View File

@ -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,