I set up a project using ng new and then followed the instructions to add nebular to an existing app. I defaulted to cosmic. This has resulting in the following files. So when I set the theme to cosmic or default in the NbThemeModule.forRoot(), it works, but 'corporate' does not. The resulting screen is all smashed together at the top.
Can someone tell me what I need to do to get the 'corporate' to work? If you know of any good tutorials on the themes for nebular, that would be great. I am completely clueless.
app.module.ts:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeScreenComponent } from './home-screen/home-screen.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NbThemeModule, NbLayoutModule, NbSidebarModule } from '@nebular/theme';
@NgModule({
declarations: [
AppComponent,
HomeScreenComponent
],
imports: [
BrowserModule,
AppRoutingModule,
BrowserAnimationsModule,
NbThemeModule.forRoot({ name: 'cosmic' }),
NbLayoutModule,
NbSidebarModule.forRoot()
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
theme.scss:
@import '~@nebular/theme/styles/theming';
@import '~@nebular/theme/styles/themes/cosmic';
$nb-themes: nb-register-theme((
// add your variables here like:
// color-bg: #4ca6ff,
), cosmic, cosmic);
angular.json:
"styles": [
"src/styles.scss"
],