Created
January 26, 2015 13:22
-
-
Save raulghm/2d052f5c643aba971a1d to your computer and use it in GitHub Desktop.
BEM Snippet [SuitCSS, Sublime Text]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
// https://github.com/suitcss/suit/blob/master/doc/naming-conventions.md | |
// ComponentName | |
// ComponentName--modifierName | |
// ComponentName-descendantName | |
// ComponentName.is-stateOfComponent | |
// u-utilityName | |
\$module: 'ComponentName'; | |
.#{\$module} { | |
&-descendantName {} | |
&--modifierName { | |
.#{\$module}-descendantName {} | |
} | |
&.is-stateOfComponent {} | |
.u-utilityName {} | |
} | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>bem</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.scss</scope> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment