How to change nebular spinner (NbSpinner) background color

1.8k Views Asked by At

I want to change the background color for nebular spinner, I am writing below code but it is not working,

@import "~@nebular/theme/styles/theming";
@import "~@nebular/theme/styles/themes/default";

 $nb-themes: nb-register-theme((
  spinner-primary-background-color: white,
   ), default, default );

I am following this documentation to modify nebular theme variable, Enable Customizable Theme

Any help on how to do it? Am I missing any imports or am I accessing the theme variables incorrectly? Thanks in advance.

1

There are 1 best solutions below

7
On

You can use spinner-primary-bg in themes.scss:

$nb-themes: nb-register-theme((
  spinner-primary-bg: white,
   ), default-ltr, default );

For local scss, use this:

.nb-theme-default nb-spinner.primary-spinner .spin-circle{
  border-right-color: white,
}