Home Projects Portfolio Dashboard Export PDF Log in

Starting Fresh: Building Foundations for FestivaldeMusica

Building a new project is an exciting milestone. Whether you are scaffolding a small landing page or a complex web platform, the initial setup is where you define the quality of the developer experience for months to come. Working on the FestivaldeMusica project, I've started laying the groundwork by establishing the core structure for front-end styling and layout.

Why Structure Matters Early

Think of starting a project like building a house. If you don't get the foundation level, every wall you build afterward will be crooked. In web development, this means setting up your preprocessors and global styles before the features become too intertwined to refactor.

By incorporating Sass into the workflow, we can maintain clean, modular styles that stay organized as the project grows. Here is a simple look at how we structure our stylesheets to keep things maintainable:

// assets/scss/main.scss
@import 'variables';
@import 'base/reset';
@import 'components/navbar';
@import 'components/hero';

body {
  font-family: $primary-font;
  background-color: $bg-color;
}

This modular approach ensures that our styles are encapsulated. By importing specific components, we avoid the dreaded "global scope" issues that often plague early-stage CSS development.

Integrating Modern Workflows

When we deploy these assets, we want to ensure they are served efficiently. Leveraging Google Cloud infrastructure allows us to handle static assets with global availability, providing a performant experience for users regardless of their location.

Takeaway

Don't let your project become a "big ball of mud." Start by defining a clear directory structure for your CSS/SCSS files and use modular imports from day one. Your future self—and your teammates—will thank you for the maintainability.


Generated with Gitvlg.com

Starting Fresh: Building Foundations for FestivaldeMusica
Juan Sebastián Fernández

Juan Sebastián Fernández

Author

Share: