Multi palettes feature: prototype proposal and example #7736
FrancoisCapon
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The main idea is to set palettes :
section_palette
that mean for all pages of the section and subsectionspage_palette
can set or override his section paletteHere is an example of my proposal with the metas in the top of the page (page_palette == section_palette => palette is defined by section) ; there is a lot of colors in the example ("Christmas garland" effect) but it only to test different cases!
mkdocs-material-palettes-example-site.zip
The implementation of the prototype is "light":
palette.html
to usepage.meta.page_palette
if existhooks
of 60 lines to handlenav
structure (once)Beta Was this translation helpful? Give feedback.
All reactions