Replies: 1 comment 4 replies
-
Thank you for your input, happy to have this discussion. This is obviously a necessity to make the editor more flexible. To ensure that we're on the same page, I want to confirm the challenges you see are with the content styling itself - not with the toolbar/editors/etc. The "chrome" of the editor is a different story, a large one must I say. Up to your suggested changes:
100% - happy to accept a PR on the matter. It needs a decent documentation, though.
This one I don't get - isn't this the same as the previous suggestion?
This part I'm also not entirely clear on. Do you refer to these? More documentation is always good, but in this case I would rather just link to the source code itself. What are the challenges with overriding? Perhaps a matter of documentation.
I think that if replacing the Lexical theme configuration is possible, then overriding the lexical-theme CSS module is redundant? As far as |
Beta Was this translation helpful? Give feedback.
-
Are there current plans to support theme capabilities for use with sites where other custom CSS rules are applied?
The problems I'm having:
.contentEditable
selector's setting ofcolor
which is not present onp
.code
blocks, get conflicting styles from Lexical vs standard CSS (visible in the current Live Editor, as the lexical class overrides the@tailwindcss/typography
style)@tailwindcss/typography
causes cascades to internal elements, so cannot be used in many of my advanced scenarios.These are the parts that I think would need to change:
LexicalComposer
theme
configurationRichTextEditor
A couple options that I can think of (my preferred one is first, but I'd be willing to provide a PR with either if some direction of desired conventions is provided):
ui
andlexical-theme
) as default valuesBoth options would need documentation of the CSS variables to override for the editors.
I'd suggest that default styles for toolbars, editors, etc. are only affected via the CSS variables; those could be further themed via plugin options.
Beta Was this translation helpful? Give feedback.
All reactions