mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-20 00:06:10 +01:00
Merge branch 'feat/material-theme' into feat/material-demo
This commit is contained in:
commit
a5061e7c10
92 changed files with 11784 additions and 9163 deletions
|
|
@ -1,12 +1,29 @@
|
|||
<div class="header-container">
|
||||
<div class="logo-container">
|
||||
<a (click)="toggleSidebar()" href="#" class="sidebar-toggle">
|
||||
<nb-icon icon="menu-2-outline"></nb-icon>
|
||||
<a
|
||||
href="#"
|
||||
class="sidebar-toggle"
|
||||
matRipple
|
||||
[matRippleUnbounded]="true"
|
||||
[matRippleCentered]="true"
|
||||
(click)="toggleSidebar()"
|
||||
>
|
||||
<nb-icon [icon]="(materialTheme$ | async) ? 'menu-outline' : 'menu-2-outline'"></nb-icon>
|
||||
</a>
|
||||
<a class="logo" href="#" (click)="navigateHome()">ngx-<span>admin</span></a>
|
||||
</div>
|
||||
<nb-select [selected]="currentTheme" (selectedChange)="changeTheme($event)" status="primary" class="theme-select">
|
||||
<nb-option *ngFor="let theme of themes" [value]="theme.value">{{ theme.name }}</nb-option>
|
||||
<nb-select
|
||||
status="primary"
|
||||
class="theme-select"
|
||||
matRipple
|
||||
[selected]="currentTheme"
|
||||
(selectedChange)="changeTheme($event)"
|
||||
>
|
||||
<nb-option
|
||||
*ngFor="let theme of themes"
|
||||
[value]="theme.value"
|
||||
matRipple
|
||||
>{{ theme.name }}</nb-option>
|
||||
</nb-select>
|
||||
</div>
|
||||
|
||||
|
|
@ -25,18 +42,18 @@
|
|||
<nb-icon icon="download"></nb-icon>
|
||||
<span class="subtitle number">470.000</span>
|
||||
</nb-action>
|
||||
<nb-action class="control-item contact-us">
|
||||
<nb-action class="control-item contact-us" matRipple [matRippleUnbounded]="true" [matRippleCentered]="true">
|
||||
<a nbButton ghost href="mailto:contact@akveo.com" (click)="trackEmailClick()">
|
||||
<nb-icon icon="email-outline" pack="eva"></nb-icon>
|
||||
<span>contact@akveo.com</span>
|
||||
</a>
|
||||
</nb-action>
|
||||
<nb-action class="control-item search">
|
||||
<nb-search type="rotate-layout" (click)="startSearch()"></nb-search>
|
||||
<nb-search type="rotate-layout" (click)="startSearch()" matRipple [matRippleUnbounded]="true" [matRippleCentered]="true"></nb-search>
|
||||
</nb-action>
|
||||
<nb-action class="control-item email" icon="email-outline"></nb-action>
|
||||
<nb-action class="control-item notifications" icon="bell-outline"></nb-action>
|
||||
<nb-action class="user-action" *nbIsGranted="['view', 'user']" >
|
||||
<nb-action class="control-item email" icon="email-outline" matRipple [matRippleUnbounded]="true" [matRippleCentered]="true"></nb-action>
|
||||
<nb-action class="control-item notifications" icon="bell-outline" matRipple [matRippleUnbounded]="true" [matRippleCentered]="true"></nb-action>
|
||||
<nb-action class="user-action" *nbIsGranted="['view', 'user']" matRipple [matRippleUnbounded]="true" [matRippleCentered]="true">
|
||||
<nb-user [nbContextMenu]="userMenu"
|
||||
[onlyPicture]="userPictureOnly"
|
||||
[name]="user?.name"
|
||||
|
|
|
|||
|
|
@ -53,8 +53,8 @@
|
|||
width: auto;
|
||||
|
||||
.sidebar-toggle {
|
||||
@include nb-ltr(padding-right, 1.25rem);
|
||||
@include nb-rtl(padding-left, 1.25rem);
|
||||
@include nb-ltr(margin-right, 1.25rem);
|
||||
@include nb-rtl(margin-left, 1.25rem);
|
||||
text-decoration: none;
|
||||
color: nb-theme(text-hint-color);
|
||||
nb-icon {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@ import { NbMediaBreakpointsService, NbMenuService, NbSidebarService, NbThemeServ
|
|||
import { UserData } from '../../../@core/data/users';
|
||||
import { AnalyticsService, LayoutService } from '../../../@core/utils';
|
||||
import { map, takeUntil } from 'rxjs/operators';
|
||||
import { Subject } from 'rxjs';
|
||||
import { Subject, Observable } from 'rxjs';
|
||||
import { RippleService } from '../../../@core/utils/ripple.service';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-header',
|
||||
|
|
@ -14,6 +15,7 @@ import { Subject } from 'rxjs';
|
|||
export class HeaderComponent implements OnInit, OnDestroy {
|
||||
|
||||
private destroy$: Subject<void> = new Subject<void>();
|
||||
public readonly materialTheme$: Observable<boolean>;
|
||||
userPictureOnly: boolean = false;
|
||||
user: any;
|
||||
|
||||
|
|
@ -34,20 +36,36 @@ export class HeaderComponent implements OnInit, OnDestroy {
|
|||
value: 'corporate',
|
||||
name: 'Corporate',
|
||||
},
|
||||
{
|
||||
value: 'material-light',
|
||||
name: 'Material Light',
|
||||
},
|
||||
{
|
||||
value: 'material-dark',
|
||||
name: 'Material Dark',
|
||||
},
|
||||
];
|
||||
|
||||
currentTheme = 'default';
|
||||
|
||||
userMenu = [ { title: 'Profile' }, { title: 'Log out' } ];
|
||||
|
||||
constructor(private sidebarService: NbSidebarService,
|
||||
private menuService: NbMenuService,
|
||||
private themeService: NbThemeService,
|
||||
private userService: UserData,
|
||||
private layoutService: LayoutService,
|
||||
private breakpointService: NbMediaBreakpointsService,
|
||||
private analytics: AnalyticsService,
|
||||
) {}
|
||||
public constructor(
|
||||
private sidebarService: NbSidebarService,
|
||||
private menuService: NbMenuService,
|
||||
private themeService: NbThemeService,
|
||||
private userService: UserData,
|
||||
private layoutService: LayoutService,
|
||||
private breakpointService: NbMediaBreakpointsService,
|
||||
private analytics: AnalyticsService,
|
||||
private rippleService: RippleService,
|
||||
) {
|
||||
this.materialTheme$ = this.themeService.onThemeChange()
|
||||
.pipe(map(theme => {
|
||||
const themeName: string = theme?.name || '';
|
||||
return themeName.startsWith('material');
|
||||
}));
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.currentTheme = this.themeService.currentTheme;
|
||||
|
|
@ -69,7 +87,10 @@ export class HeaderComponent implements OnInit, OnDestroy {
|
|||
map(({ name }) => name),
|
||||
takeUntil(this.destroy$),
|
||||
)
|
||||
.subscribe(themeName => this.currentTheme = themeName);
|
||||
.subscribe(themeName => {
|
||||
this.currentTheme = themeName;
|
||||
this.rippleService.toggle(themeName?.startsWith('material'));
|
||||
});
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
|
|
|
|||
|
|
@ -8,4 +8,15 @@
|
|||
right: 0.41rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
nb-card nb-list {
|
||||
@include nb-scrollbars(
|
||||
nb-theme(card-scrollbar-color),
|
||||
nb-theme(card-scrollbar-background-color),
|
||||
nb-theme(card-scrollbar-width));
|
||||
}
|
||||
|
||||
.table {
|
||||
color: nb-theme(text-basic-color) !important;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
15
src/app/@theme/styles/material/_angular-material.scss
Normal file
15
src/app/@theme/styles/material/_angular-material.scss
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
@import '~@angular/material/theming';
|
||||
|
||||
@mixin angular-material() {
|
||||
@include mat-core();
|
||||
|
||||
@include nb-for-theme(material-dark) {
|
||||
$custom-dark-theme: mat-dark-theme(mat-palette($mat-pink), mat-palette($mat-blue-grey));
|
||||
@include angular-material-theme($custom-dark-theme);
|
||||
}
|
||||
|
||||
@include nb-for-theme(material-light) {
|
||||
$custom-light-theme: mat-light-theme(mat-palette($mat-indigo), mat-palette($mat-pink));
|
||||
@include angular-material-theme($custom-light-theme);
|
||||
}
|
||||
}
|
||||
496
src/app/@theme/styles/material/_material-dark.scss
Normal file
496
src/app/@theme/styles/material/_material-dark.scss
Normal file
|
|
@ -0,0 +1,496 @@
|
|||
/**
|
||||
* @license
|
||||
* Copyright Akveo. All Rights Reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*/
|
||||
|
||||
@import '~@nebular/theme/styles/core/functions';
|
||||
@import '~@nebular/theme/styles/core/mixins';
|
||||
|
||||
$theme: (
|
||||
color-primary-100: #fff2f7,
|
||||
color-primary-200: #ffd4e3,
|
||||
color-primary-300: #fc9abc,
|
||||
color-primary-400: #f24681,
|
||||
color-primary-500: #e91d63,
|
||||
color-primary-600: #c71451,
|
||||
color-primary-700: #a80d43,
|
||||
color-primary-800: #870935,
|
||||
color-primary-900: #70062a,
|
||||
|
||||
color-primary-transparent-100: rgba(233, 29, 99, 0.08),
|
||||
color-primary-transparent-200: rgba(233, 29, 99, 0.16),
|
||||
color-primary-transparent-300: rgba(233, 29, 99, 0.24),
|
||||
color-primary-transparent-400: rgba(233, 29, 99, 0.32),
|
||||
color-primary-transparent-500: rgba(233, 29, 99, 0.4),
|
||||
color-primary-transparent-600: rgba(233, 29, 99, 0.48),
|
||||
|
||||
color-success-100: #edfbd1,
|
||||
color-success-200: #d7f7a6,
|
||||
color-success-300: #b4e775,
|
||||
color-success-400: #8fcf50,
|
||||
color-success-500: #60af20,
|
||||
color-success-600: #499617,
|
||||
color-success-700: #357d10,
|
||||
color-success-800: #24650a,
|
||||
color-success-900: #175306,
|
||||
|
||||
color-success-transparent-100: rgba(96, 175, 32, 0.08),
|
||||
color-success-transparent-200: rgba(96, 175, 32, 0.16),
|
||||
color-success-transparent-300: rgba(96, 175, 32, 0.24),
|
||||
color-success-transparent-400: rgba(96, 175, 32, 0.32),
|
||||
color-success-transparent-500: rgba(96, 175, 32, 0.4),
|
||||
color-success-transparent-600: rgba(96, 175, 32, 0.48),
|
||||
|
||||
color-info-100: #ccf7fe,
|
||||
color-info-200: #99e9fd,
|
||||
color-info-300: #66d3f9,
|
||||
color-info-400: #40bbf4,
|
||||
color-info-500: #0495ee,
|
||||
color-info-600: #0273cc,
|
||||
color-info-700: #0256ab,
|
||||
color-info-800: #013d8a,
|
||||
color-info-900: #002b72,
|
||||
|
||||
color-info-transparent-100: rgba(4, 149, 238, 0.08),
|
||||
color-info-transparent-200: rgba(4, 149, 238, 0.16),
|
||||
color-info-transparent-300: rgba(4, 149, 238, 0.24),
|
||||
color-info-transparent-400: rgba(4, 149, 238, 0.32),
|
||||
color-info-transparent-500: rgba(4, 149, 238, 0.4),
|
||||
color-info-transparent-600: rgba(4, 149, 238, 0.48),
|
||||
|
||||
color-warning-100: #fff3cd,
|
||||
color-warning-200: #ffe49b,
|
||||
color-warning-300: #ffd169,
|
||||
color-warning-400: #ffbe43,
|
||||
color-warning-500: #ff9f05,
|
||||
color-warning-600: #db8003,
|
||||
color-warning-700: #b76302,
|
||||
color-warning-800: #934a01,
|
||||
color-warning-900: #7a3800,
|
||||
|
||||
color-warning-transparent-100: rgba(255, 159, 5, 0.08),
|
||||
color-warning-transparent-200: rgba(255, 159, 5, 0.16),
|
||||
color-warning-transparent-300: rgba(255, 159, 5, 0.24),
|
||||
color-warning-transparent-400: rgba(255, 159, 5, 0.32),
|
||||
color-warning-transparent-500: rgba(255, 159, 5, 0.4),
|
||||
color-warning-transparent-600: rgba(255, 159, 5, 0.48),
|
||||
|
||||
color-danger-100: #fbd2c8,
|
||||
color-danger-200: #f79e94,
|
||||
color-danger-300: #e75d5c,
|
||||
color-danger-400: #cf3341,
|
||||
color-danger-500: #b00020,
|
||||
color-danger-600: #970029,
|
||||
color-danger-700: #7e002e,
|
||||
color-danger-800: #66002f,
|
||||
color-danger-900: #54002f,
|
||||
|
||||
color-danger-transparent-100: rgba(176, 0, 32, 0.08),
|
||||
color-danger-transparent-200: rgba(176, 0, 32, 0.16),
|
||||
color-danger-transparent-300: rgba(176, 0, 32, 0.24),
|
||||
color-danger-transparent-400: rgba(176, 0, 32, 0.32),
|
||||
color-danger-transparent-500: rgba(176, 0, 32, 0.4),
|
||||
color-danger-transparent-600: rgba(176, 0, 32, 0.48),
|
||||
|
||||
color-basic-100: #ffffff,
|
||||
color-basic-200: #f5f5f5,
|
||||
color-basic-300: #f5f5f5,
|
||||
color-basic-400: #d4d4d4,
|
||||
color-basic-500: #b3b3b3,
|
||||
color-basic-600: #808080,
|
||||
color-basic-700: #404040,
|
||||
color-basic-800: #353535,
|
||||
color-basic-900: #303030,
|
||||
color-basic-1000: #1f1f1f,
|
||||
color-basic-1100: #141414,
|
||||
|
||||
color-basic-transparent-100: rgba(128, 128, 128, 0.08),
|
||||
color-basic-transparent-200: rgba(128, 128, 128, 0.16),
|
||||
color-basic-transparent-300: rgba(128, 128, 128, 0.24),
|
||||
color-basic-transparent-400: rgba(128, 128, 128, 0.32),
|
||||
color-basic-transparent-500: rgba(128, 128, 128, 0.4),
|
||||
color-basic-transparent-600: rgba(128, 128, 128, 0.48),
|
||||
|
||||
color-basic-control-transparent-100: rgba(255, 255, 255, 0.08),
|
||||
color-basic-control-transparent-200: rgba(255, 255, 255, 0.16),
|
||||
color-basic-control-transparent-300: rgba(255, 255, 255, 0.24),
|
||||
color-basic-control-transparent-400: rgba(255, 255, 255, 0.32),
|
||||
color-basic-control-transparent-500: rgba(255, 255, 255, 0.4),
|
||||
color-basic-control-transparent-600: rgba(255, 255, 255, 0.48),
|
||||
|
||||
color-basic-focus: color-basic-400,
|
||||
color-basic-hover: color-basic-200,
|
||||
color-basic-default: color-basic-300,
|
||||
color-basic-active: color-basic-400,
|
||||
color-basic-disabled: color-basic-transparent-300,
|
||||
color-basic-focus-border: color-basic-500,
|
||||
color-basic-hover-border: color-basic-hover,
|
||||
color-basic-default-border: color-basic-default,
|
||||
color-basic-active-border: color-basic-active,
|
||||
color-basic-disabled-border: color-basic-disabled,
|
||||
|
||||
color-basic-transparent-focus: color-basic-transparent-300,
|
||||
color-basic-transparent-hover: color-basic-transparent-200,
|
||||
color-basic-transparent-default: color-basic-transparent-100,
|
||||
color-basic-transparent-active: color-basic-transparent-300,
|
||||
color-basic-transparent-disabled: color-basic-transparent-200,
|
||||
color-basic-transparent-focus-border: color-basic-500,
|
||||
color-basic-transparent-hover-border: color-basic-500,
|
||||
color-basic-transparent-default-border: color-basic-500,
|
||||
color-basic-transparent-active-border: color-basic-500,
|
||||
color-basic-transparent-disabled-border: color-basic-transparent-300,
|
||||
|
||||
color-primary-focus: color-primary-600,
|
||||
color-primary-hover: color-primary-400,
|
||||
color-primary-default: color-primary-500,
|
||||
color-primary-active: color-primary-600,
|
||||
color-primary-disabled: color-basic-transparent-300,
|
||||
color-primary-focus-border: color-primary-700,
|
||||
color-primary-hover-border: color-primary-hover,
|
||||
color-primary-default-border: color-primary-default,
|
||||
color-primary-active-border: color-primary-active,
|
||||
color-primary-disabled-border: color-primary-disabled,
|
||||
|
||||
color-primary-transparent-focus: color-primary-transparent-300,
|
||||
color-primary-transparent-hover: color-primary-transparent-200,
|
||||
color-primary-transparent-default: color-primary-transparent-100,
|
||||
color-primary-transparent-active: color-primary-transparent-300,
|
||||
color-primary-transparent-disabled: color-basic-transparent-200,
|
||||
color-primary-transparent-focus-border: color-primary-500,
|
||||
color-primary-transparent-hover-border: color-primary-500,
|
||||
color-primary-transparent-default-border: color-primary-500,
|
||||
color-primary-transparent-active-border: color-primary-500,
|
||||
color-primary-transparent-disabled-border: color-basic-transparent-300,
|
||||
|
||||
color-success-focus: color-success-600,
|
||||
color-success-hover: color-success-400,
|
||||
color-success-default: color-success-500,
|
||||
color-success-active: color-success-600,
|
||||
color-success-disabled: color-basic-transparent-300,
|
||||
color-success-focus-border: color-success-700,
|
||||
color-success-hover-border: color-success-hover,
|
||||
color-success-default-border: color-success-default,
|
||||
color-success-active-border: color-success-active,
|
||||
color-success-disabled-border: color-success-disabled,
|
||||
|
||||
color-success-transparent-focus: color-success-transparent-300,
|
||||
color-success-transparent-hover: color-success-transparent-200,
|
||||
color-success-transparent-default: color-success-transparent-100,
|
||||
color-success-transparent-active: color-success-transparent-300,
|
||||
color-success-transparent-disabled: color-basic-transparent-200,
|
||||
color-success-transparent-focus-border: color-success-500,
|
||||
color-success-transparent-hover-border: color-success-500,
|
||||
color-success-transparent-default-border: color-success-500,
|
||||
color-success-transparent-active-border: color-success-500,
|
||||
color-success-transparent-disabled-border: color-basic-transparent-300,
|
||||
|
||||
color-info-focus: color-info-600,
|
||||
color-info-hover: color-info-400,
|
||||
color-info-default: color-info-500,
|
||||
color-info-active: color-info-600,
|
||||
color-info-disabled: color-basic-transparent-300,
|
||||
color-info-focus-border: color-info-700,
|
||||
color-info-hover-border: color-info-hover,
|
||||
color-info-default-border: color-info-default,
|
||||
color-info-active-border: color-info-active,
|
||||
color-info-disabled-border: color-info-disabled,
|
||||
|
||||
color-info-transparent-focus: color-info-transparent-300,
|
||||
color-info-transparent-hover: color-info-transparent-200,
|
||||
color-info-transparent-default: color-info-transparent-100,
|
||||
color-info-transparent-active: color-info-transparent-300,
|
||||
color-info-transparent-disabled: color-basic-transparent-200,
|
||||
color-info-transparent-focus-border: color-info-500,
|
||||
color-info-transparent-hover-border: color-info-500,
|
||||
color-info-transparent-default-border: color-info-500,
|
||||
color-info-transparent-active-border: color-info-500,
|
||||
color-info-transparent-disabled-border: color-basic-transparent-300,
|
||||
|
||||
color-warning-focus: color-warning-600,
|
||||
color-warning-hover: color-warning-400,
|
||||
color-warning-default: color-warning-500,
|
||||
color-warning-active: color-warning-600,
|
||||
color-warning-disabled: color-basic-transparent-300,
|
||||
color-warning-focus-border: color-warning-700,
|
||||
color-warning-hover-border: color-warning-hover,
|
||||
color-warning-default-border: color-warning-default,
|
||||
color-warning-active-border: color-warning-active,
|
||||
color-warning-disabled-border: color-warning-disabled,
|
||||
|
||||
color-warning-transparent-focus: color-warning-transparent-300,
|
||||
color-warning-transparent-hover: color-warning-transparent-200,
|
||||
color-warning-transparent-default: color-warning-transparent-100,
|
||||
color-warning-transparent-active: color-warning-transparent-300,
|
||||
color-warning-transparent-disabled: color-basic-transparent-200,
|
||||
color-warning-transparent-focus-border: color-warning-500,
|
||||
color-warning-transparent-hover-border: color-warning-500,
|
||||
color-warning-transparent-default-border: color-warning-500,
|
||||
color-warning-transparent-active-border: color-warning-500,
|
||||
color-warning-transparent-disabled-border: color-basic-transparent-300,
|
||||
|
||||
color-danger-focus: color-danger-600,
|
||||
color-danger-hover: color-danger-400,
|
||||
color-danger-default: color-danger-500,
|
||||
color-danger-active: color-danger-600,
|
||||
color-danger-disabled: color-basic-transparent-300,
|
||||
color-danger-focus-border: color-danger-700,
|
||||
color-danger-hover-border: color-danger-hover,
|
||||
color-danger-default-border: color-danger-default,
|
||||
color-danger-active-border: color-danger-active,
|
||||
color-danger-disabled-border: color-danger-disabled,
|
||||
|
||||
color-danger-transparent-focus: color-danger-transparent-300,
|
||||
color-danger-transparent-hover: color-danger-transparent-200,
|
||||
color-danger-transparent-default: color-danger-transparent-100,
|
||||
color-danger-transparent-active: color-danger-transparent-300,
|
||||
color-danger-transparent-disabled: color-basic-transparent-200,
|
||||
color-danger-transparent-focus-border: color-danger-500,
|
||||
color-danger-transparent-hover-border: color-danger-500,
|
||||
color-danger-transparent-default-border: color-danger-500,
|
||||
color-danger-transparent-active-border: color-danger-500,
|
||||
color-danger-transparent-disabled-border: color-basic-transparent-300,
|
||||
|
||||
color-control-focus: color-basic-300,
|
||||
color-control-hover: color-basic-200,
|
||||
color-control-default: color-basic-100,
|
||||
color-control-active: color-basic-300,
|
||||
color-control-disabled: color-basic-transparent-300,
|
||||
color-control-focus-border: color-basic-500,
|
||||
color-control-hover-border: color-control-hover,
|
||||
color-control-default-border: color-control-default,
|
||||
color-control-active-border: color-control-active,
|
||||
color-control-disabled-border: color-control-disabled,
|
||||
|
||||
color-control-transparent-focus: color-basic-control-transparent-300,
|
||||
color-control-transparent-hover: color-basic-control-transparent-200,
|
||||
color-control-transparent-default: color-basic-control-transparent-100,
|
||||
color-control-transparent-active: color-basic-control-transparent-300,
|
||||
color-control-transparent-disabled: color-basic-transparent-200,
|
||||
color-control-transparent-focus-border: color-basic-100,
|
||||
color-control-transparent-hover-border: color-basic-100,
|
||||
color-control-transparent-default-border: color-basic-100,
|
||||
color-control-transparent-active-border: color-basic-100,
|
||||
color-control-transparent-disabled-border: color-basic-transparent-300,
|
||||
|
||||
background-basic-color-1: color-basic-1000,
|
||||
background-basic-color-2: color-basic-1000,
|
||||
background-basic-color-3: color-basic-900,
|
||||
background-basic-color-4: color-basic-1100,
|
||||
|
||||
background-alternative-color-1: color-basic-100,
|
||||
background-alternative-color-2: color-basic-200,
|
||||
background-alternative-color-3: color-basic-300,
|
||||
background-alternative-color-4: color-basic-400,
|
||||
|
||||
border-basic-color-1: color-basic-800,
|
||||
border-basic-color-2: color-basic-900,
|
||||
border-basic-color-3: color-basic-1000,
|
||||
border-basic-color-4: color-basic-1100,
|
||||
border-basic-color-5: color-basic-1100,
|
||||
|
||||
border-alternative-color-1: color-basic-100,
|
||||
border-alternative-color-2: color-basic-200,
|
||||
border-alternative-color-3: color-basic-300,
|
||||
border-alternative-color-4: color-basic-400,
|
||||
border-alternative-color-5: color-basic-500,
|
||||
|
||||
border-primary-color-1: color-primary-500,
|
||||
border-primary-color-2: color-primary-600,
|
||||
border-primary-color-3: color-primary-700,
|
||||
border-primary-color-4: color-primary-800,
|
||||
border-primary-color-5: color-primary-900,
|
||||
|
||||
border-success-color-1: color-success-500,
|
||||
border-success-color-2: color-success-600,
|
||||
border-success-color-3: color-success-700,
|
||||
border-success-color-4: color-success-800,
|
||||
border-success-color-5: color-success-900,
|
||||
|
||||
border-info-color-1: color-info-500,
|
||||
border-info-color-2: color-info-600,
|
||||
border-info-color-3: color-info-700,
|
||||
border-info-color-4: color-info-800,
|
||||
border-info-color-5: color-info-900,
|
||||
|
||||
border-warning-color-1: color-warning-500,
|
||||
border-warning-color-2: color-warning-600,
|
||||
border-warning-color-3: color-warning-700,
|
||||
border-warning-color-4: color-warning-800,
|
||||
border-warning-color-5: color-warning-900,
|
||||
|
||||
border-danger-color-1: color-danger-500,
|
||||
border-danger-color-2: color-danger-600,
|
||||
border-danger-color-3: color-danger-700,
|
||||
border-danger-color-4: color-danger-800,
|
||||
border-danger-color-5: color-danger-900,
|
||||
|
||||
text-basic-color: color-basic-100,
|
||||
text-alternate-color: color-basic-900,
|
||||
text-control-color: color-basic-100,
|
||||
text-disabled-color: color-basic-transparent-600,
|
||||
text-hint-color: color-basic-600,
|
||||
|
||||
text-primary-color: color-primary-default,
|
||||
text-primary-focus-color: color-primary-focus,
|
||||
text-primary-hover-color: color-primary-hover,
|
||||
text-primary-active-color: color-primary-active,
|
||||
text-primary-disabled-color: color-primary-400,
|
||||
|
||||
text-success-color: color-success-default,
|
||||
text-success-focus-color: color-success-focus,
|
||||
text-success-hover-color: color-success-hover,
|
||||
text-success-active-color: color-success-active,
|
||||
text-success-disabled-color: color-success-400,
|
||||
|
||||
text-info-color: color-info-default,
|
||||
text-info-focus-color: color-info-focus,
|
||||
text-info-hover-color: color-info-hover,
|
||||
text-info-active-color: color-info-active,
|
||||
text-info-disabled-color: color-info-400,
|
||||
|
||||
text-warning-color: color-warning-default,
|
||||
text-warning-focus-color: color-warning-focus,
|
||||
text-warning-hover-color: color-warning-hover,
|
||||
text-warning-active-color: color-warning-active,
|
||||
text-warning-disabled-color: color-warning-400,
|
||||
|
||||
text-danger-color: color-danger-default,
|
||||
text-danger-focus-color: color-danger-focus,
|
||||
text-danger-hover-color: color-danger-hover,
|
||||
text-danger-active-color: color-danger-active,
|
||||
text-danger-disabled-color: color-danger-400,
|
||||
|
||||
font-family-primary: unquote('Roboto, sans-serif'),
|
||||
|
||||
shadow: unquote(
|
||||
'0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12)'
|
||||
),
|
||||
card-shadow: shadow,
|
||||
header-shadow: unquote(
|
||||
'0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)'
|
||||
),
|
||||
|
||||
header-background-color: color-primary-default,
|
||||
footer-background-color: color-primary-default,
|
||||
header-text-color: text-basic-color,
|
||||
footer-text-color: text-basic-color,
|
||||
footer-text-highlight-color: footer-text-color,
|
||||
sidebar-background-color: background-basic-color-2,
|
||||
|
||||
material-regular-font-weight: 400,
|
||||
menu-text-font-weight: material-regular-font-weight,
|
||||
menu-text-color: rgba(255, 255, 255, 0.7),
|
||||
menu-item-hover-text-color: rgba(255, 255, 255, 0.7),
|
||||
menu-item-hover-background-color: rgba(255, 255, 255, 0.04),
|
||||
menu-item-active-background-color: rgba(0, 0, 0, 0.25),
|
||||
|
||||
menu-item-icon-color: rgba(255, 255, 255, 0.7),
|
||||
menu-item-icon-hover-color: rgba(255, 255, 255, 0.7),
|
||||
|
||||
menu-submenu-item-hover-background-color: rgba(255, 255, 255, 0.04),
|
||||
menu-submenu-item-active-hover-background-color: rgba(255, 255, 255, 0.1),
|
||||
menu-submenu-item-active-background-color: rgba(0, 0, 0, 0.25),
|
||||
|
||||
card-border-style: none,
|
||||
card-background-color: color-basic-800,
|
||||
card-divider-color: color-basic-700,
|
||||
|
||||
input-border-width: 0 0 1px 0,
|
||||
input-basic-border-color: rgba(255, 255, 255, 0.7),
|
||||
input-basic-focus-border-color: color-primary-focus,
|
||||
input-basic-disabled-border-color: input-basic-border-color,
|
||||
input-basic-hover-border-color: input-basic-border-color,
|
||||
input-basic-background-color: transparent,
|
||||
input-basic-focus-background-color: transparent,
|
||||
input-basic-disabled-background-color: transparent,
|
||||
input-basic-hover-background-color: transparent,
|
||||
input-rectangle-border-radius: 0,
|
||||
input-semi-round-border-radius: 0,
|
||||
input-round-border-radius: 0,
|
||||
input-primary-background-color: input-basic-background-color,
|
||||
input-primary-focus-background-color: input-basic-focus-background-color,
|
||||
input-primary-disabled-background-color: input-basic-disabled-background-color,
|
||||
input-primary-hover-background-color: input-basic-hover-background-color,
|
||||
input-info-background-color: input-basic-background-color,
|
||||
input-info-focus-background-color: input-basic-focus-background-color,
|
||||
input-info-disabled-background-color: input-basic-disabled-background-color,
|
||||
input-info-hover-background-color: input-basic-hover-background-color,
|
||||
input-success-background-color: input-basic-background-color,
|
||||
input-success-focus-background-color: input-basic-focus-background-color,
|
||||
input-success-disabled-background-color: input-basic-disabled-background-color,
|
||||
input-success-hover-background-color: input-basic-hover-background-color,
|
||||
input-warning-background-color: input-basic-background-color,
|
||||
input-warning-focus-background-color: input-basic-focus-background-color,
|
||||
input-warning-disabled-background-color: input-basic-disabled-background-color,
|
||||
input-warning-hover-background-color: input-basic-hover-background-color,
|
||||
input-danger-background-color: input-basic-background-color,
|
||||
input-danger-focus-background-color: input-basic-focus-background-color,
|
||||
input-danger-disabled-background-color: input-basic-disabled-background-color,
|
||||
input-danger-hover-background-color: input-basic-hover-background-color,
|
||||
input-control-background-color: input-basic-background-color,
|
||||
input-control-focus-background-color: input-basic-focus-background-color,
|
||||
input-control-disabled-background-color: input-basic-disabled-background-color,
|
||||
input-control-hover-background-color: input-basic-hover-background-color,
|
||||
|
||||
select-tiny-text-font-weight: material-regular-font-weight,
|
||||
select-small-text-font-weight: material-regular-font-weight,
|
||||
select-medium-text-font-weight: material-regular-font-weight,
|
||||
select-large-text-font-weight: material-regular-font-weight,
|
||||
select-giant-text-font-weight: material-regular-font-weight,
|
||||
select-rectangle-border-radius: 0,
|
||||
select-semi-round-border-radius: 0,
|
||||
select-round-border-radius: 0,
|
||||
select-outline-border-width: 0 0 1px 0,
|
||||
select-outline-basic-border-color: rgba(255, 255, 255, 0.7),
|
||||
select-outline-basic-focus-border-color: color-primary-focus,
|
||||
select-outline-basic-hover-border-color: select-outline-basic-border-color,
|
||||
select-outline-basic-disabled-border-color: select-outline-basic-border-color,
|
||||
select-outline-basic-background-color: transparent,
|
||||
select-outline-basic-focus-background-color: transparent,
|
||||
select-outline-basic-hover-background-color: transparent,
|
||||
select-outline-basic-disabled-background-color: transparent,
|
||||
select-outline-primary-background-color: select-outline-basic-background-color,
|
||||
select-outline-primary-focus-background-color: select-outline-basic-focus-background-color,
|
||||
select-outline-primary-hover-background-color: select-outline-basic-hover-background-color,
|
||||
select-outline-primary-disabled-background-color: select-outline-basic-disabled-background-color,
|
||||
select-outline-success-background-color: select-outline-basic-background-color,
|
||||
select-outline-success-focus-background-color: select-outline-basic-focus-background-color,
|
||||
select-outline-success-hover-background-color: select-outline-basic-hover-background-color,
|
||||
select-outline-success-disabled-background-color: select-outline-basic-disabled-background-color,
|
||||
select-outline-info-background-color: select-outline-basic-background-color,
|
||||
select-outline-info-focus-background-color: select-outline-basic-focus-background-color,
|
||||
select-outline-info-hover-background-color: select-outline-basic-hover-background-color,
|
||||
select-outline-info-disabled-background-color: select-outline-basic-disabled-background-color,
|
||||
select-outline-warning-background-color: select-outline-basic-background-color,
|
||||
select-outline-warning-focus-background-color: select-outline-basic-focus-background-color,
|
||||
select-outline-warning-hover-background-color: select-outline-basic-hover-background-color,
|
||||
select-outline-warning-disabled-background-color: select-outline-basic-disabled-background-color,
|
||||
select-outline-danger-background-color: select-outline-basic-background-color,
|
||||
select-outline-danger-focus-background-color: select-outline-basic-focus-background-color,
|
||||
select-outline-danger-hover-background-color: select-outline-basic-hover-background-color,
|
||||
select-outline-danger-disabled-background-color: select-outline-basic-disabled-background-color,
|
||||
select-outline-control-background-color: select-outline-basic-background-color,
|
||||
select-outline-control-focus-background-color: select-outline-basic-focus-background-color,
|
||||
select-outline-control-hover-background-color: select-outline-basic-hover-background-color,
|
||||
select-outline-control-disabled-background-color: select-outline-basic-disabled-background-color,
|
||||
option-list-shadow: shadow,
|
||||
option-list-border-style: none,
|
||||
option-list-adjacent-border-style: none,
|
||||
option-background-color: color-basic-700,
|
||||
option-hover-background-color: #4a4a4a,
|
||||
option-focus-background-color: option-hover-background-color,
|
||||
option-selected-background-color: #525252,
|
||||
option-selected-hover-background-color: option-selected-background-color,
|
||||
option-selected-focus-background-color: option-selected-background-color,
|
||||
option-selected-text-color: text-primary-color,
|
||||
option-selected-hover-text-color: text-primary-color,
|
||||
option-selected-focus-text-color: text-primary-color,
|
||||
option-tiny-text-font-weight: material-regular-font-weight,
|
||||
option-small-text-font-weight: material-regular-font-weight,
|
||||
option-medium-text-font-weight: material-regular-font-weight,
|
||||
option-large-text-font-weight: material-regular-font-weight,
|
||||
option-giant-text-font-weight: material-regular-font-weight
|
||||
);
|
||||
|
||||
$nb-themes: nb-register-theme($theme, material-dark, dark);
|
||||
492
src/app/@theme/styles/material/_material-light.scss
Normal file
492
src/app/@theme/styles/material/_material-light.scss
Normal file
|
|
@ -0,0 +1,492 @@
|
|||
/**
|
||||
* @license
|
||||
* Copyright Akveo. All Rights Reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*/
|
||||
|
||||
@import '~@nebular/theme/styles/core/functions';
|
||||
@import '~@nebular/theme/styles/core/mixins';
|
||||
|
||||
$theme: (
|
||||
color-primary-100: #e8cbfe,
|
||||
color-primary-200: #ce97fd,
|
||||
color-primary-300: #ae63f9,
|
||||
color-primary-400: #903df4,
|
||||
color-primary-500: #6200ee,
|
||||
color-primary-600: #4b00cc,
|
||||
color-primary-700: #3800ab,
|
||||
color-primary-800: #27008a,
|
||||
color-primary-900: #1b0072,
|
||||
|
||||
color-primary-transparent-100: rgba(98, 0, 238, 0.08),
|
||||
color-primary-transparent-200: rgba(98, 0, 238, 0.16),
|
||||
color-primary-transparent-300: rgba(98, 0, 238, 0.24),
|
||||
color-primary-transparent-400: rgba(98, 0, 238, 0.32),
|
||||
color-primary-transparent-500: rgba(98, 0, 238, 0.4),
|
||||
color-primary-transparent-600: rgba(98, 0, 238, 0.48),
|
||||
|
||||
color-success-100: #edfbd1,
|
||||
color-success-200: #d7f7a6,
|
||||
color-success-300: #b4e775,
|
||||
color-success-400: #8fcf50,
|
||||
color-success-500: #60af20,
|
||||
color-success-600: #499617,
|
||||
color-success-700: #357d10,
|
||||
color-success-800: #24650a,
|
||||
color-success-900: #175306,
|
||||
|
||||
color-success-transparent-100: rgba(96, 175, 32, 0.08),
|
||||
color-success-transparent-200: rgba(96, 175, 32, 0.16),
|
||||
color-success-transparent-300: rgba(96, 175, 32, 0.24),
|
||||
color-success-transparent-400: rgba(96, 175, 32, 0.32),
|
||||
color-success-transparent-500: rgba(96, 175, 32, 0.4),
|
||||
color-success-transparent-600: rgba(96, 175, 32, 0.48),
|
||||
|
||||
color-info-100: #ccf7fe,
|
||||
color-info-200: #99e9fd,
|
||||
color-info-300: #66d3f9,
|
||||
color-info-400: #40bbf4,
|
||||
color-info-500: #0495ee,
|
||||
color-info-600: #0273cc,
|
||||
color-info-700: #0256ab,
|
||||
color-info-800: #013d8a,
|
||||
color-info-900: #002b72,
|
||||
|
||||
color-info-transparent-100: rgba(4, 149, 238, 0.08),
|
||||
color-info-transparent-200: rgba(4, 149, 238, 0.16),
|
||||
color-info-transparent-300: rgba(4, 149, 238, 0.24),
|
||||
color-info-transparent-400: rgba(4, 149, 238, 0.32),
|
||||
color-info-transparent-500: rgba(4, 149, 238, 0.4),
|
||||
color-info-transparent-600: rgba(4, 149, 238, 0.48),
|
||||
|
||||
color-warning-100: #fff3cd,
|
||||
color-warning-200: #ffe49b,
|
||||
color-warning-300: #ffd169,
|
||||
color-warning-400: #ffbe43,
|
||||
color-warning-500: #ff9f05,
|
||||
color-warning-600: #db8003,
|
||||
color-warning-700: #b76302,
|
||||
color-warning-800: #934a01,
|
||||
color-warning-900: #7a3800,
|
||||
|
||||
color-warning-transparent-100: rgba(255, 159, 5, 0.08),
|
||||
color-warning-transparent-200: rgba(255, 159, 5, 0.16),
|
||||
color-warning-transparent-300: rgba(255, 159, 5, 0.24),
|
||||
color-warning-transparent-400: rgba(255, 159, 5, 0.32),
|
||||
color-warning-transparent-500: rgba(255, 159, 5, 0.4),
|
||||
color-warning-transparent-600: rgba(255, 159, 5, 0.48),
|
||||
|
||||
color-danger-100: #fbd2c8,
|
||||
color-danger-200: #f79e94,
|
||||
color-danger-300: #e75d5c,
|
||||
color-danger-400: #cf3341,
|
||||
color-danger-500: #b00020,
|
||||
color-danger-600: #970029,
|
||||
color-danger-700: #7e002e,
|
||||
color-danger-800: #66002f,
|
||||
color-danger-900: #54002f,
|
||||
|
||||
color-danger-transparent-100: rgba(176, 0, 32, 0.08),
|
||||
color-danger-transparent-200: rgba(176, 0, 32, 0.16),
|
||||
color-danger-transparent-300: rgba(176, 0, 32, 0.24),
|
||||
color-danger-transparent-400: rgba(176, 0, 32, 0.32),
|
||||
color-danger-transparent-500: rgba(176, 0, 32, 0.4),
|
||||
color-danger-transparent-600: rgba(176, 0, 32, 0.48),
|
||||
|
||||
color-basic-100: #ffffff,
|
||||
color-basic-200: #f5f5f5,
|
||||
color-basic-300: #ebebeb,
|
||||
color-basic-400: #e0e0e0,
|
||||
color-basic-500: #b3b3b3,
|
||||
color-basic-600: #838383,
|
||||
color-basic-700: #636363,
|
||||
color-basic-800: #424242,
|
||||
color-basic-900: #242424,
|
||||
color-basic-1000: #1b1b1b,
|
||||
color-basic-1100: #000000,
|
||||
|
||||
color-basic-transparent-100: rgba(131, 131, 131, 0.08),
|
||||
color-basic-transparent-200: rgba(131, 131, 131, 0.16),
|
||||
color-basic-transparent-300: rgba(131, 131, 131, 0.24),
|
||||
color-basic-transparent-400: rgba(131, 131, 131, 0.32),
|
||||
color-basic-transparent-500: rgba(131, 131, 131, 0.4),
|
||||
color-basic-transparent-600: rgba(131, 131, 131, 0.48),
|
||||
|
||||
color-basic-control-transparent-100: rgba(255, 255, 255, 0.08),
|
||||
color-basic-control-transparent-200: rgba(255, 255, 255, 0.16),
|
||||
color-basic-control-transparent-300: rgba(255, 255, 255, 0.24),
|
||||
color-basic-control-transparent-400: rgba(255, 255, 255, 0.32),
|
||||
color-basic-control-transparent-500: rgba(255, 255, 255, 0.4),
|
||||
color-basic-control-transparent-600: rgba(255, 255, 255, 0.48),
|
||||
|
||||
color-basic-focus: color-basic-400,
|
||||
color-basic-hover: color-basic-200,
|
||||
color-basic-default: color-basic-300,
|
||||
color-basic-active: color-basic-400,
|
||||
color-basic-disabled: color-basic-transparent-300,
|
||||
color-basic-focus-border: color-basic-500,
|
||||
color-basic-hover-border: color-basic-hover,
|
||||
color-basic-default-border: color-basic-default,
|
||||
color-basic-active-border: color-basic-active,
|
||||
color-basic-disabled-border: color-basic-disabled,
|
||||
|
||||
color-basic-transparent-focus: color-basic-transparent-300,
|
||||
color-basic-transparent-hover: color-basic-transparent-200,
|
||||
color-basic-transparent-default: color-basic-transparent-100,
|
||||
color-basic-transparent-active: color-basic-transparent-300,
|
||||
color-basic-transparent-disabled: color-basic-transparent-200,
|
||||
color-basic-transparent-focus-border: color-basic-500,
|
||||
color-basic-transparent-hover-border: color-basic-500,
|
||||
color-basic-transparent-default-border: color-basic-500,
|
||||
color-basic-transparent-active-border: color-basic-500,
|
||||
color-basic-transparent-disabled-border: color-basic-transparent-300,
|
||||
|
||||
color-primary-focus: color-primary-600,
|
||||
color-primary-hover: color-primary-400,
|
||||
color-primary-default: color-primary-500,
|
||||
color-primary-active: color-primary-600,
|
||||
color-primary-disabled: color-basic-transparent-300,
|
||||
color-primary-focus-border: color-primary-700,
|
||||
color-primary-hover-border: color-primary-hover,
|
||||
color-primary-default-border: color-primary-default,
|
||||
color-primary-active-border: color-primary-active,
|
||||
color-primary-disabled-border: color-primary-disabled,
|
||||
|
||||
color-primary-transparent-focus: color-primary-transparent-300,
|
||||
color-primary-transparent-hover: color-primary-transparent-200,
|
||||
color-primary-transparent-default: color-primary-transparent-100,
|
||||
color-primary-transparent-active: color-primary-transparent-300,
|
||||
color-primary-transparent-disabled: color-basic-transparent-200,
|
||||
color-primary-transparent-focus-border: color-primary-500,
|
||||
color-primary-transparent-hover-border: color-primary-500,
|
||||
color-primary-transparent-default-border: color-primary-500,
|
||||
color-primary-transparent-active-border: color-primary-500,
|
||||
color-primary-transparent-disabled-border: color-basic-transparent-300,
|
||||
|
||||
color-success-focus: color-success-600,
|
||||
color-success-hover: color-success-400,
|
||||
color-success-default: color-success-500,
|
||||
color-success-active: color-success-600,
|
||||
color-success-disabled: color-basic-transparent-300,
|
||||
color-success-focus-border: color-success-700,
|
||||
color-success-hover-border: color-success-hover,
|
||||
color-success-default-border: color-success-default,
|
||||
color-success-active-border: color-success-active,
|
||||
color-success-disabled-border: color-success-disabled,
|
||||
|
||||
color-success-transparent-focus: color-success-transparent-300,
|
||||
color-success-transparent-hover: color-success-transparent-200,
|
||||
color-success-transparent-default: color-success-transparent-100,
|
||||
color-success-transparent-active: color-success-transparent-300,
|
||||
color-success-transparent-disabled: color-basic-transparent-200,
|
||||
color-success-transparent-focus-border: color-success-500,
|
||||
color-success-transparent-hover-border: color-success-500,
|
||||
color-success-transparent-default-border: color-success-500,
|
||||
color-success-transparent-active-border: color-success-500,
|
||||
color-success-transparent-disabled-border: color-basic-transparent-300,
|
||||
|
||||
color-info-focus: color-info-600,
|
||||
color-info-hover: color-info-400,
|
||||
color-info-default: color-info-500,
|
||||
color-info-active: color-info-600,
|
||||
color-info-disabled: color-basic-transparent-300,
|
||||
color-info-focus-border: color-info-700,
|
||||
color-info-hover-border: color-info-hover,
|
||||
color-info-default-border: color-info-default,
|
||||
color-info-active-border: color-info-active,
|
||||
color-info-disabled-border: color-info-disabled,
|
||||
|
||||
color-info-transparent-focus: color-info-transparent-300,
|
||||
color-info-transparent-hover: color-info-transparent-200,
|
||||
color-info-transparent-default: color-info-transparent-100,
|
||||
color-info-transparent-active: color-info-transparent-300,
|
||||
color-info-transparent-disabled: color-basic-transparent-200,
|
||||
color-info-transparent-focus-border: color-info-500,
|
||||
color-info-transparent-hover-border: color-info-500,
|
||||
color-info-transparent-default-border: color-info-500,
|
||||
color-info-transparent-active-border: color-info-500,
|
||||
color-info-transparent-disabled-border: color-basic-transparent-300,
|
||||
|
||||
color-warning-focus: color-warning-600,
|
||||
color-warning-hover: color-warning-400,
|
||||
color-warning-default: color-warning-500,
|
||||
color-warning-active: color-warning-600,
|
||||
color-warning-disabled: color-basic-transparent-300,
|
||||
color-warning-focus-border: color-warning-700,
|
||||
color-warning-hover-border: color-warning-hover,
|
||||
color-warning-default-border: color-warning-default,
|
||||
color-warning-active-border: color-warning-active,
|
||||
color-warning-disabled-border: color-warning-disabled,
|
||||
|
||||
color-warning-transparent-focus: color-warning-transparent-300,
|
||||
color-warning-transparent-hover: color-warning-transparent-200,
|
||||
color-warning-transparent-default: color-warning-transparent-100,
|
||||
color-warning-transparent-active: color-warning-transparent-300,
|
||||
color-warning-transparent-disabled: color-basic-transparent-200,
|
||||
color-warning-transparent-focus-border: color-warning-500,
|
||||
color-warning-transparent-hover-border: color-warning-500,
|
||||
color-warning-transparent-default-border: color-warning-500,
|
||||
color-warning-transparent-active-border: color-warning-500,
|
||||
color-warning-transparent-disabled-border: color-basic-transparent-300,
|
||||
|
||||
color-danger-focus: color-danger-600,
|
||||
color-danger-hover: color-danger-400,
|
||||
color-danger-default: color-danger-500,
|
||||
color-danger-active: color-danger-600,
|
||||
color-danger-disabled: color-basic-transparent-300,
|
||||
color-danger-focus-border: color-danger-700,
|
||||
color-danger-hover-border: color-danger-hover,
|
||||
color-danger-default-border: color-danger-default,
|
||||
color-danger-active-border: color-danger-active,
|
||||
color-danger-disabled-border: color-danger-disabled,
|
||||
|
||||
color-danger-transparent-focus: color-danger-transparent-300,
|
||||
color-danger-transparent-hover: color-danger-transparent-200,
|
||||
color-danger-transparent-default: color-danger-transparent-100,
|
||||
color-danger-transparent-active: color-danger-transparent-300,
|
||||
color-danger-transparent-disabled: color-basic-transparent-200,
|
||||
color-danger-transparent-focus-border: color-danger-500,
|
||||
color-danger-transparent-hover-border: color-danger-500,
|
||||
color-danger-transparent-default-border: color-danger-500,
|
||||
color-danger-transparent-active-border: color-danger-500,
|
||||
color-danger-transparent-disabled-border: color-basic-transparent-300,
|
||||
|
||||
color-control-focus: color-basic-300,
|
||||
color-control-hover: color-basic-200,
|
||||
color-control-default: color-basic-100,
|
||||
color-control-active: color-basic-300,
|
||||
color-control-disabled: color-basic-transparent-300,
|
||||
color-control-focus-border: color-basic-500,
|
||||
color-control-hover-border: color-control-hover,
|
||||
color-control-default-border: color-control-default,
|
||||
color-control-active-border: color-control-active,
|
||||
color-control-disabled-border: color-control-disabled,
|
||||
|
||||
color-control-transparent-focus: color-basic-control-transparent-300,
|
||||
color-control-transparent-hover: color-basic-control-transparent-200,
|
||||
color-control-transparent-default: color-basic-control-transparent-100,
|
||||
color-control-transparent-active: color-basic-control-transparent-300,
|
||||
color-control-transparent-disabled: color-basic-transparent-200,
|
||||
color-control-transparent-focus-border: color-basic-100,
|
||||
color-control-transparent-hover-border: color-basic-100,
|
||||
color-control-transparent-default-border: color-basic-100,
|
||||
color-control-transparent-active-border: color-basic-100,
|
||||
color-control-transparent-disabled-border: color-basic-transparent-300,
|
||||
|
||||
background-basic-color-1: color-basic-100,
|
||||
background-basic-color-2: color-basic-300,
|
||||
background-basic-color-3: #fafafa,
|
||||
background-basic-color-4: color-basic-400,
|
||||
|
||||
background-alternative-color-1: color-basic-800,
|
||||
background-alternative-color-2: color-basic-900,
|
||||
background-alternative-color-3: color-basic-1000,
|
||||
background-alternative-color-4: color-basic-1100,
|
||||
|
||||
border-basic-color-1: color-basic-100,
|
||||
border-basic-color-2: color-basic-200,
|
||||
border-basic-color-3: color-basic-300,
|
||||
border-basic-color-4: color-basic-400,
|
||||
border-basic-color-5: color-basic-500,
|
||||
|
||||
border-alternative-color-1: color-basic-800,
|
||||
border-alternative-color-2: color-basic-900,
|
||||
border-alternative-color-3: color-basic-1000,
|
||||
border-alternative-color-4: color-basic-1100,
|
||||
border-alternative-color-5: color-basic-1100,
|
||||
|
||||
border-primary-color-1: color-primary-500,
|
||||
border-primary-color-2: color-primary-600,
|
||||
border-primary-color-3: color-primary-700,
|
||||
border-primary-color-4: color-primary-800,
|
||||
border-primary-color-5: color-primary-900,
|
||||
|
||||
border-success-color-1: color-success-500,
|
||||
border-success-color-2: color-success-600,
|
||||
border-success-color-3: color-success-700,
|
||||
border-success-color-4: color-success-800,
|
||||
border-success-color-5: color-success-900,
|
||||
|
||||
border-info-color-1: color-info-500,
|
||||
border-info-color-2: color-info-600,
|
||||
border-info-color-3: color-info-700,
|
||||
border-info-color-4: color-info-800,
|
||||
border-info-color-5: color-info-900,
|
||||
|
||||
border-warning-color-1: color-warning-500,
|
||||
border-warning-color-2: color-warning-600,
|
||||
border-warning-color-3: color-warning-700,
|
||||
border-warning-color-4: color-warning-800,
|
||||
border-warning-color-5: color-warning-900,
|
||||
|
||||
border-danger-color-1: color-danger-500,
|
||||
border-danger-color-2: color-danger-600,
|
||||
border-danger-color-3: color-danger-700,
|
||||
border-danger-color-4: color-danger-800,
|
||||
border-danger-color-5: color-danger-900,
|
||||
|
||||
text-basic-color: color-basic-800,
|
||||
text-alternate-color: color-basic-100,
|
||||
text-control-color: color-basic-100,
|
||||
text-disabled-color: color-basic-transparent-600,
|
||||
text-hint-color: color-basic-600,
|
||||
|
||||
text-primary-color: color-primary-default,
|
||||
text-primary-focus-color: color-primary-focus,
|
||||
text-primary-hover-color: color-primary-hover,
|
||||
text-primary-active-color: color-primary-active,
|
||||
text-primary-disabled-color: color-primary-400,
|
||||
|
||||
text-success-color: color-success-default,
|
||||
text-success-focus-color: color-success-focus,
|
||||
text-success-hover-color: color-success-hover,
|
||||
text-success-active-color: color-success-active,
|
||||
text-success-disabled-color: color-success-400,
|
||||
|
||||
text-info-color: color-info-default,
|
||||
text-info-focus-color: color-info-focus,
|
||||
text-info-hover-color: color-info-hover,
|
||||
text-info-active-color: color-info-active,
|
||||
text-info-disabled-color: color-info-400,
|
||||
|
||||
text-warning-color: color-warning-default,
|
||||
text-warning-focus-color: color-warning-focus,
|
||||
text-warning-hover-color: color-warning-hover,
|
||||
text-warning-active-color: color-warning-active,
|
||||
text-warning-disabled-color: color-warning-400,
|
||||
|
||||
text-danger-color: color-danger-default,
|
||||
text-danger-focus-color: color-danger-focus,
|
||||
text-danger-hover-color: color-danger-hover,
|
||||
text-danger-active-color: color-danger-active,
|
||||
text-danger-disabled-color: color-danger-400,
|
||||
|
||||
font-family-primary: unquote('Roboto, sans-serif'),
|
||||
|
||||
shadow: unquote('0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12)'),
|
||||
card-shadow: shadow,
|
||||
header-shadow: unquote(
|
||||
'0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px 0 rgba(0,0,0,.14), 0 1px 18px 0 rgba(0,0,0,.12)'
|
||||
),
|
||||
|
||||
header-background-color: color-primary-default,
|
||||
footer-background-color: color-primary-default,
|
||||
header-text-color: text-alternate-color,
|
||||
footer-text-color: text-alternate-color,
|
||||
footer-text-highlight-color: footer-text-color,
|
||||
sidebar-background-color: background-basic-color-2,
|
||||
|
||||
menu-text-font-weight: 400,
|
||||
menu-text-color: rgba(0, 0, 0, 0.87),
|
||||
menu-item-hover-text-color: rgba(0, 0, 0, 0.87),
|
||||
menu-item-hover-background-color: rgba(0, 0, 0, 0.04),
|
||||
menu-item-active-background-color: rgba(0, 0, 0, 0.08),
|
||||
|
||||
menu-item-icon-color: rgba(0, 0, 0, 0.87),
|
||||
menu-item-icon-hover-color: rgba(0, 0, 0, 0.87),
|
||||
|
||||
menu-submenu-item-hover-background-color: rgba(0, 0, 0, 0.04),
|
||||
menu-submenu-item-active-hover-background-color: rgba(0, 0, 0, 0.1),
|
||||
menu-submenu-item-active-background-color: rgba(0, 0, 0, 0.08),
|
||||
|
||||
card-border-style: none,
|
||||
card-divider-color: color-basic-200,
|
||||
|
||||
input-border-width: 0 0 1px 0,
|
||||
input-basic-border-color: rgba(0, 0, 0, 0.42),
|
||||
input-basic-focus-border-color: color-primary-focus,
|
||||
input-basic-disabled-border-color: rgba(0, 0, 0, 0.42),
|
||||
input-basic-hover-border-color: rgba(0, 0, 0, 0.42),
|
||||
input-basic-background-color: transparent,
|
||||
input-basic-focus-background-color: transparent,
|
||||
input-basic-disabled-background-color: transparent,
|
||||
input-basic-hover-background-color: transparent,
|
||||
input-rectangle-border-radius: 0,
|
||||
input-semi-round-border-radius: 0,
|
||||
input-round-border-radius: 0,
|
||||
input-primary-background-color: input-basic-background-color,
|
||||
input-primary-focus-background-color: input-basic-focus-background-color,
|
||||
input-primary-disabled-background-color: input-basic-disabled-background-color,
|
||||
input-primary-hover-background-color: input-basic-hover-background-color,
|
||||
input-info-background-color: input-basic-background-color,
|
||||
input-info-focus-background-color: input-basic-focus-background-color,
|
||||
input-info-disabled-background-color: input-basic-disabled-background-color,
|
||||
input-info-hover-background-color: input-basic-hover-background-color,
|
||||
input-success-background-color: input-basic-background-color,
|
||||
input-success-focus-background-color: input-basic-focus-background-color,
|
||||
input-success-disabled-background-color: input-basic-disabled-background-color,
|
||||
input-success-hover-background-color: input-basic-hover-background-color,
|
||||
input-warning-background-color: input-basic-background-color,
|
||||
input-warning-focus-background-color: input-basic-focus-background-color,
|
||||
input-warning-disabled-background-color: input-basic-disabled-background-color,
|
||||
input-warning-hover-background-color: input-basic-hover-background-color,
|
||||
input-danger-background-color: input-basic-background-color,
|
||||
input-danger-focus-background-color: input-basic-focus-background-color,
|
||||
input-danger-disabled-background-color: input-basic-disabled-background-color,
|
||||
input-danger-hover-background-color: input-basic-hover-background-color,
|
||||
input-control-background-color: input-basic-background-color,
|
||||
input-control-focus-background-color: input-basic-focus-background-color,
|
||||
input-control-disabled-background-color: input-basic-disabled-background-color,
|
||||
input-control-hover-background-color: input-basic-hover-background-color,
|
||||
|
||||
select-tiny-text-font-weight: material-regular-font-weight,
|
||||
select-small-text-font-weight: material-regular-font-weight,
|
||||
select-medium-text-font-weight: material-regular-font-weight,
|
||||
select-large-text-font-weight: material-regular-font-weight,
|
||||
select-giant-text-font-weight: material-regular-font-weight,
|
||||
select-rectangle-border-radius: 0,
|
||||
select-semi-round-border-radius: 0,
|
||||
select-round-border-radius: 0,
|
||||
select-outline-border-width: 0 0 1px 0,
|
||||
select-outline-basic-border-color: rgba(0, 0, 0, 0.42),
|
||||
select-outline-basic-focus-border-color: color-primary-focus,
|
||||
select-outline-basic-hover-border-color: select-outline-basic-border-color,
|
||||
select-outline-basic-disabled-border-color: select-outline-basic-border-color,
|
||||
select-outline-basic-background-color: transparent,
|
||||
select-outline-basic-focus-background-color: transparent,
|
||||
select-outline-basic-hover-background-color: transparent,
|
||||
select-outline-basic-disabled-background-color: transparent,
|
||||
select-outline-primary-background-color: select-outline-basic-background-color,
|
||||
select-outline-primary-focus-background-color: select-outline-basic-focus-background-color,
|
||||
select-outline-primary-hover-background-color: select-outline-basic-hover-background-color,
|
||||
select-outline-primary-disabled-background-color: select-outline-basic-disabled-background-color,
|
||||
select-outline-success-background-color: select-outline-basic-background-color,
|
||||
select-outline-success-focus-background-color: select-outline-basic-focus-background-color,
|
||||
select-outline-success-hover-background-color: select-outline-basic-hover-background-color,
|
||||
select-outline-success-disabled-background-color: select-outline-basic-disabled-background-color,
|
||||
select-outline-info-background-color: select-outline-basic-background-color,
|
||||
select-outline-info-focus-background-color: select-outline-basic-focus-background-color,
|
||||
select-outline-info-hover-background-color: select-outline-basic-hover-background-color,
|
||||
select-outline-info-disabled-background-color: select-outline-basic-disabled-background-color,
|
||||
select-outline-warning-background-color: select-outline-basic-background-color,
|
||||
select-outline-warning-focus-background-color: select-outline-basic-focus-background-color,
|
||||
select-outline-warning-hover-background-color: select-outline-basic-hover-background-color,
|
||||
select-outline-warning-disabled-background-color: select-outline-basic-disabled-background-color,
|
||||
select-outline-danger-background-color: select-outline-basic-background-color,
|
||||
select-outline-danger-focus-background-color: select-outline-basic-focus-background-color,
|
||||
select-outline-danger-hover-background-color: select-outline-basic-hover-background-color,
|
||||
select-outline-danger-disabled-background-color: select-outline-basic-disabled-background-color,
|
||||
select-outline-control-background-color: select-outline-basic-background-color,
|
||||
select-outline-control-focus-background-color: select-outline-basic-focus-background-color,
|
||||
select-outline-control-hover-background-color: select-outline-basic-hover-background-color,
|
||||
select-outline-control-disabled-background-color: select-outline-basic-disabled-background-color,
|
||||
option-list-shadow: shadow,
|
||||
option-list-border-style: none,
|
||||
option-list-adjacent-border-style: none,
|
||||
option-background-color: color-basic-100,
|
||||
option-hover-background-color: color-basic-200,
|
||||
option-focus-background-color: option-hover-background-color,
|
||||
option-selected-background-color: color-basic-300,
|
||||
option-selected-hover-background-color: option-selected-background-color,
|
||||
option-selected-focus-background-color: option-selected-background-color,
|
||||
option-selected-text-color: text-primary-color,
|
||||
option-selected-hover-text-color: text-primary-color,
|
||||
option-selected-focus-text-color: text-primary-color,
|
||||
option-tiny-text-font-weight: material-regular-font-weight,
|
||||
option-small-text-font-weight: material-regular-font-weight,
|
||||
option-medium-text-font-weight: material-regular-font-weight,
|
||||
option-large-text-font-weight: material-regular-font-weight,
|
||||
option-giant-text-font-weight: material-regular-font-weight
|
||||
);
|
||||
|
||||
$nb-themes: nb-register-theme($theme, material-light, default);
|
||||
44
src/app/@theme/styles/material/_material-overrides.scss
Normal file
44
src/app/@theme/styles/material/_material-overrides.scss
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
@mixin material-overrides() {
|
||||
@include nb-for-themes(material-dark, material-light) {
|
||||
nb-layout-header {
|
||||
nb-actions, .logo-container {
|
||||
nb-icon, .user-name {
|
||||
color: nb-theme(color-basic-100) !important;
|
||||
}
|
||||
}
|
||||
|
||||
.select-button {
|
||||
background-color: nb-theme(background-basic-color-3) !important;
|
||||
}
|
||||
}
|
||||
|
||||
nb-sidebar {
|
||||
transition: width 0.3s;
|
||||
|
||||
.main-container {
|
||||
transition: width 0.3s;
|
||||
}
|
||||
}
|
||||
|
||||
nb-card {
|
||||
border-bottom-left-radius: 0.125rem;
|
||||
border-bottom-right-radius: 0.125rem;
|
||||
|
||||
nb-card-header, .tabset {
|
||||
background-color: nb-theme(card-divider-color);
|
||||
}
|
||||
}
|
||||
|
||||
[nbinput] {
|
||||
font-weight: 400;
|
||||
|
||||
&.status-basic:focus:hover {
|
||||
border-color: nb-theme(color-primary-focus) !important;
|
||||
}
|
||||
}
|
||||
|
||||
[nbbutton] {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
361
src/app/@theme/styles/material/theme.material-dark.ts
Normal file
361
src/app/@theme/styles/material/theme.material-dark.ts
Normal file
|
|
@ -0,0 +1,361 @@
|
|||
import { NbJSThemeOptions } from '@nebular/theme';
|
||||
|
||||
const palette = {
|
||||
primary: '#e91d63',
|
||||
success: '#60af20',
|
||||
info: '#0495ee',
|
||||
warning: '#ff9f05',
|
||||
danger: '#b00020',
|
||||
};
|
||||
|
||||
export const baseTheme: NbJSThemeOptions = {
|
||||
name: 'material-dark',
|
||||
base: 'dark',
|
||||
variables: {
|
||||
fontMain: 'Roboto, sans-serif',
|
||||
fontSecondary: 'Roboto, sans-serif',
|
||||
|
||||
bg: '#383838',
|
||||
bg2: '#292929',
|
||||
bg3: '#1f1f1f',
|
||||
bg4: '#141414',
|
||||
|
||||
border: '#383838',
|
||||
border2: '#292929',
|
||||
border3: '#1f1f1f',
|
||||
border4: '#141414',
|
||||
border5: '#141414',
|
||||
|
||||
fg: '#808080',
|
||||
fgHeading: '#ffffff',
|
||||
fgText: '#ffffff',
|
||||
fgHighlight: palette.primary,
|
||||
layoutBg: '#1f1f1f',
|
||||
separator: '#1f1f1f',
|
||||
|
||||
primary: palette.primary,
|
||||
success: palette.success,
|
||||
info: palette.info,
|
||||
warning: palette.warning,
|
||||
danger: palette.danger,
|
||||
|
||||
primaryLight: '#f24681',
|
||||
successLight: '#8fcf50',
|
||||
infoLight: '#40bbf4',
|
||||
warningLight: '#ffbe43',
|
||||
dangerLight: '#cf3341',
|
||||
},
|
||||
};
|
||||
|
||||
const baseThemeVariables = baseTheme.variables;
|
||||
|
||||
export const MATERIAL_DARK_THEME = {
|
||||
name: 'material-dark',
|
||||
base: 'default',
|
||||
variables: {
|
||||
temperature: {
|
||||
arcFill: [
|
||||
baseThemeVariables.primary,
|
||||
baseThemeVariables.primary,
|
||||
baseThemeVariables.primary,
|
||||
baseThemeVariables.primary,
|
||||
baseThemeVariables.primary,
|
||||
],
|
||||
arcEmpty: baseThemeVariables.bg2,
|
||||
thumbBg: baseThemeVariables.bg2,
|
||||
thumbBorder: baseThemeVariables.primary,
|
||||
},
|
||||
|
||||
solar: {
|
||||
gradientLeft: baseThemeVariables.primary,
|
||||
gradientRight: baseThemeVariables.primary,
|
||||
shadowColor: 'rgba(0, 0, 0, 0)',
|
||||
secondSeriesFill: baseThemeVariables.bg2,
|
||||
radius: ['80%', '90%'],
|
||||
},
|
||||
|
||||
traffic: {
|
||||
tooltipBg: baseThemeVariables.bg,
|
||||
tooltipBorderColor: baseThemeVariables.border2,
|
||||
tooltipExtraCss: 'border-radius: 10px; padding: 4px 16px;',
|
||||
tooltipTextColor: baseThemeVariables.fgText,
|
||||
tooltipFontWeight: 'normal',
|
||||
|
||||
yAxisSplitLine: baseThemeVariables.separator,
|
||||
|
||||
lineBg: baseThemeVariables.border4,
|
||||
lineShadowBlur: '1',
|
||||
itemColor: baseThemeVariables.border4,
|
||||
itemBorderColor: baseThemeVariables.border4,
|
||||
itemEmphasisBorderColor: baseThemeVariables.primary,
|
||||
shadowLineDarkBg: 'rgba(0, 0, 0, 0)',
|
||||
shadowLineShadow: 'rgba(0, 0, 0, 0)',
|
||||
gradFrom: baseThemeVariables.bg2,
|
||||
gradTo: baseThemeVariables.bg2,
|
||||
},
|
||||
|
||||
electricity: {
|
||||
tooltipBg: baseThemeVariables.bg,
|
||||
tooltipLineColor: baseThemeVariables.fgText,
|
||||
tooltipLineWidth: '0',
|
||||
tooltipBorderColor: baseThemeVariables.border2,
|
||||
tooltipExtraCss: 'border-radius: 10px; padding: 8px 24px;',
|
||||
tooltipTextColor: baseThemeVariables.fgText,
|
||||
tooltipFontWeight: 'normal',
|
||||
|
||||
axisLineColor: baseThemeVariables.border3,
|
||||
xAxisTextColor: baseThemeVariables.fg,
|
||||
yAxisSplitLine: baseThemeVariables.separator,
|
||||
|
||||
itemBorderColor: baseThemeVariables.primary,
|
||||
lineStyle: 'solid',
|
||||
lineWidth: '4',
|
||||
lineGradFrom: baseThemeVariables.primary,
|
||||
lineGradTo: baseThemeVariables.primary,
|
||||
lineShadow: 'rgba(0, 0, 0, 0)',
|
||||
|
||||
areaGradFrom: baseThemeVariables.bg2,
|
||||
areaGradTo: baseThemeVariables.bg2,
|
||||
shadowLineDarkBg: 'rgba(0, 0, 0, 0)',
|
||||
},
|
||||
|
||||
bubbleMap: {
|
||||
titleColor: baseThemeVariables.fgText,
|
||||
areaColor: baseThemeVariables.bg4,
|
||||
areaHoverColor: baseThemeVariables.fgHighlight,
|
||||
areaBorderColor: baseThemeVariables.border5,
|
||||
},
|
||||
|
||||
profitBarAnimationEchart: {
|
||||
textColor: baseThemeVariables.fgText,
|
||||
|
||||
firstAnimationBarColor: baseThemeVariables.primary,
|
||||
secondAnimationBarColor: baseThemeVariables.success,
|
||||
|
||||
splitLineStyleOpacity: '1',
|
||||
splitLineStyleWidth: '1',
|
||||
splitLineStyleColor: baseThemeVariables.separator,
|
||||
|
||||
tooltipTextColor: baseThemeVariables.fgText,
|
||||
tooltipFontWeight: 'normal',
|
||||
tooltipFontSize: '16',
|
||||
tooltipBg: baseThemeVariables.bg,
|
||||
tooltipBorderColor: baseThemeVariables.border2,
|
||||
tooltipBorderWidth: '1',
|
||||
tooltipExtraCss: 'border-radius: 10px; padding: 4px 16px;',
|
||||
},
|
||||
|
||||
trafficBarEchart: {
|
||||
gradientFrom: baseThemeVariables.warningLight,
|
||||
gradientTo: baseThemeVariables.warning,
|
||||
shadow: baseThemeVariables.warningLight,
|
||||
shadowBlur: '0',
|
||||
|
||||
axisTextColor: baseThemeVariables.fgText,
|
||||
axisFontSize: '12',
|
||||
|
||||
tooltipBg: baseThemeVariables.bg,
|
||||
tooltipBorderColor: baseThemeVariables.border2,
|
||||
tooltipExtraCss: 'border-radius: 10px; padding: 4px 16px;',
|
||||
tooltipTextColor: baseThemeVariables.fgText,
|
||||
tooltipFontWeight: 'normal',
|
||||
},
|
||||
|
||||
countryOrders: {
|
||||
countryBorderColor: baseThemeVariables.border4,
|
||||
countryFillColor: baseThemeVariables.bg3,
|
||||
countryBorderWidth: '1',
|
||||
hoveredCountryBorderColor: baseThemeVariables.primary,
|
||||
hoveredCountryFillColor: baseThemeVariables.primaryLight,
|
||||
hoveredCountryBorderWidth: '1',
|
||||
|
||||
chartAxisLineColor: baseThemeVariables.border4,
|
||||
chartAxisTextColor: baseThemeVariables.fg,
|
||||
chartAxisFontSize: '16',
|
||||
chartGradientTo: baseThemeVariables.primary,
|
||||
chartGradientFrom: baseThemeVariables.primaryLight,
|
||||
chartAxisSplitLine: baseThemeVariables.separator,
|
||||
chartShadowLineColor: baseThemeVariables.primaryLight,
|
||||
|
||||
chartLineBottomShadowColor: baseThemeVariables.primary,
|
||||
|
||||
chartInnerLineColor: baseThemeVariables.bg2,
|
||||
},
|
||||
|
||||
echarts: {
|
||||
bg: baseThemeVariables.bg,
|
||||
textColor: baseThemeVariables.fgText,
|
||||
axisLineColor: baseThemeVariables.fgText,
|
||||
splitLineColor: baseThemeVariables.separator,
|
||||
itemHoverShadowColor: 'rgba(0, 0, 0, 0.5)',
|
||||
tooltipBackgroundColor: baseThemeVariables.primary,
|
||||
areaOpacity: '0.7',
|
||||
},
|
||||
|
||||
chartjs: {
|
||||
axisLineColor: baseThemeVariables.separator,
|
||||
textColor: baseThemeVariables.fgText,
|
||||
},
|
||||
|
||||
orders: {
|
||||
tooltipBg: baseThemeVariables.bg,
|
||||
tooltipLineColor: 'rgba(0, 0, 0, 0)',
|
||||
tooltipLineWidth: '0',
|
||||
tooltipBorderColor: baseThemeVariables.border2,
|
||||
tooltipExtraCss: 'border-radius: 10px; padding: 8px 24px;',
|
||||
tooltipTextColor: baseThemeVariables.fgText,
|
||||
tooltipFontWeight: 'normal',
|
||||
tooltipFontSize: '20',
|
||||
|
||||
axisLineColor: baseThemeVariables.border4,
|
||||
axisFontSize: '16',
|
||||
axisTextColor: baseThemeVariables.fg,
|
||||
yAxisSplitLine: baseThemeVariables.separator,
|
||||
|
||||
itemBorderColor: baseThemeVariables.primary,
|
||||
lineStyle: 'solid',
|
||||
lineWidth: '4',
|
||||
|
||||
// first line
|
||||
firstAreaGradFrom: baseThemeVariables.bg3,
|
||||
firstAreaGradTo: baseThemeVariables.bg3,
|
||||
firstShadowLineDarkBg: 'rgba(0, 0, 0, 0)',
|
||||
|
||||
// second line
|
||||
secondLineGradFrom: baseThemeVariables.primary,
|
||||
secondLineGradTo: baseThemeVariables.primary,
|
||||
|
||||
secondAreaGradFrom: 'rgba(51, 102, 255, 0.2)',
|
||||
secondAreaGradTo: 'rgba(51, 102, 255, 0)',
|
||||
secondShadowLineDarkBg: 'rgba(0, 0, 0, 0)',
|
||||
|
||||
// third line
|
||||
thirdLineGradFrom: baseThemeVariables.success,
|
||||
thirdLineGradTo: baseThemeVariables.successLight,
|
||||
|
||||
thirdAreaGradFrom: 'rgba(0, 214, 143, 0.2)',
|
||||
thirdAreaGradTo: 'rgba(0, 214, 143, 0)',
|
||||
thirdShadowLineDarkBg: 'rgba(0, 0, 0, 0)',
|
||||
},
|
||||
|
||||
profit: {
|
||||
bg: baseThemeVariables.bg,
|
||||
textColor: baseThemeVariables.fgText,
|
||||
axisLineColor: baseThemeVariables.border4,
|
||||
splitLineColor: baseThemeVariables.separator,
|
||||
areaOpacity: '1',
|
||||
|
||||
axisFontSize: '16',
|
||||
axisTextColor: baseThemeVariables.fg,
|
||||
|
||||
// first bar
|
||||
firstLineGradFrom: baseThemeVariables.bg3,
|
||||
firstLineGradTo: baseThemeVariables.bg3,
|
||||
firstLineShadow: 'rgba(0, 0, 0, 0)',
|
||||
|
||||
// second bar
|
||||
secondLineGradFrom: baseThemeVariables.primary,
|
||||
secondLineGradTo: baseThemeVariables.primary,
|
||||
secondLineShadow: 'rgba(0, 0, 0, 0)',
|
||||
|
||||
// third bar
|
||||
thirdLineGradFrom: baseThemeVariables.success,
|
||||
thirdLineGradTo: baseThemeVariables.successLight,
|
||||
thirdLineShadow: 'rgba(0, 0, 0, 0)',
|
||||
},
|
||||
|
||||
orderProfitLegend: {
|
||||
firstItem: baseThemeVariables.success,
|
||||
secondItem: baseThemeVariables.primary,
|
||||
thirdItem: baseThemeVariables.bg3,
|
||||
},
|
||||
|
||||
visitors: {
|
||||
tooltipBg: baseThemeVariables.bg,
|
||||
tooltipLineColor: 'rgba(0, 0, 0, 0)',
|
||||
tooltipLineWidth: '1',
|
||||
tooltipBorderColor: baseThemeVariables.border2,
|
||||
tooltipExtraCss: 'border-radius: 10px; padding: 8px 24px;',
|
||||
tooltipTextColor: baseThemeVariables.fgText,
|
||||
tooltipFontWeight: 'normal',
|
||||
tooltipFontSize: '20',
|
||||
|
||||
axisLineColor: baseThemeVariables.border4,
|
||||
axisFontSize: '16',
|
||||
axisTextColor: baseThemeVariables.fg,
|
||||
yAxisSplitLine: baseThemeVariables.separator,
|
||||
|
||||
itemBorderColor: baseThemeVariables.primary,
|
||||
lineStyle: 'dotted',
|
||||
lineWidth: '6',
|
||||
lineGradFrom: '#ffffff',
|
||||
lineGradTo: '#ffffff',
|
||||
lineShadow: 'rgba(0, 0, 0, 0)',
|
||||
|
||||
areaGradFrom: baseThemeVariables.primary,
|
||||
areaGradTo: baseThemeVariables.primaryLight,
|
||||
|
||||
innerLineStyle: 'solid',
|
||||
innerLineWidth: '1',
|
||||
|
||||
innerAreaGradFrom: baseThemeVariables.success,
|
||||
innerAreaGradTo: baseThemeVariables.success,
|
||||
},
|
||||
|
||||
visitorsLegend: {
|
||||
firstIcon: baseThemeVariables.success,
|
||||
secondIcon: baseThemeVariables.primary,
|
||||
},
|
||||
|
||||
visitorsPie: {
|
||||
firstPieGradientLeft: baseThemeVariables.success,
|
||||
firstPieGradientRight: baseThemeVariables.success,
|
||||
firstPieShadowColor: 'rgba(0, 0, 0, 0)',
|
||||
firstPieRadius: ['70%', '90%'],
|
||||
|
||||
secondPieGradientLeft: baseThemeVariables.warning,
|
||||
secondPieGradientRight: baseThemeVariables.warningLight,
|
||||
secondPieShadowColor: 'rgba(0, 0, 0, 0)',
|
||||
secondPieRadius: ['60%', '97%'],
|
||||
shadowOffsetX: '0',
|
||||
shadowOffsetY: '0',
|
||||
},
|
||||
|
||||
visitorsPieLegend: {
|
||||
firstSection: baseThemeVariables.warning,
|
||||
secondSection: baseThemeVariables.success,
|
||||
},
|
||||
|
||||
earningPie: {
|
||||
radius: ['65%', '100%'],
|
||||
center: ['50%', '50%'],
|
||||
|
||||
fontSize: '22',
|
||||
|
||||
firstPieGradientLeft: baseThemeVariables.success,
|
||||
firstPieGradientRight: baseThemeVariables.success,
|
||||
firstPieShadowColor: 'rgba(0, 0, 0, 0)',
|
||||
|
||||
secondPieGradientLeft: baseThemeVariables.primary,
|
||||
secondPieGradientRight: baseThemeVariables.primary,
|
||||
secondPieShadowColor: 'rgba(0, 0, 0, 0)',
|
||||
|
||||
thirdPieGradientLeft: baseThemeVariables.warning,
|
||||
thirdPieGradientRight: baseThemeVariables.warning,
|
||||
thirdPieShadowColor: 'rgba(0, 0, 0, 0)',
|
||||
},
|
||||
|
||||
earningLine: {
|
||||
gradFrom: baseThemeVariables.primary,
|
||||
gradTo: baseThemeVariables.primary,
|
||||
|
||||
tooltipTextColor: baseThemeVariables.fgText,
|
||||
tooltipFontWeight: 'normal',
|
||||
tooltipFontSize: '16',
|
||||
tooltipBg: baseThemeVariables.bg,
|
||||
tooltipBorderColor: baseThemeVariables.border2,
|
||||
tooltipBorderWidth: '1',
|
||||
tooltipExtraCss: 'border-radius: 10px; padding: 4px 16px;',
|
||||
},
|
||||
},
|
||||
} as NbJSThemeOptions;
|
||||
361
src/app/@theme/styles/material/theme.material-light.ts
Normal file
361
src/app/@theme/styles/material/theme.material-light.ts
Normal file
|
|
@ -0,0 +1,361 @@
|
|||
import { NbJSThemeOptions } from '@nebular/theme';
|
||||
|
||||
const palette = {
|
||||
primary: '#6200ee',
|
||||
success: '#60af20',
|
||||
info: '#0495ee',
|
||||
warning: '#ff9f05',
|
||||
danger: '#b00020',
|
||||
};
|
||||
|
||||
export const baseTheme: NbJSThemeOptions = {
|
||||
name: 'material-light',
|
||||
base: 'default',
|
||||
variables: {
|
||||
fontMain: 'Roboto, sans-serif',
|
||||
fontSecondary: 'Roboto, sans-serif',
|
||||
|
||||
bg: '#ffffff',
|
||||
bg2: '#f5f5f5',
|
||||
bg3: '#ebebeb',
|
||||
bg4: '#e0e0e0',
|
||||
|
||||
border: '#ffffff',
|
||||
border2: '#f5f5f5',
|
||||
border3: '#ebebeb',
|
||||
border4: '#e0e0e0',
|
||||
border5: '#b3b3b3',
|
||||
|
||||
fg: '#838383',
|
||||
fgHeading: '#1a2138',
|
||||
fgText: '#1a2138',
|
||||
fgHighlight: palette.primary,
|
||||
layoutBg: '#ebebeb',
|
||||
separator: '#ebebeb',
|
||||
|
||||
primary: palette.primary,
|
||||
success: palette.success,
|
||||
info: palette.info,
|
||||
warning: palette.warning,
|
||||
danger: palette.danger,
|
||||
|
||||
primaryLight: '#903df4',
|
||||
successLight: '#8fcf50',
|
||||
infoLight: '#40bbf4',
|
||||
warningLight: '#ffbe43',
|
||||
dangerLight: '#cf3341',
|
||||
},
|
||||
};
|
||||
|
||||
const baseThemeVariables = baseTheme.variables;
|
||||
|
||||
export const MATERIAL_LIGHT_THEME = {
|
||||
name: 'material-light',
|
||||
base: 'default',
|
||||
variables: {
|
||||
temperature: {
|
||||
arcFill: [
|
||||
baseThemeVariables.primary,
|
||||
baseThemeVariables.primary,
|
||||
baseThemeVariables.primary,
|
||||
baseThemeVariables.primary,
|
||||
baseThemeVariables.primary,
|
||||
],
|
||||
arcEmpty: baseThemeVariables.bg2,
|
||||
thumbBg: baseThemeVariables.bg2,
|
||||
thumbBorder: baseThemeVariables.primary,
|
||||
},
|
||||
|
||||
solar: {
|
||||
gradientLeft: baseThemeVariables.primary,
|
||||
gradientRight: baseThemeVariables.primary,
|
||||
shadowColor: 'rgba(0, 0, 0, 0)',
|
||||
secondSeriesFill: baseThemeVariables.bg2,
|
||||
radius: ['80%', '90%'],
|
||||
},
|
||||
|
||||
traffic: {
|
||||
tooltipBg: baseThemeVariables.bg,
|
||||
tooltipBorderColor: baseThemeVariables.border2,
|
||||
tooltipExtraCss: 'border-radius: 10px; padding: 4px 16px;',
|
||||
tooltipTextColor: baseThemeVariables.fgText,
|
||||
tooltipFontWeight: 'normal',
|
||||
|
||||
yAxisSplitLine: baseThemeVariables.separator,
|
||||
|
||||
lineBg: baseThemeVariables.border4,
|
||||
lineShadowBlur: '1',
|
||||
itemColor: baseThemeVariables.border4,
|
||||
itemBorderColor: baseThemeVariables.border4,
|
||||
itemEmphasisBorderColor: baseThemeVariables.primary,
|
||||
shadowLineDarkBg: 'rgba(0, 0, 0, 0)',
|
||||
shadowLineShadow: 'rgba(0, 0, 0, 0)',
|
||||
gradFrom: baseThemeVariables.bg2,
|
||||
gradTo: baseThemeVariables.bg2,
|
||||
},
|
||||
|
||||
electricity: {
|
||||
tooltipBg: baseThemeVariables.bg,
|
||||
tooltipLineColor: baseThemeVariables.fgText,
|
||||
tooltipLineWidth: '0',
|
||||
tooltipBorderColor: baseThemeVariables.border2,
|
||||
tooltipExtraCss: 'border-radius: 10px; padding: 8px 24px;',
|
||||
tooltipTextColor: baseThemeVariables.fgText,
|
||||
tooltipFontWeight: 'normal',
|
||||
|
||||
axisLineColor: baseThemeVariables.border3,
|
||||
xAxisTextColor: baseThemeVariables.fg,
|
||||
yAxisSplitLine: baseThemeVariables.separator,
|
||||
|
||||
itemBorderColor: baseThemeVariables.primary,
|
||||
lineStyle: 'solid',
|
||||
lineWidth: '4',
|
||||
lineGradFrom: baseThemeVariables.primary,
|
||||
lineGradTo: baseThemeVariables.primary,
|
||||
lineShadow: 'rgba(0, 0, 0, 0)',
|
||||
|
||||
areaGradFrom: baseThemeVariables.bg2,
|
||||
areaGradTo: baseThemeVariables.bg2,
|
||||
shadowLineDarkBg: 'rgba(0, 0, 0, 0)',
|
||||
},
|
||||
|
||||
bubbleMap: {
|
||||
titleColor: baseThemeVariables.fgText,
|
||||
areaColor: baseThemeVariables.bg4,
|
||||
areaHoverColor: baseThemeVariables.fgHighlight,
|
||||
areaBorderColor: baseThemeVariables.border5,
|
||||
},
|
||||
|
||||
profitBarAnimationEchart: {
|
||||
textColor: baseThemeVariables.fgText,
|
||||
|
||||
firstAnimationBarColor: baseThemeVariables.primary,
|
||||
secondAnimationBarColor: baseThemeVariables.success,
|
||||
|
||||
splitLineStyleOpacity: '1',
|
||||
splitLineStyleWidth: '1',
|
||||
splitLineStyleColor: baseThemeVariables.separator,
|
||||
|
||||
tooltipTextColor: baseThemeVariables.fgText,
|
||||
tooltipFontWeight: 'normal',
|
||||
tooltipFontSize: '16',
|
||||
tooltipBg: baseThemeVariables.bg,
|
||||
tooltipBorderColor: baseThemeVariables.border2,
|
||||
tooltipBorderWidth: '1',
|
||||
tooltipExtraCss: 'border-radius: 10px; padding: 4px 16px;',
|
||||
},
|
||||
|
||||
trafficBarEchart: {
|
||||
gradientFrom: baseThemeVariables.warningLight,
|
||||
gradientTo: baseThemeVariables.warning,
|
||||
shadow: baseThemeVariables.warningLight,
|
||||
shadowBlur: '0',
|
||||
|
||||
axisTextColor: baseThemeVariables.fgText,
|
||||
axisFontSize: '12',
|
||||
|
||||
tooltipBg: baseThemeVariables.bg,
|
||||
tooltipBorderColor: baseThemeVariables.border2,
|
||||
tooltipExtraCss: 'border-radius: 10px; padding: 4px 16px;',
|
||||
tooltipTextColor: baseThemeVariables.fgText,
|
||||
tooltipFontWeight: 'normal',
|
||||
},
|
||||
|
||||
countryOrders: {
|
||||
countryBorderColor: baseThemeVariables.border4,
|
||||
countryFillColor: baseThemeVariables.bg3,
|
||||
countryBorderWidth: '1',
|
||||
hoveredCountryBorderColor: baseThemeVariables.primary,
|
||||
hoveredCountryFillColor: baseThemeVariables.primaryLight,
|
||||
hoveredCountryBorderWidth: '1',
|
||||
|
||||
chartAxisLineColor: baseThemeVariables.border4,
|
||||
chartAxisTextColor: baseThemeVariables.fg,
|
||||
chartAxisFontSize: '16',
|
||||
chartGradientTo: baseThemeVariables.primary,
|
||||
chartGradientFrom: baseThemeVariables.primaryLight,
|
||||
chartAxisSplitLine: baseThemeVariables.separator,
|
||||
chartShadowLineColor: baseThemeVariables.primaryLight,
|
||||
|
||||
chartLineBottomShadowColor: baseThemeVariables.primary,
|
||||
|
||||
chartInnerLineColor: baseThemeVariables.bg2,
|
||||
},
|
||||
|
||||
echarts: {
|
||||
bg: baseThemeVariables.bg,
|
||||
textColor: baseThemeVariables.fgText,
|
||||
axisLineColor: baseThemeVariables.fgText,
|
||||
splitLineColor: baseThemeVariables.separator,
|
||||
itemHoverShadowColor: 'rgba(0, 0, 0, 0.5)',
|
||||
tooltipBackgroundColor: baseThemeVariables.primary,
|
||||
areaOpacity: '0.7',
|
||||
},
|
||||
|
||||
chartjs: {
|
||||
axisLineColor: baseThemeVariables.separator,
|
||||
textColor: baseThemeVariables.fgText,
|
||||
},
|
||||
|
||||
orders: {
|
||||
tooltipBg: baseThemeVariables.bg,
|
||||
tooltipLineColor: 'rgba(0, 0, 0, 0)',
|
||||
tooltipLineWidth: '0',
|
||||
tooltipBorderColor: baseThemeVariables.border2,
|
||||
tooltipExtraCss: 'border-radius: 10px; padding: 8px 24px;',
|
||||
tooltipTextColor: baseThemeVariables.fgText,
|
||||
tooltipFontWeight: 'normal',
|
||||
tooltipFontSize: '20',
|
||||
|
||||
axisLineColor: baseThemeVariables.border4,
|
||||
axisFontSize: '16',
|
||||
axisTextColor: baseThemeVariables.fg,
|
||||
yAxisSplitLine: baseThemeVariables.separator,
|
||||
|
||||
itemBorderColor: baseThemeVariables.primary,
|
||||
lineStyle: 'solid',
|
||||
lineWidth: '4',
|
||||
|
||||
// first line
|
||||
firstAreaGradFrom: baseThemeVariables.bg3,
|
||||
firstAreaGradTo: baseThemeVariables.bg3,
|
||||
firstShadowLineDarkBg: 'rgba(0, 0, 0, 0)',
|
||||
|
||||
// second line
|
||||
secondLineGradFrom: baseThemeVariables.primary,
|
||||
secondLineGradTo: baseThemeVariables.primary,
|
||||
|
||||
secondAreaGradFrom: 'rgba(51, 102, 255, 0.2)',
|
||||
secondAreaGradTo: 'rgba(51, 102, 255, 0)',
|
||||
secondShadowLineDarkBg: 'rgba(0, 0, 0, 0)',
|
||||
|
||||
// third line
|
||||
thirdLineGradFrom: baseThemeVariables.success,
|
||||
thirdLineGradTo: baseThemeVariables.successLight,
|
||||
|
||||
thirdAreaGradFrom: 'rgba(0, 214, 143, 0.2)',
|
||||
thirdAreaGradTo: 'rgba(0, 214, 143, 0)',
|
||||
thirdShadowLineDarkBg: 'rgba(0, 0, 0, 0)',
|
||||
},
|
||||
|
||||
profit: {
|
||||
bg: baseThemeVariables.bg,
|
||||
textColor: baseThemeVariables.fgText,
|
||||
axisLineColor: baseThemeVariables.border4,
|
||||
splitLineColor: baseThemeVariables.separator,
|
||||
areaOpacity: '1',
|
||||
|
||||
axisFontSize: '16',
|
||||
axisTextColor: baseThemeVariables.fg,
|
||||
|
||||
// first bar
|
||||
firstLineGradFrom: baseThemeVariables.bg3,
|
||||
firstLineGradTo: baseThemeVariables.bg3,
|
||||
firstLineShadow: 'rgba(0, 0, 0, 0)',
|
||||
|
||||
// second bar
|
||||
secondLineGradFrom: baseThemeVariables.primary,
|
||||
secondLineGradTo: baseThemeVariables.primary,
|
||||
secondLineShadow: 'rgba(0, 0, 0, 0)',
|
||||
|
||||
// third bar
|
||||
thirdLineGradFrom: baseThemeVariables.success,
|
||||
thirdLineGradTo: baseThemeVariables.successLight,
|
||||
thirdLineShadow: 'rgba(0, 0, 0, 0)',
|
||||
},
|
||||
|
||||
orderProfitLegend: {
|
||||
firstItem: baseThemeVariables.success,
|
||||
secondItem: baseThemeVariables.primary,
|
||||
thirdItem: baseThemeVariables.bg3,
|
||||
},
|
||||
|
||||
visitors: {
|
||||
tooltipBg: baseThemeVariables.bg,
|
||||
tooltipLineColor: 'rgba(0, 0, 0, 0)',
|
||||
tooltipLineWidth: '1',
|
||||
tooltipBorderColor: baseThemeVariables.border2,
|
||||
tooltipExtraCss: 'border-radius: 10px; padding: 8px 24px;',
|
||||
tooltipTextColor: baseThemeVariables.fgText,
|
||||
tooltipFontWeight: 'normal',
|
||||
tooltipFontSize: '20',
|
||||
|
||||
axisLineColor: baseThemeVariables.border4,
|
||||
axisFontSize: '16',
|
||||
axisTextColor: baseThemeVariables.fg,
|
||||
yAxisSplitLine: baseThemeVariables.separator,
|
||||
|
||||
itemBorderColor: baseThemeVariables.primary,
|
||||
lineStyle: 'dotted',
|
||||
lineWidth: '6',
|
||||
lineGradFrom: '#ffffff',
|
||||
lineGradTo: '#ffffff',
|
||||
lineShadow: 'rgba(0, 0, 0, 0)',
|
||||
|
||||
areaGradFrom: baseThemeVariables.primary,
|
||||
areaGradTo: baseThemeVariables.primaryLight,
|
||||
|
||||
innerLineStyle: 'solid',
|
||||
innerLineWidth: '1',
|
||||
|
||||
innerAreaGradFrom: baseThemeVariables.success,
|
||||
innerAreaGradTo: baseThemeVariables.success,
|
||||
},
|
||||
|
||||
visitorsLegend: {
|
||||
firstIcon: baseThemeVariables.success,
|
||||
secondIcon: baseThemeVariables.primary,
|
||||
},
|
||||
|
||||
visitorsPie: {
|
||||
firstPieGradientLeft: baseThemeVariables.success,
|
||||
firstPieGradientRight: baseThemeVariables.success,
|
||||
firstPieShadowColor: 'rgba(0, 0, 0, 0)',
|
||||
firstPieRadius: ['70%', '90%'],
|
||||
|
||||
secondPieGradientLeft: baseThemeVariables.warning,
|
||||
secondPieGradientRight: baseThemeVariables.warningLight,
|
||||
secondPieShadowColor: 'rgba(0, 0, 0, 0)',
|
||||
secondPieRadius: ['60%', '97%'],
|
||||
shadowOffsetX: '0',
|
||||
shadowOffsetY: '0',
|
||||
},
|
||||
|
||||
visitorsPieLegend: {
|
||||
firstSection: baseThemeVariables.warning,
|
||||
secondSection: baseThemeVariables.success,
|
||||
},
|
||||
|
||||
earningPie: {
|
||||
radius: ['65%', '100%'],
|
||||
center: ['50%', '50%'],
|
||||
|
||||
fontSize: '22',
|
||||
|
||||
firstPieGradientLeft: baseThemeVariables.success,
|
||||
firstPieGradientRight: baseThemeVariables.success,
|
||||
firstPieShadowColor: 'rgba(0, 0, 0, 0)',
|
||||
|
||||
secondPieGradientLeft: baseThemeVariables.primary,
|
||||
secondPieGradientRight: baseThemeVariables.primary,
|
||||
secondPieShadowColor: 'rgba(0, 0, 0, 0)',
|
||||
|
||||
thirdPieGradientLeft: baseThemeVariables.warning,
|
||||
thirdPieGradientRight: baseThemeVariables.warning,
|
||||
thirdPieShadowColor: 'rgba(0, 0, 0, 0)',
|
||||
},
|
||||
|
||||
earningLine: {
|
||||
gradFrom: baseThemeVariables.primary,
|
||||
gradTo: baseThemeVariables.primary,
|
||||
|
||||
tooltipTextColor: baseThemeVariables.fgText,
|
||||
tooltipFontWeight: 'normal',
|
||||
tooltipFontSize: '16',
|
||||
tooltipBg: baseThemeVariables.bg,
|
||||
tooltipBorderColor: baseThemeVariables.border2,
|
||||
tooltipBorderWidth: '1',
|
||||
tooltipExtraCss: 'border-radius: 10px; padding: 4px 16px;',
|
||||
},
|
||||
},
|
||||
} as NbJSThemeOptions;
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
|
||||
@import url('https://fonts.googleapis.com/css?family=Roboto:200,300,400,500,600,700,800&display=swap');
|
||||
|
||||
// themes - our custom or/and out of the box themes
|
||||
@import 'themes';
|
||||
|
|
@ -12,11 +13,14 @@
|
|||
@import '~bootstrap/scss/mixins';
|
||||
@import '~bootstrap/scss/grid';
|
||||
|
||||
@import './material/angular-material';
|
||||
|
||||
// loading progress bar theme
|
||||
@import './pace.theme';
|
||||
|
||||
@import './layout';
|
||||
@import './overrides';
|
||||
@import './material/material-overrides';
|
||||
|
||||
// install the framework and custom global styles
|
||||
@include nb-install() {
|
||||
|
|
@ -29,5 +33,8 @@
|
|||
// loading progress bar
|
||||
@include ngx-pace-theme();
|
||||
|
||||
@include angular-material();
|
||||
|
||||
@include nb-overrides();
|
||||
@include material-overrides();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,6 +2,9 @@
|
|||
@import '~@nebular/theme/styles/theming';
|
||||
// @nebular out of the box themes
|
||||
@import '~@nebular/theme/styles/themes';
|
||||
// material themes
|
||||
@import './material/material-dark';
|
||||
@import './material/material-light';
|
||||
|
||||
$nb-themes: nb-register-theme((
|
||||
layout-padding-top: 2.25rem,
|
||||
|
|
@ -86,3 +89,45 @@ $nb-themes: nb-register-theme((
|
|||
slide-out-shadow-color: 0 4px 14px 0 #8f9bb3,
|
||||
slide-out-shadow-color-rtl: 0 4px 14px 0 #8f9bb3,
|
||||
), dark, dark);
|
||||
|
||||
$nb-themes: nb-register-theme((
|
||||
layout-padding-top: 2.25rem,
|
||||
|
||||
menu-item-icon-margin: 0 0.5rem 0 0,
|
||||
|
||||
card-height-tiny: 13.5rem,
|
||||
card-height-small: 21.1875rem,
|
||||
card-height-medium: 28.875rem,
|
||||
card-height-large: 36.5625rem,
|
||||
card-height-giant: 44.25rem,
|
||||
card-margin-bottom: 1.875rem,
|
||||
card-header-with-select-padding-top: 0.5rem,
|
||||
card-header-with-select-padding-bottom: 0.5rem,
|
||||
|
||||
select-min-width: 6rem,
|
||||
|
||||
slide-out-background: linear-gradient(270deg, #e0e0e0 0%, #ebebeb 100%),
|
||||
slide-out-shadow-color: 0 4px 14px 0 #ebebeb,
|
||||
slide-out-shadow-color-rtl: 0 4px 14px 0 #ebebeb,
|
||||
), material-light, material-light);
|
||||
|
||||
$nb-themes: nb-register-theme((
|
||||
layout-padding-top: 2.25rem,
|
||||
|
||||
menu-item-icon-margin: 0 0.5rem 0 0,
|
||||
|
||||
card-height-tiny: 13.5rem,
|
||||
card-height-small: 21.1875rem,
|
||||
card-height-medium: 28.875rem,
|
||||
card-height-large: 36.5625rem,
|
||||
card-height-giant: 44.25rem,
|
||||
card-margin-bottom: 1.875rem,
|
||||
card-header-with-select-padding-top: 0.5rem,
|
||||
card-header-with-select-padding-bottom: 0.5rem,
|
||||
|
||||
select-min-width: 6rem,
|
||||
|
||||
slide-out-background: linear-gradient(270deg, #1f1f1f 0%, #292929 100%),
|
||||
slide-out-shadow-color: 0 4px 14px 0 #292929,
|
||||
slide-out-shadow-color-rtl: 0 4px 14px 0 #292929,
|
||||
), material-dark, material-dark);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { ModuleWithProviders, NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MatRippleModule } from '@angular/material/core';
|
||||
import {
|
||||
NbActionsModule,
|
||||
NbLayoutModule,
|
||||
|
|
@ -45,6 +46,8 @@ import { DEFAULT_THEME } from './styles/theme.default';
|
|||
import { COSMIC_THEME } from './styles/theme.cosmic';
|
||||
import { CORPORATE_THEME } from './styles/theme.corporate';
|
||||
import { DARK_THEME } from './styles/theme.dark';
|
||||
import { MATERIAL_LIGHT_THEME } from './styles/material/theme.material-light';
|
||||
import { MATERIAL_DARK_THEME } from './styles/material/theme.material-dark';
|
||||
|
||||
const NB_MODULES = [
|
||||
NbLayoutModule,
|
||||
|
|
@ -85,20 +88,20 @@ const PIPES = [
|
|||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule, ...NB_MODULES],
|
||||
exports: [CommonModule, ...PIPES, ...COMPONENTS],
|
||||
imports: [CommonModule, MatRippleModule, ...NB_MODULES],
|
||||
exports: [CommonModule, MatRippleModule, ...PIPES, ...COMPONENTS],
|
||||
declarations: [...COMPONENTS, ...PIPES],
|
||||
})
|
||||
export class ThemeModule {
|
||||
static forRoot(): ModuleWithProviders {
|
||||
return <ModuleWithProviders>{
|
||||
static forRoot(): ModuleWithProviders<ThemeModule> {
|
||||
return {
|
||||
ngModule: ThemeModule,
|
||||
providers: [
|
||||
...NbThemeModule.forRoot(
|
||||
{
|
||||
name: 'default',
|
||||
},
|
||||
[ DEFAULT_THEME, COSMIC_THEME, CORPORATE_THEME, DARK_THEME ],
|
||||
[ DEFAULT_THEME, COSMIC_THEME, CORPORATE_THEME, DARK_THEME, MATERIAL_LIGHT_THEME, MATERIAL_DARK_THEME ],
|
||||
).providers,
|
||||
],
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue