steven-tey / novel

Notion-style WYSIWYG editor with AI-powered autocompletion.
https://novel.sh
Apache License 2.0
13.25k stars 1.08k forks source link

Issues with Next/Tailwind project. #209

Closed ozamamurzleen closed 1 year ago

ozamamurzleen commented 1 year ago

We are trying to use the editor in app. BUT its overriding all our styles. Can you suggest what can we do to avoid conflicting with our styles?

sbusso commented 1 year ago

Just trying to integrate the Novel package in a Next app and I have the same issue here. It looks like prefix styles are not preventing main styles from being overridden. related to #201 #202 #203

ozamamurzleen commented 1 year ago

@sbusso Yes. Thanks having same issues.

Ankur-Datta-4 commented 1 year ago

I'm still facing this issue. Is it sorted>?

justinkook commented 1 year ago

Not yet sorted. I'm still having issues with the styles being overwritten.

josealvarez97 commented 11 months ago

@justinkook Did you come with an effective workaround? Whenever I import a component using novel into another component, I get my styles from globals.css (not tailwind) overwritten, e..g, default color of a tags

** Update:

Increasing the specificity of my a tag in globals.css seemed to have been a temporary effective workaround.

/* Gets overridden whenever I import a component using Novel into another component*/
a {
  color: #4682b4;
}
/* Does not get overridden */
html a {
  color: #4682b4;
}