DEV Community

Cover image for πŸ“¦ npm package that help you organize your sass
Maxime
Maxime

Posted on • Edited on

πŸ“¦ npm package that help you organize your sass

Hi everyone,

I recently publish a npm package that create a scss directory structure into your repo.

It can be helpful when you start a new project and you don't want to spend too much time making folders and files to organize your styles.

πŸ—‚ Structure

     scss
        β”‚
        β”œβ”€β”€ abstracts
        β”‚Β Β  β”œβ”€β”€ functions.scss
        β”‚Β Β  β”œβ”€β”€ helpers.scss
        β”‚Β Β  β”œβ”€β”€ mixins.scss
        β”‚Β Β  └── variables.scss
        β”‚
        β”œβ”€β”€ base
        β”‚Β Β  β”œβ”€β”€ global.scss
        β”‚Β Β  β”œβ”€β”€ reset.scss
        β”‚Β Β  β”œβ”€β”€ shame.scss
        β”‚Β Β  └── typography.scss
        β”‚
        β”œβ”€β”€ components
        β”‚Β Β  β”œβ”€β”€ alert.scss
        β”‚   β”œβ”€β”€ banner.scss
        β”‚Β Β  β”œβ”€β”€ buttons.scss
        β”‚Β Β  β”œβ”€β”€ card.scss
        β”‚Β Β  β”œβ”€β”€ forms.scss
        β”‚Β Β  β”œβ”€β”€ icons.scss
        β”‚Β Β  β”œβ”€β”€ menu.scss
        β”‚Β Β  β”œβ”€β”€ modal.scss
        β”‚Β Β  β”œβ”€β”€ progress.scss
        β”‚Β Β  └── table.scss
        β”‚
        β”œβ”€β”€ layout
        β”‚Β Β  β”œβ”€β”€ footer.scss
        β”‚Β Β  β”œβ”€β”€ grid.scss
        β”‚Β Β  β”œβ”€β”€ header.scss
        β”‚Β Β  β”œβ”€β”€ navigation.scss
        β”‚Β Β  └── sidebar.scss
        β”‚
        β”œβ”€β”€ pages
        β”‚Β Β  └── home.scss
        β”‚
        β”œβ”€β”€ themes
        β”‚Β Β  └── theme.scss
        β”‚
        β”œβ”€β”€ vendor
        β”‚
        └── main.scss

Enter fullscreen mode Exit fullscreen mode

✨ Installation

node js is required -> download

# Install the package
npm i create-scss-cli

#execute the command with
cs-cli
Enter fullscreen mode Exit fullscreen mode

Documentation

πŸ‘‰ https://www.createscss.com/
πŸ‘‰ https://github.com/maximedaraize/create-scss-cli
πŸ‘‰ https://www.npmjs.com/package/create-scss-cli

Conclusion

I would really apreciate any feedback. This is a side-projcet but I have the intention to keep working on it. Any help is welcome πŸ™‚
Hope someone will find this useful πŸ€·β€β™‚οΈ

Thanks for reading,

Max

Top comments (0)