Skip to content

page color metadata 🎨 #511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vincent-peugnet opened this issue May 7, 2025 · 0 comments
Open

page color metadata 🎨 #511

vincent-peugnet opened this issue May 7, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@vincent-peugnet
Copy link
Owner

vincent-peugnet commented May 7, 2025

Another idea of metadata for pages: a color setting ! 🤯

It could be set in page edit view thanks to the HTML color picker.

Then it would create a dedicated CSS var called --page-color or something like this.

It would be set as data-color on links, so that users could use it to color links with css. 😋 (this do not work yet?, see mdn doc, but there is an interesting solution)

Another benefit could be to color the map markers according to page color.

This could also be seen in the graph view by coloring the nodes.

It's a simpler, more flexible but limited alternative to #321 concept.

The default color would use a hash of the page ID. Or a default one set in admin ?

@vincent-peugnet vincent-peugnet added the enhancement New feature or request label May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant