diff --git a/.storybook/storybook.css b/.storybook/storybook.css index ffbe714..5a92c1f 100644 --- a/.storybook/storybook.css +++ b/.storybook/storybook.css @@ -1,4 +1,4 @@ -:root { +:root:not(.MuiTypography-root) { --sb-ds-font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; @@ -33,14 +33,14 @@ /* Applied to all of Storybook, including the UI and Docs */ -body .sbdocs { +body .sbdocs:not(.MuiTypography-root) { background-color: var(--sb-ds-background) !important; } /* Base font */ -.sbdocs, -.sbdocs p, -.sbdocs li { +.sbdocs:not(.MuiTypography-root), +.sbdocs p:not(.MuiTypography-root), +.sbdocs li:not(.MuiTypography-root) { font-family: var(--sb-ds-font-body); } @@ -51,22 +51,22 @@ body .sbdocs { font-family: var(--sb-ds-font-heading); } -.sbdocs h2, -.sbdocs h3, -.sbdocs h4, -.sbdocs h5, -.sbdocs h6, -table th, -table td { +.sbdocs h2:not(.MuiTypography-root), +.sbdocs h3:not(.MuiTypography-root), +.sbdocs h4:not(.MuiTypography-root), +.sbdocs h5:not(.MuiTypography-root), +.sbdocs h6:not(.MuiTypography-root), +table th:not(.MuiTypography-root), +table td:not(.MuiTypography-root) { font-family: var(--sb-ds-font-body); } /* Code uses IBM Plex Mono */ -code, -.sbdocs code, -.sbdocs pre, -.sbdocs kbd, -.sbdocs samp, -.token { +code:not(.MuiTypography-root), +.sbdocs code:not(.MuiTypography-root), +.sbdocs pre:not(.MuiTypography-root), +.sbdocs kbd:not(.MuiTypography-root), +.sbdocs samp:not(.MuiTypography-root), +.token:not(.MuiTypography-root) { font-family: var(--sb-ds-font-mono); } diff --git a/src/storybook/PracticalGuidance.mdx b/src/storybook/PracticalGuidance.mdx index 42a5619..ff1230b 100644 --- a/src/storybook/PracticalGuidance.mdx +++ b/src/storybook/PracticalGuidance.mdx @@ -84,16 +84,18 @@ styles. Build with existing components and patterns before creating new ones. -Components should keep interfaces predictable, readable, and consistent. +Components should keep interfaces predictable, efficient, readable, and consistent. Users should be able to understand how an interface behaves, complete common tasks with minimal effort, and recognise the meaning of visual cues without additional explanation.