diff --git a/src/app/main/documentation/working-with-fuse/material-theming/material-theming.component.html b/src/app/main/documentation/working-with-fuse/material-theming/material-theming.component.html new file mode 100644 index 00000000..1f1040e8 --- /dev/null +++ b/src/app/main/documentation/working-with-fuse/material-theming/material-theming.component.html @@ -0,0 +1,113 @@ +
+ + +
+ +
+ home + chevron_right + Documentation + chevron_right + Working with Fuse +
+ +
Material Theming
+ +
+ + + +
+ +

+ Fuse fully takes advantage of Angular + Material's theming. +

+ +

+ All Material theming related codes can be found in the src/app/app.theme.scss file. This file + is responsible for creating Material color themes as well as applying those themes to the individual + components. +

+ +

+ To simply explain, every component that comes with Fuse has a separate *.theme.scss file + which has everything theming related. These files are separate from the component's scss files simply + because they have theming mixins and they need to be imported in app.theme.scss. Having those + mixins in the component's scss file would have caused duplicate content when imported. +

+ +
Theming components
+ +

+ Below, you can see an example theme (calendar.theme.scss) file. When you create a component, or + move one from the Demo app, you need to import this scss file in the app.theme.scss file and add it + to the component-theme mixin array. +

+ +

+ + + +

+ +

+ calendar.theme.scss +

+ +

+ + + +

+ +

+ app.theme.scss +

+ +

+ The components-theme mixin will be called when you define a new theme so that the components + can be styles according to that theme. +

+ +

+ Too see more examples about multiple color themes you can see the src/app/app.theme.scss file + from the Demo project. +

+ +

+ To learn more about the contents of the $theme map, check out the Demo project. There are + plenty of examples in there and you can also print out the contents of the map using the @debug + function of the sass. +

+ +
+ + +
\ No newline at end of file diff --git a/src/app/main/documentation/working-with-fuse/material-theming/material-theming.component.scss b/src/app/main/documentation/working-with-fuse/material-theming/material-theming.component.scss new file mode 100644 index 00000000..ca2a0c07 --- /dev/null +++ b/src/app/main/documentation/working-with-fuse/material-theming/material-theming.component.scss @@ -0,0 +1,5 @@ +@import "src/@fuse/scss/fuse"; + +:host { + +} diff --git a/src/app/main/documentation/working-with-fuse/material-theming/material-theming.component.ts b/src/app/main/documentation/working-with-fuse/material-theming/material-theming.component.ts new file mode 100644 index 00000000..40732100 --- /dev/null +++ b/src/app/main/documentation/working-with-fuse/material-theming/material-theming.component.ts @@ -0,0 +1,13 @@ +import { Component } from '@angular/core'; + +@Component({ + selector : 'docs-working-with-fuse-material-theming', + templateUrl: './material-theming.component.html', + styleUrls : ['./material-theming.component.scss'] +}) +export class DocsWorkingWithFuseMaterialThemingComponent +{ + constructor() + { + } +} diff --git a/src/app/main/documentation/working-with-fuse/working-with-fuse.module.ts b/src/app/main/documentation/working-with-fuse/working-with-fuse.module.ts index 394a3563..2e477a48 100644 --- a/src/app/main/documentation/working-with-fuse/working-with-fuse.module.ts +++ b/src/app/main/documentation/working-with-fuse/working-with-fuse.module.ts @@ -10,6 +10,7 @@ import { DocsWorkingWithFuseProductionComponent } from 'app/main/documentation/w import { DocsWorkingWithFuseDirectoryStructureComponent } from 'app/main/documentation/working-with-fuse/directory-structure/directory-structure.component'; import { DocsWorkingWithFuseUpdatingFuseComponent } from 'app/main/documentation/working-with-fuse/updating-fuse/updating-fuse.component'; import { DocsWorkingWithFuseMultiLanguageComponent } from 'app/main/documentation/working-with-fuse/multi-language/multi-language.component'; +import { DocsWorkingWithFuseMaterialThemingComponent } from 'app/main/documentation/working-with-fuse/material-theming/material-theming.component'; import { DocsWorkingWithFuseThemeLayoutsComponent } from 'app/main/documentation/working-with-fuse/theme-layouts/theme-layouts.component'; import { DocsWorkingWithFusePageLayoutsComponent } from 'app/main/documentation/working-with-fuse/page-layouts/page-layouts.component'; @@ -34,6 +35,10 @@ const routes = [ path : 'multi-language', component: DocsWorkingWithFuseMultiLanguageComponent }, + { + path : 'material-theming', + component: DocsWorkingWithFuseMaterialThemingComponent + }, { path : 'theme-layouts', component: DocsWorkingWithFuseThemeLayoutsComponent @@ -50,6 +55,7 @@ const routes = [ DocsWorkingWithFuseProductionComponent, DocsWorkingWithFuseDirectoryStructureComponent, DocsWorkingWithFuseUpdatingFuseComponent, + DocsWorkingWithFuseMaterialThemingComponent, DocsWorkingWithFuseMultiLanguageComponent, DocsWorkingWithFuseThemeLayoutsComponent, DocsWorkingWithFusePageLayoutsComponent diff --git a/src/app/navigation/navigation.ts b/src/app/navigation/navigation.ts index a409e0a0..ff8f7c40 100644 --- a/src/app/navigation/navigation.ts +++ b/src/app/navigation/navigation.ts @@ -904,6 +904,12 @@ export const navigation: FuseNavigation[] = [ type : 'item', url : '/documentation/working-with-fuse/multi-language' }, + { + id : 'material-theming', + title: 'Material Theming', + type : 'item', + url : '/documentation/working-with-fuse/material-theming' + }, { id : 'theme-layouts', title: 'Theme Layouts',