EditorStyle class. You can customize colors, text styles, padding, and more to match your application’s design.
Overview
TheEditorStyle class controls the visual appearance of the editor, including:
- Cursor and selection colors
- Text styles for different formatting types
- Padding and layout
- Platform-specific styling (desktop vs mobile)
Basic theme customization
Here’s a simple example of customizing the editor theme:Customizing text styles
TheTextStyleConfiguration allows you to customize the appearance of different text formatting options:
documentation/customizing.md:119-166
Platform-specific styling
You can apply different styles based on the platform:Custom text decorators
You can add custom behavior to text spans using thetextSpanDecorator:
documentation/customizing.md:150-164
Changing text direction
The text direction is LTR by default, but you can change it by wrapping AppFlowyEditor withDirectionality:
documentation/customizing.md:257-268
Complete example
Here’s a complete example with custom theming:For more advanced theming, see the EditorStyle API reference and TextStyleConfiguration API reference.
Related
EditorStyle API
Complete API reference for EditorStyle
Block Components
Customize block component styling