styleguide
styleguide copied to clipboard
This is my personal coding styleguide. I try to cover how I write HTML, CSS, JavaScript and Ruby
:sparkles: Personal styleguide :sparkles:
Sometimes another developer will ask me. "Hyphens or underscores?" "Spaces or tabs?" That's when I realized that creating a personal styleguide would be the best thing ever.
This styleguide is how I write code. Styleguides are meant to help teams of developers to create a strategy on how they write their code. If you find this useful, I encourage you to fork it and use it for your own team's guide.
I setup a nice site for the style guide, but you can also read through it on GitHub. ToC below.
Table of contents
-
Editor
- Coding style
- Linting
-
CSS
- Coding style
- CSS units
- Declarations
- Selectors
-
HTML
- Coding style
- Meta
Install
If you really want to run this locally, here's what works on my machine ™
bundle install
bundle exec jekyll serve
open http://localhost:4000/
Usage
I've created a nice little bundle of editor style goodies that will match my coding style. You can download here.
Related
This styleguide is inspired by some styleguides from these awesome developers and organizations.
- codeguide.co by @mdo
- idiomatic-css by @necolas
- Javascript by @airbnb
License
MIT © Jon Rohan