Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modularize CSS #364

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

timothyjensen
Copy link
Contributor

@timothyjensen timothyjensen commented Sep 19, 2020

There has been a good deal of interest regarding moving Genesis Sample from CSS to SASS/SCSS. The discussion taking place in #315 identifies the benefit of splitting up the style sheet for performance reasons, but an even greater benefit is that SCSS files make it easier to write clean, maintainable CSS.

In #315 @nickcernis identifies some key questions about implementing a modular CSS version of Genesis Sample, and there is some valuable feedback to his questions posted in the comments.

As Nick stated, once we have some feedback on his points the next steps would include

Adjust existing npm build scripts and tooling.

In this PR I have made an attempt at adding the required build steps. I chose to go with Laravel Mix because it is a fairly popular choice, including the Sage theme, and the level of abstraction it affords should make it easier to maintain the build process.

I should mention that the changes proposed here offer merely a starting point. There is a lot of improvement to be made with regard to cleaning up the SCSS partials.

@timothyjensen timothyjensen force-pushed the feature/modularize-css branch 2 times, most recently from 4b65d56 to b2adc54 Compare October 22, 2020 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant