Preparing the September release
Review the updated components and documentation before publishing the next release.
Review the updated components and documentation before publishing the next release.
npx @mielui/svelte add typographyyarn dlx @mielui/svelte add typographybunx @mielui/svelte add typographyPick each component for what the text is, not how it looks, and use class for a local exception. The text goes in children, so links, emphasis, and inline code can sit inside any of them. Text defaults to the supporting variant.
<script lang="ts">
import * as Typography from '@mielui/svelte/components/typography';
</script>
<Typography.H2>Account settings</Typography.H2>
<Typography.Text>Manage your profile and preferences.</Typography.Text>
<Typography.Text variant="body">
Changes are saved to <Typography.InlineCode>profile.json</Typography.InlineCode>.
</Typography.Text>
<Typography.Metadata>Updated 4 minutes ago</Typography.Metadata>Each component sets typography and color only. Set margins and layout on its parent.
h1-h6 --font-header / document heading scale / --font-weight-headerp --font-size-header / --font-weight-description / foreground-mutedp --font-size-body / --font-weight-body / foregroundp --font-size-body / --font-weight-body / foreground-mutedcode --font-mono / --radius-sm / secondaryh1-h6 --font-header / --font-size-header / --font-weight-headerp --font-size-body / --font-weight-description / --tracking-bodyspan --text-xs / --font-weight-body / --tracking-bodyMetadata, Title, and Description stack into the top of an article.
Review the updated components and documentation before publishing the next release.
Use the heading that matches the document outline. Title has one size for compact component titles and takes the heading level it renders.
Choose a paragraph role from how it relates to the content around it.
Lead text introduces a page or a significant section.
Body text carries longer explanations at a comfortable reading size and rhythm.
Supporting text adds quieter instructions, context, or qualifications.
Use InlineCode for commands, paths, and short identifiers within prose.
Add tabular-nums when readers compare values in a column.
Renders supporting text.
children Required Snippet<[]> Content rendered inside.
Renders the primary document heading.
children Required Snippet<[]> Content rendered inside.
Renders a document section heading.
children Required Snippet<[]> Content rendered inside.
Renders a document subsection heading.
children Required Snippet<[]> Content rendered inside.
Renders a fourth-level document heading.
children Required Snippet<[]> Content rendered inside.
Renders a subdued fifth-level heading.
children Required Snippet<[]> Content rendered inside.
Renders a subdued sixth-level heading.
children Required Snippet<[]> Content rendered inside.
Renders code within prose.
children Required Snippet<[]> Content rendered inside.
Renders compact secondary information.
children Required Snippet<[]> Content rendered inside.
Renders lead, body, or supporting prose.
children Required Snippet<[]> Content rendered inside.
variant TypographyTextVariant Text role, which sets size and color.
Default 'supporting'
Renders an explicit heading level.
children Required Snippet<[]> Content rendered inside.
level Required 1 | 2 | 3 | 4 | 5 | 6 Heading level to render.
pnpm dlx @mielui/svelte add typography