akveo / akveo/nebular

I can't change the Nebular theme

Offen
#2,667 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
8.1k
Forks
1.5k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Issue type

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

* [x] bug report
* [ ] feature request

### Issue description

**Current behavior:**
I can't change the theme from `default` to any other theme. The theming completely disappear as well as the modules.
The Nebular theme works as expected only when using the `default` theme.

With default theme:
![Default theme](https://nsa40.casimages.com/img/2021/02/11//210211094439915703.png)

With dark theme (the same goes with corporate and cosmic themes):
![Corporate theme](https://nsa40.casimages.com/img/2021/02/11//21021109444042875.png)

It seems that the Nebular themes and modules are not working.

**Expected behavior:**
Well, the dark, cosmic or corporate themes should be displayed.

**Steps to reproduce:**
```
ng add @nebular/theme
? Which Nebular theme do you want to use: default
? Use customizable scss themes? Yes
? Set up browser animations for Nebular? Yes
```

**Related code:**
This works perfectly:
```ts
imports: [
// some imports...
NbThemeModule.forRoot({ name: "default" }),
// other Nebular imports...
],
```

This doesn't work at all:
```ts
imports: [
// some imports...
NbThemeModule.forRoot({ name: "dark" }), // the same goes with cosmic and corporate, only default works
// other Nebular imports...
],
```

### Other information:

**npm, node, OS, Browser**
Node: 12.19.0
npm: 6.14.8
OS: Windows 10
Browser: Mozilla Firefox and Google Chrome

**Angular, Nebular**
Angular: 11.1.4
Nebular: 7.0.0

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.