Open zhouhanseng opened 4 years ago
Did you try the dark mode? IIRC <Typography>
automatically fits that but <p>
won't. (still in black color)
Dark mode works well. <p>
inherits the color from <body>
, and even there's no inheritation, it's fine to define a color for <p>
, like we do for <Typography>
as well.
Inroduction and Background
Here DashboardRouters/Setup.tsx#L133, if I tried to replace the
<Typography>
with just a<p>
, it renders the same ui result.https://material-ui.com/components/typography/:
So as we define our own font-size, font-weight and so on, I think we don't need to use typography.