You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the main project, I am importing and using both the ui and graph projects.
What I want is for the main project to use the globals.css from the ui project as it is, because the components in the ui project are developed according to the design system.
However, when using components implemented in the graph project in the main project, issues arise.
It seems that when there are the same classNames, the globals.css from the ui project is overriding the classNames from the graph project.
What I want is for the main and ui projects to use the globals.css from the ui project as is, while the graph project should apply its own globals.css. In other words, I don’t want the globals.css from the ui project to affect the graph project.
I've tried both no1 and no2 listed in the main.css. I'm not sure which part of the documentation I should refer to in order to resolve this issue. I would appreciate your help.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Version
"tailwindcss": "^4.1.3",
"@tailwindcss/postcss": "^4.1.3",
Problem & Expectation
I am using a monorepo.
ㄴ globals.css
ㄴ globals.css
ㄴ globals.css
In the main project, I am importing and using both the ui and graph projects.
What I want is for the main project to use the
globals.css
from the ui project as it is, because the components in the ui project are developed according to the design system.However, when using components implemented in the graph project in the main project, issues arise.
It seems that when there are the same classNames, the
globals.css
from the ui project is overriding the classNames from the graph project.What I want is for the main and ui projects to use the
globals.css
from the ui project as is, while the graph project should apply its ownglobals.css
. In other words, I don’t want theglobals.css
from the ui project to affect the graph project.Code
main globals.css
ui globals.css
project globals.css
I've tried both no1 and no2 listed in the main.css. I'm not sure which part of the documentation I should refer to in order to resolve this issue. I would appreciate your help.
Beta Was this translation helpful? Give feedback.
All reactions