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/react-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.
Native text styles
Text styles propagate explicitly to native text elements without CSS inheritance. Fonts and glyph metrics come from the host. inlineCode.whiteSpace supports normal and nowrap; other values use normal. The built-in native slots do not apply typography.fontSmoothing or colors.accentHover; custom host slots can use these tokens.