A repo with examples to learn how to work with BEM in SASS
In order to work with the project you need:
In order to dev the project you need a good text editor like
Additional Atom packages:
apm install auto-update-packages bracket-matcher colornamer editorconfig file-icons highlight-bad-chars highlight-selected linter linter-csslint linter-htmlhint linter-js-yaml linter-sass-lint linter-scss-lint minimap minimap-cursorline minimap-find-and-replace minimap-git-diff minimap-pigments minimap-selection multi-highlight-selected nyan-indent php-twig pigments sort-lines tree-view-autoresize tree-view-git-modified tree-view-git-status svg-preview
Adds this code to keymap.cson
to add key support to installed plugins
'atom-workspace':
'cmd-shift-e': 'sort-lines:sort'
'ctrl-cmd-o': 'tree-view-git-modified:openAll'
'.platform-darwin':
'cmd-i': 'tree-view:reveal-active-file'
Additional Visual Studio Code packages:
ext install EditorConfig.editorconfig PKief.material-icon-theme Tyriar.sort-lines akamud.vscode-theme-onedark bierner.color-info file-icons.file-icons glen-84.sass-lint guillaumedoutriaux.name-that-color kamikillerto.vscode-colorize mblode.twig-language ms-vscode.atom-keybindings oderwat.indent-rainbow rafamel.subtle-brackets robinbentley.sass-indented shinnn.standard vincaslt.highlight-matching-tag whatwedo.twig
Some of the plug-ins installed will need configuration files inside the project like .editorconfig and .sass-lint.yml
Go to SassMeister.com and play with this Frontsize component
Frontsize is a tiny SASS framework written to build solid BEM code on CSS
Clone the repo with the terminal:
git clone https://github.com/vitto/workshop-bem-and-sass.git
Then install the node modules needed to run the project
npm install
After you have installed everything you can start watch the code with this command:
npm run watch
To see the list of the workshop steps:
git tag
This is the list of every step of the workshop:
00-start-from-scratch
01-exercise-results
02-layout
03-component-button
04-component-tag
05-component-tooltip
06-component-input-checkbox
07-component-input-radio
08-component-input-switch
09-component-input-select
10-component-grid
11-component-form
12-component-input-text
13-component-input-textarea
Just use this command to move on the workshop's step:
git checkout 00-start-from-scratch
If you have some trouble with your code, you can restart the step with this command:
git reset --hard
Enjoy!