How would I setup a "3 layered" config (main/app/library) #11079
Unanswered
popoleeMaster
asked this question in
Help
Replies: 1 comment 2 replies
-
|
Yes, you seem to be trying to define the configuration file that Tailwind uses to be plugins: {
tailwindcss: {
- config: join(__dirname, 'tailwind.config.js'),
+ config: join(__dirname, 'tailwind.?.js'),
},
autoprefixer: {},Consider ensuring that the module.exports = {
presets: [require('./path/to/tailwind.config.js')],
// …
};Furthermore, you seem to have some syntax errors in I'm not sure what you were intending here so I can't offer a correction, but this should be looked at and rectified. |
Beta Was this translation helpful? Give feedback.
2 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.
-
I have a question concerning tailwind config structure in my Nx monorepo.
I am currently trying to setup a configuration like this :
tailwind.preset.js=> the main configuration of all app and library. It will declare some basic value for the theme (like colors, spacing etc...) that is used everywhere in the app.fe:
tailwind.config.js=> the configuration of a app, this will declare the theme of that app and all library used by this app. for exemple defining a primary color in the list of colors, imported from the palette of the preset. This primary colors will be used in the app and all library that the app import.fe:
so here I could use like
text-red-1but alsotext-redtailwind.?.js=> the configuration of the library, so this library would add additional stuff to the theme, but also import all previous colors. so like. So in this library if Ife:
so here I could use like
text-red-1but alsotext-redbut alsotext-toggle. It is important to note that depending which app implement this lib, theprimarycan be different.I am struggling with that last part. the
primaryis not found and can't be used in the library. The way I declare this last config is liketailwind.config.ts
postcss.config.js
I guess this is wrong ?
Beta Was this translation helpful? Give feedback.
All reactions