I am using Google's Material Design as a good UI design tool to help me create a web app for personal programming experience. I want to know how I can change the Top App Bar color with Sass. I can't figure out the documentation.
Here is the link to the documentation: https://material.io/develop/web/components/top-app-bar/
Basically, I want to change it to a hex color of anything. Here is my current code:
HTML
<!DOCTYPE html>
<html>
<head>
<title>Chat App</title>
<link rel="stylesheet" href="styles.scss" type="text/scss">
<link rel="stylesheet" href="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css">
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
<body>
<header class="mdc-top-app-bar mdc-top-app-bar--short blue-bar">
<div class="mdc-top-app-bar__row">
<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-start">
<a href="#" class="material-icons mdc-top-app-bar__navigation-icon">menu</a>
<span class="mdc-top-app-bar__title">Title</span>
</section>
<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-end" role="toolbar">
<a href="#" class="material-icons mdc-top-app-bar__action-item">settings</a>
<a href="#" class="material-icons mdc-top-app-bar__action-item">account_circle</a>
</section>
</div>
</header>
<p>
Nothing to see here.
</p>
</body>
</html>
SCSS FILE
$base-color: #AD141E;
.blue-bar { @include mdc-top-app-bar-fill-color($base-color); }
I named the class .blue-bar just cause I felt like blue. It doesn't have to be blue. I just want to know how to change the default purple color of the bar.
EDIT:
I just realized that you have to actually convert the scss file to css before you can use it. My new question is: Since I am using Google's Material Design CSS, how do I use Sass to edit that and change the color?