Skip to content

A scalable SCSS architecture template for modular, maintainable, and reusable styles based on Sass Guidelines.

License

Notifications You must be signed in to change notification settings

moulibheemaneti/scss-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCSS Base Setup

This repository provides a foundational SCSS (Sass) architecture for scalable and maintainable front-end projects. It includes a structured set of folders and files for organizing design tokens, themes, layout rules, and vendor styles. The goal is to help teams quickly bootstrap new projects with a clear separation of concerns, reusable patterns, and best practices for writing modular and consistent SCSS code.


Note: This SCSS architecture was created with reference and inspiration from Sass Guidelines by Hugo Giraudel. The structure and best practices outlined here are heavily influenced by the recommendations in that resource.


Benefits of This SCSS Architecture

The following are some of the key benefits you'll gain by using this SCSS base setup:

  • 🚀 Faster Project Setup: Quickly start new projects with a ready-to-use SCSS structure.
  • 🧩 Modular Codebase: Organize styles into clear, reusable modules for easy maintenance.
  • 🛠️ Easy Customization: Effortlessly adapt themes, tokens, and layouts to project needs.
  • 🧹 Consistent Styling: Enforce design consistency across all components and pages.
  • 👥 Team Friendly: Simplifies collaboration with clear folder and file conventions.
  • 📦 Scalable Architecture: Supports growth from small to large projects without chaos.
  • 📚 Best Practices: Encourages clean, maintainable, and future-proof SCSS code.

How to Use This Repo

Clone or download this repository, and then place the folder into your project's working directory.

Folder & File Structure Overview (Alphabetical Order)


📂 Folder Structure

scss-base/
│
├── abstracts/      # Global settings, functions, mixins, variables, helpers
├── base/           # Base styles, resets, typography
├── components/     # UI components (buttons, cards, forms, etc.)
├── layout/         # Layout-related styles (grid, header, footer)
├── pages/          # Page-specific styles
├── themes/         # Theme definitions (light, dark, custom)
├── tokens/         # Design tokens (colors, spacing, typography scale)
├── vendors/        # Vendor overrides
│
├── main.scss       # Primary entry point
└── README.md       # Project documentation

⭐ Support

If you like this project, don’t forget to star the repo ⭐ It helps others discover the project!

Contributions, suggestions, and feedback are always welcome 🙌

About

A scalable SCSS architecture template for modular, maintainable, and reusable styles based on Sass Guidelines.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages