Try not to hard code CSS properties that could be derived from @sanity/ui.
This will make sure your rendering looks good independent of the theme context it appears in.
Don't render arbitrary text nodes as this will confuse the editor with
what is editable text and not. If you need arbitrary text, make sure to wrap them in in a
container with contentEditable={false}.
Example: Example of rendering custom decorator that highlights text.
Schema definition for text block decorators.
Example: The default set of decorators