Closed rut2 closed 3 years ago
Tailwind CSS version?
what's classes
with conflicting your CSS?
@kenhyuwa I am using
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.0.4", "@tailwindcss/postcss7-compat": "^2.0.4"
it's affecting all base tags like <h1> <h2> ...
and font style as well.
this is my _date-picker.scss
` // // _date-picker.scss //
// tailwind @tailwind base; @tailwind components; @tailwind utilities;
`
in this production or development?
It's in development. If I don't use @tailwind base;
then everything works fine except litepie
can you share tailwind.config.js
here it is
const path = require("path");
const colors = require("tailwindcss/colors");
module.exports = {
important: "#tailwind",
purge: [path.resolve(__dirname, "./node_modules/litepie-datepicker/**/*.js")],
theme: {
extend: {
colors: {
// Change with you want it
"litepie-primary": colors.lightBlue, // color system for light mode
"litepie-secondary": colors.coolGray // color system for dark mode
}
}
},
variants: {
extend: {
cursor: ["disabled"],
textOpacity: ["disabled"],
textColor: ["disabled"]
}
}
};
postcss.config.js
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
};
do you use vue-cli/vite?
try with purge: false
.
so, are your problem is fix now?
No actually, as litepie is not using any prefix, CSS classing is not working if I add prefix project. Still the problem is not resolved
I'm not sure with your problem. because, I also implement to existing project and still work.
please, reopen with spesific issues.
As litepie-datepicker is rely on tailwind, after successful integration of tailwind, it's conflicting with existing CSS that causes lots of design issues.
How can I integrate litepie without affecting existing design?