I'm not going to claim I'm a designer. The most impressive thing I've ever designed is probably the logo for this site. Oh, you didn't know? That logo is my original work - inspired by my actual garage standing on my property here in the Arctic capital of Norway, Tromsø. And behold, now I'm going to tell you how I created that awesome peace of artwork - the logo!
Actually, the most awesome part about the logo isn't the artwork itself, but:
The secret sauce is called SVG. Any kind of SVG won't do, and that's what I'm writing about today.
You now have an SVG file that you can embed in your HTML the following way in e.g. Twig:
{% include('@images/grav-logo.svg') %}
Note, there is no img tag. Just embed the entire SVG-document inside your HTML-code. Now you can manipulate the SVG with CSS to change colors. The following CSS assumes that the logo is embedded in a header inside a link which presumably takes the user to the home page of the site - and makes the logo 42 pixels high and white:
div.header a.link-home svg {
height: 42px;
color: black;
}
Happy SVG'ing!