fix(ui): updated default font size to 14px and grey color based on style guide (#23785)

* fix(ui): updated default font size to 14px and grey color based on style guide

* fix(ui): apply GlobalStyles for consistent font size of 14px across the application
This commit is contained in:
Shailesh Parmar 2025-10-08 20:24:04 +05:30 committed by GitHub
parent 9cc0441da2
commit 63336dd98c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 6 deletions

View File

@ -64,8 +64,8 @@ export const defaultColors: ThemeColors = {
725: '#363636', // custom shade for search icon
750: '#404040', // custom shade
800: '#252B37',
900: '#101828',
950: '#0C111D',
900: '#181D27',
950: '#0A0D12',
},
blueGray: {
25: '#FCFCFD',

View File

@ -13,15 +13,15 @@
import type { Shadows } from '@mui/material/styles';
import { createTheme } from '@mui/material/styles';
import { defaultColors } from '../colors/defaultColors';
import { generateAllMuiPalettes } from '../colors/generateMuiPalettes';
import type { CustomColors, ThemeColors } from '../types';
import { buttonTheme } from './button-theme';
import { dataDisplayTheme } from './data-display-theme';
import { defaultColors } from '../colors/defaultColors';
import { formTheme } from './form-theme';
import { generateAllMuiPalettes } from '../colors/generateMuiPalettes';
import './mui-theme-types';
import { navigationTheme } from './navigation-theme';
import { shadows } from './shadows';
import type { CustomColors, ThemeColors } from '../types';
import './mui-theme-types';
/**
* Creates dynamic MUI theme with user customizations or default colors
@ -127,6 +127,8 @@ export const createMuiTheme = (
allShades: themeColors,
},
typography: {
fontSize: 14,
htmlFontSize: 14,
fontFamily:
'var(--font-inter, "Inter"), -apple-system, "Segoe UI", Roboto, Arial, sans-serif',
h1: {

View File

@ -35,6 +35,7 @@ import {
} from './rest/settingConfigAPI';
import { getBasePath } from './utils/HistoryUtils';
import GlobalStyles from '@mui/material/GlobalStyles';
import { ThemeProvider } from '@mui/material/styles';
import {
createMuiTheme,
@ -106,6 +107,7 @@ const App: FC = () => {
<ErrorBoundary>
<AntDConfigProvider>
<ThemeProvider theme={muiTheme}>
<GlobalStyles styles={{ html: { fontSize: '14px' } }} />
<SnackbarProvider
Components={{
default: SnackbarContent,