Unable to apply nebular styles to any component
See original GitHub issueIssue type
I’m submitting a …
- [ X] bug report
- feature request
Issue description
Current behavior: I have an existing project in which I want to add nebular components.
I have successfully added a stepper, but none of the Nebular styles are applied to any element of the stepper (including buttons).
I have followed the instructions on how to integrate the styles, but it is not working as expected. The bootstrap styles do work as expected.
I’ve also tried to manually add the bundled css file to index.html, but it does not work anyways.
Finally, I’ve also started from scratch with the ngx-admin starter app, and I’ve imported all stylings from that project (where styling was working). Still Nebular components are not styled in the project in which I would like to integrate Nebular.
Expected behavior: Following the step-by-step guide on how to integrate Nebular should result in the styles properly applied.
Steps to reproduce:
-
Start a new project with
ng new my-project
. Add Bootstrap and NgBootstrap. -
Import all bootstrap style as scss in a
styles.scss
file, and add suchstyles.scss
file toangular.json
. -
Follow the step by step guide on how to integrate Nebular in an existing project.
Related code:
https://stackblitz.com/edit/angular-nebular-integration
I’ve added the stepper and the button, and none of the elements is properly styled.
Other information:
See the stackblitz example.
Angular, Nebular
v. 2.0.0-rc.10
Issue Analytics
- State:
- Created 5 years ago
- Comments:10
Top GitHub Comments
Hi there! I was following your guide to add the nebular theme to my project and create a page! I installed nebular using the angular CLI as suggested in this doc -> https://akveo.github.io/nebular/docs/guides/install-nebular#using-angular-cli and I successfully created the page while following this doc -> https://akveo.github.io/nebular/docs/guides/create-nebular-page#create-nebular-page.
While the page got created the styles were not applied to the text as shown in the docs! Could you please point me in the right direction if i have to install the styles seperately? Thanks in advance!
Hi @ilDon, have you followed the documentation here https://akveo.github.io/nebular/docs/guides/add-into-existing-project#create-a-page? The
NbLayoutComponent
is a required one for styles to apply.