Refactor main stylesheet
See original GitHub issueI am already customizing the theme by using a custom theme variant. While customizing the theme using theme variant, I realized that the CSS could be improved.
Here are the things I have noticed about the stylesheet theme.css
- Way too many
!importantrules (64 times). Here is an example. This is mainly due to how the stylesheet is organized / structured. - Inconsistent indentation / formatting, making it hard to read.
- No CSS variables in main stylesheet. If the variables were defined in the main stylesheet, then the theme variants would be way easier to created…
If you want I can try to create a PR
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Refactoring CSS: Introduction (Part 1) - Smashing Magazine
Refactoring is a recommended approach for incrementally improving the CSS codebase while maintaining the current look and feel (design). Team ...
Read more >How to Refactor CSS - A Guide - Hongkiat
How to Refactor CSS – A Guide · 1. Conduct an Initial Audit · 2. Set Up a Manageable Plan · 3. Track...
Read more >Refactoring CSS. What to keep in mind when thinking… | Inktrap
Having a style guide, an outline of the project, a plan for approaching it, a proper directory structure, and naming convention are still ......
Read more >Refactorings for CSS | ReSharper Documentation - JetBrains
Refactorings for CSS styles help you quickly move CSS styles to and between stylesheets and HTML files or create a new stylesheet on...
Read more >CSS Architectures: Refactor Your CSS - SitePoint
In this tutorial you will learn about MetaCoax CSS refactoring process.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’m interested in this also. I’m thinking of trying it in SASS/SCSS. Not promising anything (haven’t got much experience in SASS), so don’t hold your breath, but would that be okay for a PR if I ever get anywhere?
W-Floyd scss PR merged