Description:
In this GitHub issue, I've made the following changes to refactor the CSS code and organize global variables for improved maintainability and readability:
Moved Global Variables to :root:
I've gathered all the global CSS variables and moved them to the :root pseudo-class. This approach centralizes the variable definitions, making it easier to manage and maintain them.
Reduced Redundancy in Light Mode Styles:
Previously, the body.light styles included a duplicate copy of the entire CSS block. I've refactored it to only include the specific variable overrides for light mode. This change improves code readability and reduces redundancy.
By making these modifications, the CSS code is now more organized, adheres to best practices for defining global variables, and simplifies the management of styles for both light and dark modes.
Please review the changes and let me know if there are any further improvements or suggestions. Feel free to discuss any concerns or ask for clarifications related to this issue.
Title:
Description: In this GitHub issue, I've made the following changes to refactor the CSS code and organize global variables for improved maintainability and readability:
:root
pseudo-class. This approach centralizes the variable definitions, making it easier to manage and maintain them.body.light
styles included a duplicate copy of the entire CSS block. I've refactored it to only include the specific variable overrides for light mode. This change improves code readability and reduces redundancy.By making these modifications, the CSS code is now more organized, adheres to best practices for defining global variables, and simplifies the management of styles for both light and dark modes.
Please review the changes and let me know if there are any further improvements or suggestions. Feel free to discuss any concerns or ask for clarifications related to this issue.