admin管理员组文章数量:1122846
I cant seem to get the selectButton, table and other component styles like in the screenshot below (like on their website).
I dont know if its the theme or what, but I've tried to change the themes up and I cant seem to get this look like below (like their exmaples):
So this is my angular.json:
"styles": [
"src/styles.scss",
"node_modules/primeng/resources/themes/mira/theme.css",
"node_modules/primeng/resources/primeng.min.css",
"node_modules/primeicons/primeicons.css",
"node_modules/primeflex/primeflex.css",
"node_modules/primeicons/primeicons.css"
],
And I'm on angular version 18 and primeng 17.18.12 Package.json:
"dependencies": {
"@angular/animations": "^18.2.0",
"@angular/common": "^18.2.0",
"@angular/compiler": "^18.2.0",
"@angular/core": "^18.2.0",
"@angular/forms": "^18.2.0",
"@angular/platform-browser": "^18.2.0",
"@angular/platform-browser-dynamic": "^18.2.0",
"@angular/router": "^18.2.0",
"@fullcalendar/core": "^6.1.15",
"@fullcalendar/daygrid": "^6.1.15",
"@fullcalendar/timegrid": "^6.1.15",
"chart.js": "^4.4.6",
"file-saver": "^2.0.5",
"moment": "^2.30.1",
"primeflex": "^3.3.1",
"primeicons": "^7.0.0",
"primeng": "^17.18.12",
"quill": "^2.0.2",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"xlsx": "^0.18.5",
"zone.js": "~0.14.10"
},
I want the same theme and styling as the buttons above and overall styling like in the primeng website docs examples. HELP do I need to change the theme or what !
I cant seem to get the selectButton, table and other component styles like in the screenshot below (like on their website). https://primeng.org/table
I dont know if its the theme or what, but I've tried to change the themes up and I cant seem to get this look like below (like their exmaples):
So this is my angular.json:
"styles": [
"src/styles.scss",
"node_modules/primeng/resources/themes/mira/theme.css",
"node_modules/primeng/resources/primeng.min.css",
"node_modules/primeicons/primeicons.css",
"node_modules/primeflex/primeflex.css",
"node_modules/primeicons/primeicons.css"
],
And I'm on angular version 18 and primeng 17.18.12 Package.json:
"dependencies": {
"@angular/animations": "^18.2.0",
"@angular/common": "^18.2.0",
"@angular/compiler": "^18.2.0",
"@angular/core": "^18.2.0",
"@angular/forms": "^18.2.0",
"@angular/platform-browser": "^18.2.0",
"@angular/platform-browser-dynamic": "^18.2.0",
"@angular/router": "^18.2.0",
"@fullcalendar/core": "^6.1.15",
"@fullcalendar/daygrid": "^6.1.15",
"@fullcalendar/timegrid": "^6.1.15",
"chart.js": "^4.4.6",
"file-saver": "^2.0.5",
"moment": "^2.30.1",
"primeflex": "^3.3.1",
"primeicons": "^7.0.0",
"primeng": "^17.18.12",
"quill": "^2.0.2",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"xlsx": "^0.18.5",
"zone.js": "~0.14.10"
},
I want the same theme and styling as the buttons above and overall styling like in the primeng website docs examples. HELP do I need to change the theme or what !
Share Improve this question asked Nov 21, 2024 at 16:06 Ismail BegIsmail Beg 275 bronze badges1 Answer
Reset to default 1you can try
"styles": [
"src/styles.scss",
],
and on your styles.css add this lines
@import "primeng/resources/themes/mira/theme.css";
@import "primeng/resources/primeng.css";
@import 'primeflex/primeflex.scss';
@import "primeicons/primeicons.css";
also considers running an npm upgrade
本文标签: cssPrimeNG not showing components like in the examples on their websiteStack Overflow
版权声明:本文标题:css - PrimeNG not showing components like in the examples on their website - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736309097a1933896.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论