jbms / sphinx-immaterial

Adaptation of the popular mkdocs-material material design theme to the sphinx documentation system
https://jbms.github.io/sphinx-immaterial/
Other
195 stars 31 forks source link

[docs] reorder palette color options #263

Closed 2bndy5 closed 1 year ago

2bndy5 commented 1 year ago

This a follow up to #256 that orders the colors as they are listed in the CSS bundle (according to hue).

The previous ordering was a bit chaotic because it was grabbing the color names from rules specifically for hyperlink elements. But, by only grabbing the color names from rules that define the fg/bg color vars, we get the originally expected results. Using a list structure also helps preserve the order as a set doesn't seem to guarantee the same order in which the items were added.

image image