Skip to content

Instantly share code, notes, and snippets.

@ericmasiello
Last active March 6, 2020 15:44
Show Gist options
  • Save ericmasiello/900073fd02a0573c9084ea930849506c to your computer and use it in GitHub Desktop.
Save ericmasiello/900073fd02a0573c9084ea930849506c to your computer and use it in GitHub Desktop.
How to not do BEM modifiers
/* I don't recommend doing this! */
.button {
border-radius: 0.25rem;
background-color: #676775;
color: #fff;
font-weight: 600;
font-size: 0.75rem;
text-transform: uppercase;
padding: 0.375rem 0.75rem;
}
.button.outline {
background-color: transparent;
border-color: #676775;
color: #676775;
}
.button.primary {
background-color: #2ba8e0;
}
.button.outline-primary {
background-color: transparent;
border-color: #2ba8e0;
color: #2ba8e0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment