I'm submitting a ... (check one with "x")
*[x] bug report
I'll Try to Enabling Custom Theme by the following this guide https://akveo.github.io/nebular/docs/design-system/create-custom-theme, but when I check on console there is some error on it :
core.js:7187 ERROR Error: NbThemeConfig: no theme 'aquamarine' found registered.
at NbJSThemesRegistry.get (index.js:259)
at MapSubscriber.project (index.js:475)
at MapSubscriber._next (map.js:29)
at MapSubscriber.next (Subscriber.js:49)
at RefCountSubscriber._next (Subscriber.js:72)
at RefCountSubscriber.next (Subscriber.js:49)
at Subject.next (Subject.js:39)
at ConnectableSubscriber._next (Subscriber.js:72)
at ConnectableSubscriber.next (Subscriber.js:49)
at ReplaySubject._subscribe (ReplaySubject.js:57)
I Use Windows10 and the Angular Version Following on https://github.com/akveo/ngx-admin.git
You also need to register your custom theme as a js theme.
See src/app/@theme/styles/ directory, there is theme.*.ts for each theme. You can copy file of the theme you extending and name it theme.aquamarine.ts. In the new file, rename theme object variable (for example, AQUAMARINE_THEME), set name property to aquamarine and set base property to the name of the theme you extending.
Then you need to register your js theme. Open src/app/@theme/theme.module.ts and find NbThemeModule.forRoot call. Add AQUAMARINE_THEME to the array of js themes (second argument).
Most helpful comment
You also need to register your custom theme as a js theme.
See
src/app/@theme/styles/directory, there istheme.*.tsfor each theme. You can copy file of the theme you extending and name ittheme.aquamarine.ts. In the new file, rename theme object variable (for example, AQUAMARINE_THEME), setnameproperty toaquamarineand setbaseproperty to the name of the theme you extending.Then you need to register your js theme. Open
src/app/@theme/theme.module.tsand findNbThemeModule.forRootcall. AddAQUAMARINE_THEMEto the array of js themes (second argument).