naturalcrit / homebrewery

Create authentic looking D&D homebrews using only markdown
https://homebrewery.naturalcrit.com
MIT License
1.03k stars 316 forks source link

Selector suggestion in Style editor tab #3534

Open 5e-Cleric opened 1 week ago

5e-Cleric commented 1 week ago

Your idea:

Other editors have an automatic suggestion box with the most used selectors, and it would be a great addition to our tool.

I got the idea from the MagicCSS extension: image

And asked in their github for how they come up with this list:

https://github.com/webextensions/live-css-editor/discussions/141

This should give us an idea on where to start. We'd need to have the DOM rendered to grab a list of al used classes, then hopefully remove the ones we don't want users to use(.columnWrapper, .blank...) and provide those as suggestions when writing a dot, or any selector.