Ngx-admin: Enabling Custom Theme

Created on 15 Nov 2019  路  1Comment  路  Source: akveo/ngx-admin

I'm submitting a ... (check one with "x")

*[x] bug report

  • [ ] feature request

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

needs info

Most helpful comment

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).

>All comments

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).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

argnist picture argnist  路  4Comments

fabltd picture fabltd  路  3Comments

dreamerleolioa picture dreamerleolioa  路  4Comments

hoswey picture hoswey  路  3Comments

Kalaijagdai picture Kalaijagdai  路  4Comments