Skip to content

Commit

Permalink
more adaptations
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed May 3, 2024
1 parent 646d610 commit 2fdb315
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
6 changes: 2 additions & 4 deletions docs/src/modules/components/AppNavDrawerItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ const Item = styled(
...color,
...(subheader && {
marginTop: theme.spacing(1),
textTransform: 'uppercase',
letterSpacing: '.1rem',
fontWeight: theme.typography.fontWeightBold,
fontSize: theme.typography.pxToRem(11),
letterSpacing: '.01rem',
fontSize: theme.typography.pxToRem(12),
'&::before': {
content: '""',
display: 'block',
Expand Down
7 changes: 3 additions & 4 deletions docs/src/modules/components/AppTableOfContents.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ const Nav = styled('nav')(({ theme }) => ({

const NavLabel = styled(Typography)(({ theme }) => ({
padding: theme.spacing(1, 0, 1, 1.4),
fontSize: theme.typography.pxToRem(11),
fontWeight: theme.typography.fontWeightBold,
textTransform: 'uppercase',
letterSpacing: '.1rem',
letterSpacing: '.01rem',
fontSize: theme.typography.pxToRem(12),
fontWeight: theme.typography.fontWeightMedium,
color: (theme.vars || theme).palette.text.tertiary,
}));

Expand Down
9 changes: 7 additions & 2 deletions packages/mui-docs/src/MarkdownElement/MarkdownElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ const Root = styled('div')(
},
'& h1': {
...lightTheme.typography.h3,
fontSize: lightTheme.typography.pxToRem(36),
fontSize: lightTheme.typography.pxToRem(32),
fontFamily: `"Graphik", ${lightTheme.typography.fontFamilySystem}`,
margin: '10px 0',
color: `var(--muidocs-palette-primaryDark-900, ${lightTheme.palette.primaryDark[900]})`,
fontWeight: 600,
letterSpacing: '-0.02rem',
},
'& .description': {
...lightTheme.typography.subtitle1,
Expand All @@ -79,10 +80,11 @@ const Root = styled('div')(
'& h2': {
...lightTheme.typography.h5,
fontFamily: `"Graphik", ${lightTheme.typography.fontFamilySystem}`,
fontSize: theme.typography.pxToRem(26),
fontSize: theme.typography.pxToRem(24),
fontWeight: lightTheme.typography.fontWeightSemiBold,
color: `var(--muidocs-palette-grey-900, ${lightTheme.palette.grey[900]})`,
margin: '40px 0 4px',
letterSpacing: '-0.02rem',
},
'& h3': {
...lightTheme.typography.h6,
Expand All @@ -91,20 +93,23 @@ const Root = styled('div')(
fontWeight: lightTheme.typography.fontWeightSemiBold,
color: `var(--muidocs-palette-grey-900, ${lightTheme.palette.grey[900]})`,
margin: '24px 0 4px',
letterSpacing: '-0.02rem',
},
'& h4': {
...lightTheme.typography.subtitle1,
fontFamily: `"Graphik", ${lightTheme.typography.fontFamilySystem}`,
fontWeight: lightTheme.typography.fontWeightSemiBold,
color: `var(--muidocs-palette-grey-900, ${lightTheme.palette.grey[900]})`,
margin: '20px 0 6px',
letterSpacing: '-0.02rem',
},
'& h5': {
...lightTheme.typography.subtitle2,
fontFamily: `"Graphik", ${lightTheme.typography.fontFamilySystem}`,
fontWeight: lightTheme.typography.fontWeightSemiBold,
color: `var(--muidocs-palette-grey-900, ${lightTheme.palette.grey[900]})`,
margin: '20px 0 8px',
letterSpacing: '-0.02rem',
},
'& p': {
marginTop: 0,
Expand Down
4 changes: 2 additions & 2 deletions packages/mui-docs/src/branding/brandingTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ export const getDesignTokens = (mode: 'light' | 'dark') =>
fontWeight: 500,
},
body1: {
fontSize: defaultTheme.typography.pxToRem(16),
lineHeight: 24 / 16,
fontSize: defaultTheme.typography.pxToRem(15),
lineHeight: 1.4,
letterSpacing: 0,
},
body2: {
Expand Down

0 comments on commit 2fdb315

Please sign in to comment.