/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*      http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

@use '@angular/material' as mat;

@import '../../theme.scss';

@include mat.all-component-typographies();
@include mat.core();

$traffic-portal-primary: mat.define-palette(mat.$blue-palette, 800);
$traffic-portal-accent: mat.define-palette(mat.$amber-palette, 700, 600, 800);
$traffic-portal-warn: mat.define-palette(mat.$orange-palette, 500);
$traffic-portal-success: mat.define-palette(mat.$teal-palette, 300);
$traffic-portal-error: mat.define-palette(mat.$deep-orange-palette, 600);
$traffic-portal-theme: mat.define-dark-theme((
	color: (
		primary: $traffic-portal-primary,
		accent: $traffic-portal-accent,
		warn: $traffic-portal-warn,
	),
));
$traffic-portal-theme: add-extra-colors($traffic-portal-theme, (
	success: $traffic-portal-success,
	error: $traffic-portal-error,
));
$traffic-portal-theme: set-ag-grid($traffic-portal-theme, (
	odd-row-background-color: map-get(mat.$gray-palette,900),
	row-border-color: map-get(mat.$gray-palette,800),
	border-color: map-get(mat.$gray-palette,800)
));

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