44 lines
1.4 KiB
SCSS
44 lines
1.4 KiB
SCSS
// Include theming for Angular Material with `mat.theme()`.
|
|
// This Sass mixin will define CSS variables that are used for styling Angular Material
|
|
// components according to the Material 3 design spec.
|
|
// Learn more about theming and how to use it for your application's
|
|
// custom components at https://material.angular.dev/guide/theming
|
|
@use "@angular/material" as mat;
|
|
@use "theme-colors" as themeColors;
|
|
|
|
html {
|
|
height: 100%;
|
|
@include mat.theme(
|
|
(
|
|
color: (
|
|
primary: themeColors.$primary-palette,
|
|
tertiary: themeColors.$tertiary-palette,
|
|
),
|
|
typography: Inter,
|
|
density: 0,
|
|
)
|
|
);
|
|
}
|
|
|
|
@include mat.form-field-overrides((
|
|
filled-container-color: var(--mat-sys-surface-variant),
|
|
));
|
|
|
|
body {
|
|
// Default the application to a light color theme. This can be changed to
|
|
// `dark` to enable the dark color theme, or to `light dark` to defer to the
|
|
// user's system settings.
|
|
color-scheme: light;
|
|
|
|
// Set a default background, font and text colors for the application using
|
|
// Angular Material's system-level CSS variables. Learn more about these
|
|
// variables at https://material.angular.dev/guide/system-variables
|
|
background-color: var(--mat-sys-surface);
|
|
color: var(--mat-sys-on-surface);
|
|
font: var(--mat-sys-body-medium);
|
|
|
|
// Reset the user agent margin.
|
|
margin: 0;
|
|
height: 100%;
|
|
}
|