Skip to content

Instantly share code, notes, and snippets.

@taverasmisael
Last active September 28, 2018 18:02
Show Gist options
  • Save taverasmisael/b7cff826592dbf28bf8e1041eafdaa1b to your computer and use it in GitHub Desktop.
Save taverasmisael/b7cff826592dbf28bf8e1041eafdaa1b to your computer and use it in GitHub Desktop.
VS Code snippet for BEM in SCSS
{
"Create BEM Block": {
"prefix": "BEMBlock",
"body": [
"\\$block: '${1:Block}';",
"",
".#{\\$block} {",
"\t$2",
"}"
],
"description": "Create a BEM Block and store its name into a local variable"
},
"Create BEM Element": {
"prefix": "BEMElement",
"body": [
".#{\\$block}__${1:element} {",
"\t$2",
"}"
],
"description": "Create a BEM Element assuming there is a local variable called 'block'"
},
"Create BEM Modifier": {
"prefix": "BEMModifier",
"body": [
".#{\\$block}--${1:modifieer} {",
"\t$2",
"}"
],
"description": "Create a BEM modifier assuming there is a local variable called 'block'"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment