I understand how document.querySelector works in order to retrieve a css element within the .html file itself, but how do I retrieve things from my .css file?
Example of my .css file:
canvas {
background-color: DarkBlue;
}
And what I have in my .js file (which I know would only work for HTML, so I am wondering the equivalent for CSS, I do not want to style in the HTML file, I want to keep my seperate CSS file):
var canvas = document.querySelector('canvas');