hugo-theme-relearn/exampleSite/content/basics/generator/_index.en.md

26 lines
1.3 KiB
Markdown
Raw Normal View History

+++
title = "Stylesheet generator"
weight = 26
+++
This interactive tool may help you to generate your own color variant stylesheet.
To get started, first select a color variant from the theme selector that fits you best as a starting point.
The graph is interactive and reflect the current colors. You can click on any of the colored boxes to adjust the respective color. The graph and the page will update accordingly.
The arrowed lines reflect how colors are inherited thru different parts of the theme if the descendent isn't overwritten. If you want to delete a color and let it inherit from its parent, just delete the value from the input field.
To better understand this select the `neon` variant and modify the differnet heading colors. There, colors for the heading `h2`, `h3` and `h4` are explicitly set. `h5` is not set and inherits its value from `h4`. `h6` is also not set and inherits its value from `h5`.
Once you are satisfied, you can download the new variants file and install it in your site.
## Variant generator
<div id="vargenerator" class="mermaid" style="background-color: var(--INTERNAL-MAIN-TEXT-color);" align="center">Graph</div>
2022-02-20 22:58:16 +00:00
<a class="vardownload btn btn-default">Download color variant</a>
<script>
2022-02-20 22:58:16 +00:00
variants.generator( '#vargenerator', '.vardownload' );
</script>