Styling guide
Themes control Markdown colors, typography and spacing. Container styles handle layout. Use Slot plugins to change components or interactions.
Follow your app's theme
The default theme is light. Pass your app's theme state to switch it reactively.
Adjust typography and color
Start with a preset and override only the tokens you need:
Import
Themefrom@fluxdown/solid.
A token object on its own uses light as its base. Use ['dark', overrides] to start from the dark theme. Set colors.bg: 'transparent' to blend into the surrounding container.
Arrange the container
Solid's class, classList and style apply to the outer element. Use them to arrange that container, and tokens for the Markdown inside it:
See configuration for syntax options such as math and footnotes.
Style fields
All fields below live under theme.tokens and support partial overrides. Colors, dimensions, and spacing accept CSS values; line heights and font weights also accept numbers. Omitted fields inherit from the selected theme.
Import
ThemeTokensfrom@fluxdown/solidfor the full type.
Colors
Typography
Headings
Replace <level> with h1, h2, h3, h4, h5, or h6 to configure each heading level independently.