Open
Description
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior 😯
At the moment the typography
key in the system's theme
is typed as unknown
:
node_modules/@mui/system/createTheme/createTheme.d.ts
export interface ThemeOptions {
shape?: ShapeOptions;
breakpoints?: BreakpointsOptions;
direction?: Direction;
mixins?: unknown;
palette?: Record<string, any>;
shadows?: unknown;
spacing?: SpacingOptions;
transitions?: unknown;
components?: Record<string, any>;
typography?: unknown;
zIndex?: Record<string, number>;
}
Expected behavior 🤔
It should be typed to use TypographyVariants
and TypographyVariantOptions
or a @mui/system
alternative so that we get type safety when using theme.typography
like with @mui/material
Steps to reproduce 🕹
No response
Context 🔦
No response
Your environment 🌎
n/a
Metadata
Metadata
Assignees
Labels
Projects
Status
No status