My personal CSS boilerplate/framework written in Sass
Modern Sass starter kit that requires you to keep your CSS organized and clean.
Perceptor is my personal SCSS boilerplate. It’s the result of 4 years of finding the right structure that I can use for my personal projects.
Need an compiler? See Perceptor Studio!
Note: This project is currently under development. If you have any ideas or tips, please feel free to report that at the issue tracker.
Summary of: https://css-tricks.com/abem-useful-adaptation-bem/
[a/m/o]-blockName__elementName -modifierName
/* classic + atomic prefix */
.o-subscribe-form__field-item {}
/* camelCase + atomic prefix */
.o-subscribeForm__fieldItem {}
/* classic */
.block-name__element-name--green {
background: green;
color: white;
}
/* seperated modifier */
.a-blockName__elementName.-green {
background: green;
color: white;
}
u-utilityName
Don’t use Sass placeholder! Instead use mixins.
https://www.sitepoint.com/avoid-sass-extend/
.
├── 00_abstracts
| ├── mixins
| ├── _bem.scss
| ├── _clearfix.scss
| ├── _hover.scss
| ├── _functions.scss
| ├── _variables.scss
├── 01_base
| ├── _fonts.scss
| ├── _generic.scss
| ├── _sanitize.scss
├── 02_atoms
| ├── _button.scss
| ├── _card.scss
| ├── _panel.scss
├── 03_molecules
| ├── _typography.scss
| ├── _lists.scss
| ├── _image.scss
├── 04_organisms
| ├── _bootstrap-grid.scss
| ├── _site-header.scss
| ├── _section.scss
| ├── _site-footer.scss
├── 05_templates
| ├── _home.scss
| ├── _week-action.scss
├── 06_pages
| ├── _home.scss
| ├── _week-action.scss
├── 07_utilities
| ├── _clearfix.scss
├── 08_vendor
| ├── _clearfix.scss
00_abstracts
01_base
02_atoms
03_molecules
04_organisms
05_templates
06_pages
07_utilities
08_vendor
Read:
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details.