question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can you adapt the styles of nebular components?

See original GitHub issue

I have been trying to adapt the styling of various components without any luck. There are two things I have been trying to do without success. 1) adapt the card-body background color to transparent. 2) adapt the position of a popover (i don’t want it to appear exactly in the middle when in ‘top’ position).

I have tried to create classes and ID’s for this but when I place keys for the classes in the scss the components do not change. I am not sure if they are being overwritten or whether I am attempting to access the components incorrectly. I tried to find documentation on how to adapt nebular style components, the documentation is good for how to set up the theme system, but I couldn’t find an example of how to adapt it?

example: <nb-card class="adapted"></nb-card>

scss: .adapted { background-color: rgba(0,0,0,0) }

The above code doesn’t change anything.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

6reactions
ilgiznurgalievcommented, Feb 23, 2021

Hi.

Could some one please show any example how to change theme variable for card? I need to change card-header-text-font-size variable for example.

Thank you in advance.

4reactions
alfredottcommented, Aug 20, 2019

Hi @happyxhw If I’m not mistaken, you can style each of your layouts independently by adding a css class to them, kind of this way :

<nb-layout class="my-css-class">
  ...
</nb-layout>
nb-layout.my-css-class {
  ...
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Enable Customizable Theme - Nebular
Enable Customizable Themes. Nebular styles come as a css file by default. In order to be able to customize theme variables, scss files...
Read more >
Layout Angular UI Component - Nebular - GitHub Pages
The child components are projected into a flexible layout structure allowing to adjust the layout behavior based on the settings provided.
Read more >
Eva Design System Theme - Nebular - GitHub Pages
In Nebular terms - theme is a sass map, structured in a particular way. ... Adjust these styles to change text style of...
Read more >
Create Custom Theme - Nebular
Create Custom Theme · Select parent Theme · Register new Theme · Start with Basic · Tweak backgrounds · Adjust shadows · Text...
Read more >
Nebular - Changing Theme - GitHub Pages
Change Current Theme. Nebular Theme System provides 4 color schemes out of the box - default , dark , corporate and cosmic ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found