mafia-rust / mafia

A game about deception and manipulation
https://mafia.jackpapel.com
MIT License
5 stars 4 forks source link

Create CSS classes for commonly used stylings #617

Open Jack-Papel opened 7 months ago

Jack-Papel commented 7 months ago

The following groups are elements styled similarly yet have their stylings written separately: Game mode labels, Phase time selector labels, Disabled roles in graveyard; Buttons, Summaries; Server list, Role list, disabled roles roleset selector;

Maybe have border-outset: For things with outset borders border-inset: For things with inset borders primary: For buttons, summaries secondary: <select> tags, etc label: Non-clickables such as disabled roles in graveyard, game mode labels, phase time labels

This is of course not the limit of abstraction we can or should have. These are just ones that I am thinking of while making this issue. This can help us with having consistent styling, and would allow us to easily change our theming in the future, should we find the current theming to be unfavorable.

Jack-Papel commented 7 months ago

This will be partially remedied by making generic components such as the already existing Button component we have, but this will help much more.