Default CSS styles to share between buffers/modes #3102
Labels
good-first-issue
Marks a good issue for first-time contributors.
high
ui/ux
Nyxt User Interface: themes, appearance and usability.
buffer
,status-buffer
,panel-buffer
,prompt-buffer
etc. have a lot of duplicatestyle
s. Not only this increases duplicate lines of code, it increases a maintenance burden: on has to update all the duplicate code lines, which is too easy to forget.Putting all the shared styling in the same place will ensure the default styles are consistent across all of Nyxt. And then, we can easily style things accessibly and aesthetically without the need to duplicate these (oftentimes long) styles everywhere.
The implementation that I envision is:
style
slot to the browser.style
, append the browserstyle
.theme:themed-css
(as a Nyxt-specific wrapper?)Tags:
ui/ux
, because it obviously influences the consistency of our UI.good-first-issue
because it's a relatively easy refactoring: just take all the duplicate styles, move them tobrowser
, and ensure they are used everywhere.high
, because having a chaotic set of styles hinders the speed of UI iterations (CC @lansingthomas).The text was updated successfully, but these errors were encountered: