Replies: 1 comment 5 replies
-
|
I've seen other discussions and https://mdxeditor.dev/editor/docs/theming I thought that I would have had to reimplement plugins such as |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! First, I'm loving this package, it's blazing fast and really solves my needs, compared to other solutions such as Plate or Tiptap.
I'm integrating the editor in an personal note-taking application, where I have many instances of the editor on a page.
I'm using Tailwind 4, React 19 and shadcn canary (radix).
Shadcn is pretty simple, it just creates files for Radix components styled with tailwind styles in
components/ui. This is an example of a button component from shadcn.The
globals.cssfile in my app just imports tailwind 4 and provides CSS variables for colors for tailwind to pick up,Then, everything is processed by Vite with
@tailwindcss/viteplugin.I was wondering how to correctly style (or rewrite the plugins) for the MDX Editor UI components, such as the link dialog and toolbar using my styled components in
@/components/ui/(shadcn) with Tailwind.I could have many ways of hacking this around, but I'm not sure which one is the best route to go.
In the component where I use the editor, I import the MDX Editor CSS file and use the editor as follows. Class names of
prose max-w-noneallowed me to use the typography of@tailwindcss/typography, but I'm not sure how to proceeds for styling components such as toolbar buttons, dialogs, menus, etc.Any insight would be deeply appreciated
Beta Was this translation helpful? Give feedback.
All reactions