#can I use tailwind and customized

1 messages · Page 1 of 1 (latest)

proud field
#

when I am trying to use one other is not working.

subtle skiff
#

Yes you can do that. Just import both css files

proud field
#

i m using customized bootstrap

subtle skiff
#

So?

proud field
#

am I missing something?

subtle skiff
#

It should work assuming you set up scss correctly

proud field
#

is this fine?

subtle skiff
#

Tailwind works based on postcss so you need to use the @tailwind directive

proud field
#

I have tried by keeping tailwind in global.css

#

then also not working

#

nextjs config /** @type {import('next').NextConfig} */
const path = require('path');

const nextConfig = {
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
}

module.exports = nextConfig

subtle skiff
#

What is not working? Idk about sass but assuming you installed sass and set it up correctly, it should work

proud field
#

When I am trying to use bootsrap by commenting tailwind import

#

it is working fine

#

and when I am commenting bootstrap and using tailwind it also works fine

#

but together they don't

#

Did I made you a clear explanation?

#

@subtle skiff can you help

subtle skiff
#

they work together perfectly

#

so idk what's wrong for your side

proud field
#

Okay, Thanks

#

Thanks for helping

#

Let me check

proud field
#

@subtle skiff it's working except for the navbar

subtle skiff
#

that's super weird then and i don't really know what to say

#

css files don't really discriminate against particular elements in the DOM