Skip to content

Instantly share code, notes, and snippets.

@loderunner
Last active May 14, 2019 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loderunner/40aaa62b2fe7978fb33d2d9d064734f8 to your computer and use it in GitHub Desktop.
Save loderunner/40aaa62b2fe7978fb33d2d9d064734f8 to your computer and use it in GitHub Desktop.
Coding Conventions

Coding Conventions

CSS

CSS files will be named in all lowercase, "kebab case":

  • modal-dialog.css
  • 🚫ModalDialog.css
  • 🚫modal_dialog.css

Naming

  • Class names will be (as much as possible) ordered from most general to most specific:
    • button-dialog-confirm
    • 🚫confirm-dialog-button
  • Class names and DOM IDs will be in all lowercase, "kebab case":
    • button-confirm
    • 🚫button_confirm
    • 🚫buttonConfirm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment