Styling
Use className and style for outer layout, and theme for colors and typography within the content.
Page layout
style accepts a Lynx style object:
Light and dark
Choose a preset with theme="light" or theme="dark". Connect it to your app's theme state to follow the surrounding interface:
Override a theme
Themes accept a preset name, partial overrides, or [preset, overrides]. Use strings with units for dimensions and fonts loaded by your host:
Import
Theme,ThemeTokensandPartialThemeConfigfrom@fluxdown/lynx-plugins/typings.
Every group accepts partial overrides; you do not need to copy a complete theme. Use slot plugins to replace navigation, code toolbars or image components.