Prime CSS structure for concentration of multiple projects (SCSS/STYLUS/LESS)
npm install prime-itcss




With the intention of having a CSS core of several projects in one place. It was created this project to serve as the basis of a front-end project. Using the methodology of ITCSS and syntax SCSS, STYLUS and LESS.
The idea of using the core is when you need more than one project in the same domain. Say in your domain , you need to have the files for site and admin area. Thus, the structure with the core would look like the example below:
```
>source
> prime
> admin
> style.scss
> site
> style.scss
With this, in the prime were the tools that will be used in both projects (icons, mixins, functions and more).
In each project folder, it is not necessary to have some folders (00-settings, 01-tools, 03-generic, 03-base, 04-vendor e 09-trumps), but this is not a rule, you will know the best for your project.
When writing , I am considering that the sample projects (site, admin), they are different and to have this distinction, folders (05-objetcs, 06-components, 07-pages e 08-theme), will be customized for each project.
Recalling once again, the intention is to show the concept that one must have a prime, to avoid repeated code and making it difficult to maintain. The organization of folders in the projects , is at the discretion of the need of the same.
style.scss (site)
`
@import "../prime/00-settings/_variables";
@import "../prime/01-tools/_mixins";
@import "05-objects/_alerts";
`
The project comes with usage tips with GulpJS or GruntJS. Choosing a automizador tasks, just knowing that only need to be aware in 3 places:
- At the root, Gruntfile.js or Gulpfile.js.tasks
- In folder , where tasks are divided by automator.package.json
- In the file , where are the dependencies.
Only interests the files , they are in the folder source. Opting to use one of the suggested Automation , just stay tuned to the three places that were mentioned above and run in the terminal:
``
npm install // To install the dependencies
And with the dependencies installed , the command default the automator.
- Fork it!
- Create your feature branch: git checkout -b my-new-featuregit commit -m 'Add some feature'
- Commit your changes: git push origin my-new-feature`
- Push to the branch:
- Submit a pull request
Check Releases for detailed changelog.
MIT license © Hemerson Vianna