Skip to content

Commit

Permalink
feat: update theme
Browse files Browse the repository at this point in the history
  • Loading branch information
QuCMGisaia committed Aug 16, 2024
1 parent 51fc89a commit 5aeaa43
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 46 deletions.
4 changes: 2 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"src/settings.yaml"
],
"styles": [
"src/arlas-wui-theme.scss",
"src/theme.scss",
"src/styles.scss",
"node_modules/ngx-toastr/toastr.css"
],
Expand Down Expand Up @@ -131,7 +131,7 @@
"src/settings.yaml"
],
"styles": [
"src/arlas-wui-theme.scss",
"src/theme.scss",
"src/styles.scss",
"node_modules/ngx-toastr/toastr.css"
],
Expand Down
44 changes: 0 additions & 44 deletions src/arlas-wui-theme.scss

This file was deleted.

28 changes: 28 additions & 0 deletions src/theme.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@use '@angular/material' as mat;
// Plus imports for other components in your app.

// Include the common styles for Angular Material. We include this here so that you only
// have to load a single css file for Angular Material in your app.
// Be sure that you only ever include this mixin once!
@include mat.core();

// Define the palettes for your theme using the Material Design palettes available in palette.scss
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
// hue.
$app-primary: mat.define-palette(mat.$blue-palette, 500);
$app-accent: mat.define-palette(mat.$indigo-palette, A200, A100, A400);

// The warn palette is optional (defaults to red).
$app-warn: mat.define-palette(mat.$red-palette);

// Create the theme object (a Sass map containing all of the palettes).
$app-theme: mat.define-light-theme((
color: (
primary: $app-primary,
accent: $app-accent,
warn: $app-warn
),
density: 0
));

@include mat.all-component-themes($app-theme);

0 comments on commit 5aeaa43

Please sign in to comment.