Closed johnthagen closed 4 years ago
You can only use the list of colors specified in the configuration file. These are many precomputed css values that depend on one of the colors being specified.
Thanks for the information. Sorry for the basic question, but where would one find the configuration file to reference the possible options?
You get it when you create a sphinx site. If you clone this repo, you will see it in the docs folder. If you build the docs folder, you will have a perfect replica of the documentation site. Editing these files is a simple way to get started.
In case someone else finds this issue, the available options are documented here: https://bashtage.github.io/sphinx-material/customization.html#configuration-options
color_primary
color_accent
How much work would it take to convert the css to dynamic coloring? I totally like the whole setup - except the limited color options :-)
@ri0t Supporting arbitrary colors would be a near-complete rewrite of the CSS. The CSS relies heavily on the named and precomputed colors.
When setting
'color_primary': '#FFFF00',
(yellow), the top bar ends up being colored purple (regardless of the hex code input). Is this a bug?