Styling
Use class and style for outer layout, and theme for colors and typography inside the content.
Page layout
style accepts a CSS string. Pass an existing application class through class:
Svelte scopes component styles by default. Use a global selector when styling the component's outer element through this class:
Light and dark
Choose a preset with theme="light" or theme="dark". Connect it to your application's theme state:
Override the theme
A theme accepts a preset name, partial overrides, or a [preset, overrides] tuple:
Import
Theme,ThemeTokensandPartialThemeConfigfrom@fluxdown/svelte.
Each group accepts partial overrides. Use slot plugins to replace code toolbars, links or image components.