Я попытался использовать опцию префикса Taillide, но как только я импортирую, стили Primeng больше не применяются.
, чтобы исключить другие причины, я создал свежий угловой проект (угловая версия 16) и установлен только Tailwindcss и Primeng.
Код: Выделить всё
tailwind.config.jsКод: Выделить всё
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/**/*.{html,ts}",
],
theme: {
extend: {},
},
plugins: [],
prefix: "tw-",
}
< /code>
angular.jsonКод: Выделить всё
{
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css"
],
"scripts": []
},
< /code>
style.cssКод: Выделить всё
@tailwind base;
@tailwind components;
@tailwind utilities;
@import "primeng/resources/themes/lara-light-blue/theme.css";
@import "primeng/resources/primeng.css";
< /code>
In the app component I have a few test divs (Primeng button and Input - Tailwind container with some styles)
After I delete the tailwindcss imports (more precisely @tailwind/base) from the style.cssПодробнее здесь: https://stackoverflow.com/questions/772 ... to-project
Мобильная версия