mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-02 03:29:03 +00:00
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:
parent
9cc0441da2
commit
63336dd98c
@ -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',
|
||||
|
||||
@ -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: {
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user