issues
search
dfmcphee
/
code-style
Coding style and standards!
0
stars
0
forks
source link
readme
Code style
Table of contents
Introduction
Tools & frameworks
Philosophy & structure
Building a component
Basic conventions
CSM
Components
Sub-components
Modifiers
Component modifiers that affect subcomponents
State
When to split a component
Contextual styles
Functional variables
Layout subcomponents
CSS best practices
Code like it's 2020
Selector specificity
A note on attribute selectors
Size units
Context sensitivity
Format
Declaration order
Sass (SCSS) best practices
Nest only when necessary
Global vs. local variables/mixins
@extends
Filename naming convention
Commenting best practice
Variable naming convention
Block comment documentation guide
Continue on to
the Introduction →